mirror of https://github.com/snachodog/mybuddy.git
1 line
1.3 MiB
1 line
1.3 MiB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Plotly=t():e.Plotly=t()}(self,function(){return function(){var e={79288:function(e,t,r){"use strict";var n=r(3400),a={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in a){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");n.addStyleRule(o,a[i])}},86712:function(e,t,r){"use strict";e.exports=r(84224)},37240:function(e,t,r){"use strict";e.exports=r(51132)},29352:function(e,t,r){"use strict";e.exports=r(67244)},96144:function(e,t,r){"use strict";e.exports=r(97776)},6920:function(e,t,r){"use strict";e.exports=r(66240)},32016:function(e,t,r){"use strict";e.exports=r(64884)},75556:function(e,t,r){"use strict";e.exports=r(76744)},16489:function(e,t,r){"use strict";e.exports=r(32028)},5000:function(e,t,r){"use strict";e.exports=r(81932)},33992:function(e,t,r){"use strict";e.exports=r(42600)},17600:function(e,t,r){"use strict";e.exports=r(21536)},49116:function(e,t,r){"use strict";e.exports=r(65664)},36168:function(e,t,r){"use strict";e.exports=r(48928)},2024:function(e,t,r){"use strict";var n=r(32016);n.register([r(37240),r(29352),r(5e3),r(33992),r(17600),r(49116),r(6920),r(67484),r(79440),r(36168),r(20260),r(86712),r(75556),r(16489),r(97312),r(96144)]),e.exports=n},20260:function(e,t,r){"use strict";e.exports=r(75792)},67484:function(e,t,r){"use strict";e.exports=r(34864)},97312:function(e,t,r){"use strict";e.exports=r(76272)},79440:function(e,t,r){"use strict";e.exports=r(22869)},72196:function(e){"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(e,t,r){"use strict";var n=r(72196),a=r(25376),i=r(33816),o=r(31780).templatedArray;r(36208);e.exports=o("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:a({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:n.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:n.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",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.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",i.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:a({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(23816).draw;function o(e){var t=e._fullLayout;n.filterVisible(t.annotations).forEach(function(t){var r=a.getFromId(e,t.xref),n=a.getFromId(e,t.yref),i=a.getRefType(t.xref),o=a.getRefType(t.yref);t._extremes={},"range"===i&&l(t,r),"range"===o&&l(t,n)})}function l(e,t){var r,n=t._id,i=n.charAt(0),o=e[i],l=e["a"+i],s=e[i+"ref"],c=e["a"+i+"ref"],u=e["_"+i+"padplus"],f=e["_"+i+"padminus"],d={x:1,y:-1}[i]*e[i+"shift"],h=3*e.arrowsize*e.arrowwidth||0,p=h+d,y=h-d,v=3*e.startarrowsize*e.arrowwidth||0,g=v+d,m=v-d;if(c===s){var x=a.findExtremes(t,[t.r2c(o)],{ppadplus:p,ppadminus:y}),b=a.findExtremes(t,[t.r2c(l)],{ppadplus:Math.max(u,g),ppadminus:Math.max(f,m)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else g=l?g+l:g,m=l?m-l:m,r=a.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(u,p,g),ppadminus:Math.max(f,y,m)});e._extremes[n]=r}e.exports=function(e){var t=e._fullLayout;if(n.filterVisible(t.annotations).length&&e._fullData.length)return n.syncOrAsync([i,o],e)}},42300:function(e,t,r){"use strict";var n=r(3400),a=r(24040),i=r(31780).arrayEditor;function o(e,t){var r,n,a,i,o,s,c,u=e._fullLayout.annotations,f=[],d=[],h=[],p=(t||[]).length;for(r=0;r<u.length;r++)if(i=(a=u[r]).clicktoshow){for(n=0;n<p;n++)if(s=(o=t[n]).xaxis,c=o.yaxis,s._id===a.xref&&c._id===a.yref&&s.d2r(o.x)===l(a._xclick,s)&&c.d2r(o.y)===l(a._yclick,c)){(a.visible?"onout"===i?d:h:f).push(r);break}n===p&&a.visible&&"onout"===i&&d.push(r)}return{on:f,off:d,explicitOff:h}}function l(e,t){return"log"===t.type?t.l2r(e):t.d2r(e)}e.exports={hasClickToShow:function(e,t){var r=o(e,t);return r.on.length>0||r.explicitOff.length>0},onClick:function(e,t){var r,l,s=o(e,t),c=s.on,u=s.off.concat(s.explicitOff),f={},d=e._fullLayout.annotations;if(!c.length&&!u.length)return;for(r=0;r<c.length;r++)(l=i(e.layout,"annotations",d[c[r]])).modifyItem("visible",!0),n.extendFlat(f,l.getUpdateObj());for(r=0;r<u.length;r++)(l=i(e.layout,"annotations",d[u[r]])).modifyItem("visible",!1),n.extendFlat(f,l.getUpdateObj());return a.call("update",e,{},f)}}},87192:function(e,t,r){"use strict";var n=r(3400),a=r(76308);e.exports=function(e,t,r,i){i("opacity");var o=i("bgcolor"),l=i("bordercolor"),s=a.opacity(l);i("borderpad");var c=i("borderwidth"),u=i("showarrow");if(i("text",u?" ":r._dfltTitle.annotation),i("textangle"),n.coerceFont(i,"font",r.font),i("width"),i("align"),i("height")&&i("valign"),u){var f,d,h=i("arrowside");-1!==h.indexOf("end")&&(f=i("arrowhead"),d=i("arrowsize")),-1!==h.indexOf("start")&&(i("startarrowhead",f),i("startarrowsize",d)),i("arrowcolor",s?t.bordercolor:a.defaultLine),i("arrowwidth",2*(s&&c||1)),i("standoff"),i("startstandoff")}var p=i("hovertext"),y=r.hoverlabel||{};if(p){var v=i("hoverlabel.bgcolor",y.bgcolor||(a.opacity(o)?a.rgb(o):a.defaultLine)),g=i("hoverlabel.bordercolor",y.bordercolor||a.contrast(v));n.coerceFont(i,"hoverlabel.font",{family:y.font.family,size:y.font.size,color:y.font.color||g})}i("captureevents",!!p)}},26828:function(e,t,r){"use strict";var n=r(38248),a=r(36896);e.exports=function(e,t,r,i){t=t||{};var o="log"===r&&"linear"===t.type,l="linear"===r&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.annotations,f=t._id.charAt(0),d=0;d<u.length;d++)s=u[d],c="annotations["+d+"].",s[f+"ref"]===t._id&&h(f),s["a"+f+"ref"]===t._id&&h("a"+f);function h(e){var r=s[e],l=null;l=o?a(r,t.range):Math.pow(10,r),n(l)||(l=null),i(c+e,l)}}},45216:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(51272),o=r(87192),l=r(13916);function s(e,t,r){function i(r,a){return n.coerce(e,t,l,r,a)}var s=i("visible"),c=i("clicktoshow");if(s||c){o(e,t,r,i);for(var u=t.showarrow,f=["x","y"],d=[-10,-30],h={_fullLayout:r},p=0;p<2;p++){var y=f[p],v=a.coerceRef(e,t,h,y,"","paper");if("paper"!==v)a.getFromId(h,v)._annIndices.push(t._index);if(a.coercePosition(t,h,i,v,y,.5),u){var g="a"+y,m=a.coerceRef(e,t,h,g,"pixel",["pixel","paper"]);"pixel"!==m&&m!==v&&(m=t[g]="pixel");var x="pixel"===m?d[p]:.4;a.coercePosition(t,h,i,m,g,x)}i(y+"anchor"),i(y+"shift")}if(n.noneOrAll(e,t,["x","y"]),u&&n.noneOrAll(e,t,["ax","ay"]),c){var b=i("xclick"),_=i("yclick");t._xclick=void 0===b?t.x:a.cleanPosition(b,h,t.xref),t._yclick=void 0===_?t.y:a.cleanPosition(_,h,t.yref)}}}e.exports=function(e,t){i(e,t,{name:"annotations",handleItemDefaults:s})}},23816:function(e,t,r){"use strict";var n=r(33428),a=r(24040),i=r(7316),o=r(3400),l=o.strTranslate,s=r(54460),c=r(76308),u=r(43616),f=r(93024),d=r(72736),h=r(93972),p=r(86476),y=r(31780).arrayEditor,v=r(33652);function g(e,t){var r=e._fullLayout.annotations[t]||{},n=s.getFromId(e,r.xref),a=s.getFromId(e,r.yref);n&&n.setScale(),a&&a.setScale(),x(e,r,t,!1,n,a)}function m(e,t,r,n,a){var i=a[r],o=a[r+"ref"],l=-1!==r.indexOf("y"),c="domain"===s.getRefType(o),u=l?n.h:n.w;return e?c?i+(l?-t:t)/e._length:e.p2r(e.r2p(i)+t):i+(l?-t:t)/u}function x(e,t,r,i,g,x){var b,_,w=e._fullLayout,k=e._fullLayout._size,T=e._context.edits;i?(b="annotation-"+i,_=i+".annotations"):(b="annotation",_="annotations");var M=y(e.layout,_,t),A=M.modifyBase,S=M.modifyItem,L=M.getUpdateObj;w._infolayer.selectAll("."+b+'[data-index="'+r+'"]').remove();var O="clip"+w._uid+"_ann"+r;if(t._input&&!1!==t.visible){var C={x:{},y:{}},D=+t.textangle||0,P=w._infolayer.append("g").classed(b,!0).attr("data-index",String(r)).style("opacity",t.opacity),E=P.append("g").classed("annotation-text-g",!0),R=T[t.showarrow?"annotationTail":"annotationPosition"],I=t.captureevents||T.annotationText||R,z=E.append("g").style("pointer-events",I?"all":null).call(h,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",G(n.event))});t.hovertext&&z.on("mouseover",function(){var r=t.hoverlabel,n=r.font,a=this.getBoundingClientRect(),i=e.getBoundingClientRect();f.loneHover({x0:a.left-i.left,x1:a.right-i.left,y:(a.top+a.bottom)/2-i.top,text:t.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:e})}).on("mouseout",function(){f.loneUnhover(w._hoverlayer.node())});var N=t.borderwidth,F=t.borderpad,j=N+F,B=z.append("rect").attr("class","bg").style("stroke-width",N+"px").call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor),H=t.width||t.height,U=w._topclips.selectAll("#"+O).data(H?[0]:[]);U.enter().append("clipPath").classed("annclip",!0).attr("id",O).append("rect"),U.exit().remove();var q=t.font,Y=w._meta?o.templateString(t.text,w._meta):t.text,V=z.append("text").classed("annotation-text",!0).text(Y);T.annotationText?V.call(d.makeEditable,{delegate:z,gd:e}).call(Z).on("edit",function(r){t.text=r,this.call(Z),S("text",r),g&&g.autorange&&A(g._name+".autorange",!0),x&&x.autorange&&A(x._name+".autorange",!0),a.call("_guiRelayout",e,L())}):V.call(Z)}else n.selectAll("#"+O).remove();function G(e){var n={index:r,annotation:t._input,fullAnnotation:t,event:e};return i&&(n.subplotId=i),n}function Z(r){return r.call(u.font,q).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),d.convertToTspans(r,e,W),r}function W(){var r=V.selectAll("a");1===r.size()&&r.text()===V.text()&&z.insert("a",":first-child").attr({"xlink:xlink:href":r.attr("xlink:href"),"xlink:xlink:show":r.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(B.node());var n=z.select(".annotation-text-math-group"),f=!n.empty(),y=u.bBox((f?n:V).node()),b=y.width,_=y.height,M=t.width||b,I=t.height||_,F=Math.round(M+2*j),q=Math.round(I+2*j);function Y(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var Z=!1,W=["x","y"],J=0;J<W.length;J++){var X,K,$,Q,ee,te=W[J],re=t[te+"ref"]||te,ne=t["a"+te+"ref"],ae={x:g,y:x}[te],ie=(D+("x"===te?0:-90))*Math.PI/180,oe=F*Math.cos(ie),le=q*Math.sin(ie),se=Math.abs(oe)+Math.abs(le),ce=t[te+"anchor"],ue=t[te+"shift"]*("x"===te?1:-1),fe=C[te],de=s.getRefType(re);if(ae&&"domain"!==de){var he=ae.r2fraction(t[te]);(he<0||he>1)&&(ne===re?((he=ae.r2fraction(t["a"+te]))<0||he>1)&&(Z=!0):Z=!0),X=ae._offset+ae.r2p(t[te]),Q=.5}else{var pe="domain"===de;"x"===te?($=t[te],X=pe?ae._offset+ae._length*$:X=k.l+k.w*$):($=1-t[te],X=pe?ae._offset+ae._length*$:X=k.t+k.h*$),Q=t.showarrow?.5:$}if(t.showarrow){fe.head=X;var ye=t["a"+te];if(ee=oe*Y(.5,t.xanchor)-le*Y(.5,t.yanchor),ne===re){var ve=s.getRefType(ne);"domain"===ve?("y"===te&&(ye=1-ye),fe.tail=ae._offset+ae._length*ye):"paper"===ve?"y"===te?(ye=1-ye,fe.tail=k.t+k.h*ye):fe.tail=k.l+k.w*ye:fe.tail=ae._offset+ae.r2p(ye),K=ee}else fe.tail=X+ye,K=ee+ye;fe.text=fe.tail+ee;var ge=w["x"===te?"width":"height"];if("paper"===re&&(fe.head=o.constrain(fe.head,1,ge-1)),"pixel"===ne){var me=-Math.max(fe.tail-3,fe.text),xe=Math.min(fe.tail+3,fe.text)-ge;me>0?(fe.tail+=me,fe.text+=me):xe>0&&(fe.tail-=xe,fe.text-=xe)}fe.tail+=ue,fe.head+=ue}else K=ee=se*Y(Q,ce),fe.text=X+ee;fe.text+=ue,ee+=ue,K+=ue,t["_"+te+"padplus"]=se/2+K,t["_"+te+"padminus"]=se/2-K,t["_"+te+"size"]=se,t["_"+te+"shift"]=ee}if(Z)z.remove();else{var be=0,_e=0;if("left"!==t.align&&(be=(M-b)*("center"===t.align?.5:1)),"top"!==t.valign&&(_e=(I-_)*("middle"===t.valign?.5:1)),f)n.select("svg").attr({x:j+be-1,y:j+_e}).call(u.setClipUrl,H?O:null,e);else{var we=j+_e-y.top,ke=j+be-y.left;V.call(d.positionText,ke,we).call(u.setClipUrl,H?O:null,e)}U.select("rect").call(u.setRect,j,j,M,I),B.call(u.setRect,N/2,N/2,F-N,q-N),z.call(u.setTranslate,Math.round(C.x.text-F/2),Math.round(C.y.text-q/2)),E.attr({transform:"rotate("+D+","+C.x.text+","+C.y.text+")"});var Te,Me=function(r,n){P.selectAll(".annotation-arrow-g").remove();var s=C.x.head,f=C.y.head,d=C.x.tail+r,h=C.y.tail+n,y=C.x.text+r,b=C.y.text+n,_=o.rotationXYMatrix(D,y,b),w=o.apply2DTransform(_),M=o.apply2DTransform2(_),O=+B.attr("width"),R=+B.attr("height"),I=y-.5*O,N=I+O,F=b-.5*R,j=F+R,H=[[I,F,I,j],[I,j,N,j],[N,j,N,F],[N,F,I,F]].map(M);if(!H.reduce(function(e,t){return e^!!o.segmentsIntersect(s,f,s+1e6,f+1e6,t[0],t[1],t[2],t[3])},!1)){H.forEach(function(e){var t=o.segmentsIntersect(d,h,s,f,e[0],e[1],e[2],e[3]);t&&(d=t.x,h=t.y)});var U=t.arrowwidth,q=t.arrowcolor,Y=t.arrowside,V=P.append("g").style({opacity:c.opacity(q)}).classed("annotation-arrow-g",!0),G=V.append("path").attr("d","M"+d+","+h+"L"+s+","+f).style("stroke-width",U+"px").call(c.stroke,c.rgb(q));if(v(G,Y,t),T.annotationPosition&&G.node().parentNode&&!i){var Z=s,W=f;if(t.standoff){var J=Math.sqrt(Math.pow(s-d,2)+Math.pow(f-h,2));Z+=t.standoff*(d-s)/J,W+=t.standoff*(h-f)/J}var X,K,$=V.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(d-Z)+","+(h-W),transform:l(Z,W)}).style("stroke-width",U+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)");p.init({element:$.node(),gd:e,prepFn:function(){var e=u.getTranslate(z);X=e.x,K=e.y,g&&g.autorange&&A(g._name+".autorange",!0),x&&x.autorange&&A(x._name+".autorange",!0)},moveFn:function(e,r){var n=w(X,K),a=n[0]+e,i=n[1]+r;z.call(u.setTranslate,a,i),S("x",m(g,e,"x",k,t)),S("y",m(x,r,"y",k,t)),t.axref===t.xref&&S("ax",m(g,e,"ax",k,t)),t.ayref===t.yref&&S("ay",m(x,r,"ay",k,t)),V.attr("transform",l(e,r)),E.attr({transform:"rotate("+D+","+a+","+i+")"})},doneFn:function(){a.call("_guiRelayout",e,L());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&Me(0,0),R)p.init({element:z.node(),gd:e,prepFn:function(){Te=E.attr("transform")},moveFn:function(e,r){var n="pointer";if(t.showarrow)t.axref===t.xref?S("ax",m(g,e,"ax",k,t)):S("ax",t.ax+e),t.ayref===t.yref?S("ay",m(x,r,"ay",k.w,t)):S("ay",t.ay+r),Me(e,r);else{if(i)return;var a,o;if(g)a=m(g,e,"x",k,t);else{var s=t._xsize/k.w,c=t.x+(t._xshift-t.xshift)/k.w-s/2;a=p.align(c+e/k.w,s,0,1,t.xanchor)}if(x)o=m(x,r,"y",k,t);else{var u=t._ysize/k.h,f=t.y-(t._yshift+t.yshift)/k.h-u/2;o=p.align(f-r/k.h,u,0,1,t.yanchor)}S("x",a),S("y",o),g&&x||(n=p.getCursor(g?.5:a,x?.5:o,t.xanchor,t.yanchor))}E.attr({transform:l(e,r)+Te}),h(z,n)},clickFn:function(r,n){t.captureevents&&e.emit("plotly_clickannotation",G(n))},doneFn:function(){h(z),a.call("_guiRelayout",e,L());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r<t.annotations.length;r++)t.annotations[r].visible&&g(e,r);return i.previousPromises(e)},drawOne:g,drawRaw:x}},33652:function(e,t,r){"use strict";var n=r(33428),a=r(76308),i=r(72196),o=r(3400),l=o.strScale,s=o.strRotate,c=o.strTranslate;e.exports=function(e,t,r){var o,u,f,d,h=e.node(),p=i[r.arrowhead||0],y=i[r.startarrowhead||0],v=(r.arrowwidth||1)*(r.arrowsize||1),g=(r.arrowwidth||1)*(r.startarrowsize||1),m=t.indexOf("start")>=0,x=t.indexOf("end")>=0,b=p.backoff*v+r.standoff,_=y.backoff*g+r.startstandoff;if("line"===h.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},u={x:+e.attr("x2"),y:+e.attr("y2")};var w=o.x-u.x,k=o.y-u.y;if(d=(f=Math.atan2(k,w))+Math.PI,b&&_&&b+_>Math.sqrt(w*w+k*k))return void R();if(b){if(b*b>w*w+k*k)return void R();var T=b*Math.cos(f),M=b*Math.sin(f);u.x+=T,u.y+=M,e.attr({x2:u.x,y2:u.y})}if(_){if(_*_>w*w+k*k)return void R();var A=_*Math.cos(f),S=_*Math.sin(f);o.x-=A,o.y-=S,e.attr({x1:o.x,y1:o.y})}}else if("path"===h.nodeName){var L=h.getTotalLength(),O="";if(L<b+_)return void R();var C=h.getPointAtLength(0),D=h.getPointAtLength(.1);f=Math.atan2(C.y-D.y,C.x-D.x),o=h.getPointAtLength(Math.min(_,L)),O="0px,"+_+"px,";var P=h.getPointAtLength(L),E=h.getPointAtLength(L-.1);d=Math.atan2(P.y-E.y,P.x-E.x),u=h.getPointAtLength(Math.max(0,L-b)),O+=L-(O?_+b:b)+"px,"+L+"px",e.style("stroke-dasharray",O)}function R(){e.style("stroke-dasharray","0px,100px")}function I(t,i,o,u){t.path&&(t.noRotate&&(o=0),n.select(h.parentNode).append("path").attr({class:e.attr("class"),d:t.path,transform:c(i.x,i.y)+s(180*o/Math.PI)+l(u)}).style({fill:a.rgb(r.arrowcolor),"stroke-width":0}))}m&&I(y,o,f,g),x&&I(p,u,d,v)}},79180:function(e,t,r){"use strict";var n=r(23816),a=r(42300);e.exports={moduleType:"component",name:"annotations",layoutAttributes:r(13916),supplyLayoutDefaults:r(45216),includeBasePlot:r(36632)("annotations"),calcAutorange:r(90272),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:a.hasClickToShow,onClick:a.onClick,convertCoords:r(26828)}},45899:function(e,t,r){"use strict";var n=r(13916),a=r(67824).overrideAll,i=r(31780).templatedArray;e.exports=a(i("annotation",{visible:n.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),"calc","from-root")},42456:function(e,t,r){"use strict";var n=r(3400),a=r(54460);function i(e,t){var r=t.fullSceneLayout.domain,i=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},n.extendFlat(e._xa,o),a.setConvert(e._xa),e._xa._offset=i.l+r.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*i.w*(r.x[1]-r.x[0])},e._ya={},n.extendFlat(e._ya,o),a.setConvert(e._ya),e._ya._offset=i.t+(1-r.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*i.h*(r.y[1]-r.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,r=0;r<t.length;r++)i(t[r],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()}},52808:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(51272),o=r(87192),l=r(45899);function s(e,t,r,i){function s(r,a){return n.coerce(e,t,l,r,a)}function c(e){var n=e+"axis",i={_fullLayout:{}};return i._fullLayout[n]=r[n],a.coercePosition(t,i,s,e,e,.5)}s("visible")&&(o(e,t,i.fullLayout,s),c("x"),c("y"),c("z"),n.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",s("xanchor"),s("yanchor"),s("xshift"),s("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",s("ax",-10),s("ay",-30),n.noneOrAll(e,t,["ax","ay"])))}e.exports=function(e,t,r){i(e,t,{name:"annotations",handleItemDefaults:s,fullLayout:r.fullLayout})}},71836:function(e,t,r){"use strict";var n=r(23816).drawRaw,a=r(94424),i=["x","y","z"];e.exports=function(e){for(var t=e.fullSceneLayout,r=e.dataScale,o=t.annotations,l=0;l<o.length;l++){for(var s=o[l],c=!1,u=0;u<3;u++){var f=i[u],d=s[f],h=t[f+"axis"].r2fraction(d);if(h<0||h>1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*r[0],t.yaxis.r2l(s.y)*r[1],t.zaxis.r2l(s.z)*r[2]]),n(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},56864:function(e,t,r){"use strict";var n=r(24040),a=r(3400);e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:r(45899)}}},layoutAttributes:r(45899),handleDefaults:r(52808),includeBasePlot:function(e,t){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var i=r.attrRegex,o=Object.keys(e),l=0;l<o.length;l++){var s=o[l];i.test(s)&&(e[s].annotations||[]).length&&(a.pushUnique(t._basePlotModules,r),a.pushUnique(t._subplots.gl3d,s))}},convert:r(42456),draw:r(71836)}},54976:function(e,t,r){"use strict";e.exports=r(38700),r(15168),r(67020),r(89792),r(55668),r(65168),r(2084),r(26368),r(24747),r(65616),r(30632),r(73040),r(1104),r(51456),r(4592),r(45348)},97776:function(e,t,r){"use strict";var n=r(54976),a=r(3400),i=r(39032),o=i.EPOCHJD,l=i.ONEDAY,s={valType:"enumerated",values:a.sortObjectKeys(n.calendars),editType:"calc",dflt:"gregorian"},c=function(e,t,r,n){var i={};return i[r]=s,a.coerce(e,t,i,r,n)},u="##",f={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:u,w:u,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};var d={};function h(e){var t=d[e];return t||(t=d[e]=n.instance(e))}function p(e){return a.extendFlat({},s,{description:e})}function y(e){return"Sets the calendar system to use with `"+e+"` date data."}var v={xcalendar:p(y("x"))},g=a.extendFlat({},v,{ycalendar:p(y("y"))}),m=a.extendFlat({},g,{zcalendar:p(y("z"))}),x=p(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));e.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:g,bar:g,box:g,heatmap:g,contour:g,histogram:g,histogram2d:g,histogram2dcontour:g,scatter3d:m,surface:m,mesh3d:m,scattergl:g,ohlc:v,candlestick:v},layout:{calendar:p(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:x},yaxis:{calendar:x},scene:{xaxis:{calendar:x},yaxis:{calendar:x},zaxis:{calendar:x}},polar:{radialaxis:{calendar:x}}},transforms:{filter:{valuecalendar:p(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:p(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:s,handleDefaults:c,handleTraceDefaults:function(e,t,r,n){for(var a=0;a<r.length;a++)c(e,t,r[a]+"calendar",n.calendar)},CANONICAL_SUNDAY:{chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},CANONICAL_TICK:{chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},DFLTRANGE:{chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},getCal:h,worldCalFmt:function(e,t,r){for(var n,a,i,s,c,d=Math.floor((t+.05)/l)+o,p=h(r).fromJD(d),y=0;-1!==(y=e.indexOf("%",y));)"0"===(n=e.charAt(y+1))||"-"===n||"_"===n?(i=3,a=e.charAt(y+2),"_"===n&&(n="-")):(a=n,n="0",i=2),(s=f[a])?(c=s===u?u:p.formatDate(s[n]),e=e.substr(0,y)+c+e.substr(y+i),y+=c.length):y+=i;return e}}},22548:function(e,t){"use strict";t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11},76308:function(e,t,r){"use strict";var n=r(49760),a=r(38248),i=r(38116).isTypedArray,o=e.exports={},l=r(22548);o.defaults=l.defaults;var s=o.defaultLine=l.defaultLine;o.lightLine=l.lightLine;var c=o.background=l.background;function u(e){if(a(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var r=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return e;var n=r[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===n.length;if(!i&&3!==n.length)return e;for(var o=0;o<n.length;o++){if(!n[o].length)return e;if(n[o]=Number(n[o]),!(n[o]>=0))return e;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var l=Math.round(255*n[0])+", "+Math.round(255*n[1])+", "+Math.round(255*n[2]);return i?"rgba("+l+", "+n[3]+")":"rgb("+l+")"}o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(n(e))},o.opacity=function(e){return e?n(e).getAlpha():0},o.addOpacity=function(e,t){var r=n(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"},o.combine=function(e,t){var r=n(e).toRgb();if(1===r.a)return n(e).toRgbString();var a=n(t||c).toRgb(),i=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},o={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.interpolate=function(e,t,r){var a=n(e).toRgb(),i=n(t).toRgb(),o={r:r*a.r+(1-r)*i.r,g:r*a.g+(1-r)*i.g,b:r*a.b+(1-r)*i.b};return n(o).toRgbString()},o.contrast=function(e,t,r){var a=n(e);return 1!==a.getAlpha()&&(a=n(o.combine(e,c))),(a.isDark()?t?a.lighten(t):c:r?a.darken(r):s).toString()},o.stroke=function(e,t){var r=n(t);e.style({stroke:o.tinyRGB(r),"stroke-opacity":r.getAlpha()})},o.fill=function(e,t){var r=n(t);e.style({fill:o.tinyRGB(r),"fill-opacity":r.getAlpha()})},o.clean=function(e){if(e&&"object"==typeof e){var t,r,n,a,l=Object.keys(e);for(t=0;t<l.length;t++)if(a=e[n=l[t]],"color"===n.substr(n.length-5))if(Array.isArray(a))for(r=0;r<a.length;r++)a[r]=u(a[r]);else e[n]=u(a);else if("colorscale"===n.substr(n.length-10)&&Array.isArray(a))for(r=0;r<a.length;r++)Array.isArray(a[r])&&(a[r][1]=u(a[r][1]));else if(Array.isArray(a)){var s=a[0];if(!Array.isArray(s)&&s&&"object"==typeof s)for(r=0;r<a.length;r++)o.clean(a[r])}else a&&"object"==typeof a&&!i(a)&&o.clean(a)}}},42996:function(e,t,r){"use strict";var n=r(94724),a=r(25376),i=r(92880).extendFlat,o=r(67824).overrideAll;e.exports=o({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:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:n.minor.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:i({},n.ticks,{dflt:""}),ticklabeloverflow:i({},n.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:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,ticklabelstep:n.ticklabelstep,showticklabels:n.showticklabels,labelalias:n.labelalias,tickfont:a({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:"string"},font:a({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:a({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},63964:function(e){"use strict";e.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},64013:function(e,t,r){"use strict";var n=r(3400),a=r(31780),i=r(26332),o=r(25404),l=r(95936),s=r(42568),c=r(42996);e.exports=function(e,t,r){var u=a.newContainer(t,"colorbar"),f=e.colorbar||{};function d(e,t){return n.coerce(f,u,c,e,t)}var h=r.margin||{t:0,b:0,l:0,r:0},p=r.width-h.l-h.r,y=r.height-h.t-h.b,v="v"===d("orientation"),g=d("thicknessmode");d("thickness","fraction"===g?30/(v?p:y):30);var m=d("lenmode");d("len","fraction"===m?1:v?y:p);var x,b,_,w="paper"===d("yref"),k="paper"===d("xref"),T="left";v?(_="middle",T=k?"left":"right",x=k?1.02:1,b=.5):(_=w?"bottom":"top",T="center",x=.5,b=w?1.02:1),n.coerce(f,u,{x:{valType:"number",min:k?-2:0,max:k?3:1,dflt:x}},"x"),n.coerce(f,u,{y:{valType:"number",min:w?-2:0,max:w?3:1,dflt:b}},"y"),d("xanchor",T),d("xpad"),d("yanchor",_),d("ypad"),n.noneOrAll(f,u,["x","y"]),d("outlinecolor"),d("outlinewidth"),d("bordercolor"),d("borderwidth"),d("bgcolor");var M=n.coerce(f,u,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");d("ticklabeloverflow",-1!==M.indexOf("inside")?"hide past domain":"hide past div"),i(f,u,d,"linear");var A=r.font,S={noAutotickangles:!0,outerTicks:!1,font:A};-1!==M.indexOf("inside")&&(S.bgColor="black"),s(f,u,d,"linear",S),l(f,u,d,"linear",S),o(f,u,d,"linear",S),d("title.text",r._dfltTitle.colorbar);var L=u.showticklabels?u.tickfont:A,O=n.extendFlat({},L,{color:A.color,size:n.bigFont(L.size)});n.coerceFont(d,"title.font",O),d("title.side",v?"top":"right")}},37848:function(e,t,r){"use strict";var n=r(33428),a=r(49760),i=r(7316),o=r(24040),l=r(54460),s=r(86476),c=r(3400),u=c.strTranslate,f=r(92880).extendFlat,d=r(93972),h=r(43616),p=r(76308),y=r(81668),v=r(72736),g=r(94288).flipScale,m=r(28336),x=r(37668),b=r(94724),_=r(84284),w=_.LINE_SPACING,k=_.FROM_TL,T=_.FROM_BR,M=r(63964).cn;e.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+M.colorbar).data(function(e){var t,r,n,a,i=e._fullLayout,o=e.calcdata,l=[];function s(e){return f(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"==typeof a.calc?a.calc(e,n,t):(t._fillgradient=r.reversescale?g(r.colorscale):r.colorscale,t._zrange=[r[a.min],r[a.max]])}for(var u=0;u<o.length;u++){var d=o[u];if((n=d[0].trace)._module){var h=n._module.colorbar;if(!0===n.visible&&h)for(var p=Array.isArray(h),y=p?h:[h],v=0;v<y.length;v++){var m=(a=y[v]).container;(r=m?n[m]:n)&&r.showscale&&((t=s(r.colorbar))._id="cb"+n.uid+(p&&m?"-"+m:""),t._traceIndex=n.index,t._propPrefix=(m?m+".":"")+"colorbar.",t._meta=n._meta,c(),l.push(t))}}}for(var x in i._colorAxes)if((r=i[x]).showscale){var b=i._colorAxes[x];(t=s(r.colorbar))._id="cb"+x,t._propPrefix=x+".colorbar.",t._meta=i._meta,a={min:"cmin",max:"cmax"},"heatmap"!==b[0]&&(n=b[1],a.calc=n._module.colorbar.calc),c(),l.push(t)}return l}(e),function(e){return e._id});t.enter().append("g").attr("class",function(e){return e._id}).classed(M.colorbar,!0),t.each(function(t){var r=n.select(this);c.ensureSingle(r,"rect",M.cbbg),c.ensureSingle(r,"g",M.cbfills),c.ensureSingle(r,"g",M.cblines),c.ensureSingle(r,"g",M.cbaxis,function(e){e.classed(M.crisp,!0)}),c.ensureSingle(r,"g",M.cbtitleunshift,function(e){e.append("g").classed(M.cbtitle,!0)}),c.ensureSingle(r,"rect",M.cboutline);var g=function(e,t,r){var o="v"===t.orientation,s=t.len,d=t.lenmode,g=t.thickness,_=t.thicknessmode,A=t.outlinewidth,S=t.borderwidth,L=t.bgcolor,O=t.xanchor,C=t.yanchor,D=t.xpad,P=t.ypad,E=t.x,R=o?t.y:1-t.y,I="paper"===t.yref,z="paper"===t.xref,N=r._fullLayout,F=N._size,j=t._fillcolor,B=t._line,H=t.title,U=H.side,q=t._zrange||n.extent(("function"==typeof j?j:B.color).domain()),Y="function"==typeof B.color?B.color:function(){return B.color},V="function"==typeof j?j:function(){return j},G=t._levels,Z=function(e,t,r){var n,a,i=t._levels,o=[],l=[],s=i.end+i.size/100,c=i.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(a=0;a<1e5&&(n=i.start+a*c,!(c>0?n>=s:n<=s));a++)n>u&&n<f&&o.push(n);if(t._fillgradient)l=[0];else if("function"==typeof t._fillcolor){var d=t._filllevels;if(d)for(s=d.end+d.size/100,c=d.size,a=0;a<1e5&&(n=d.start+a*c,!(c>0?n>=s:n<=s));a++)n>r[0]&&n<r[1]&&l.push(n);else(l=o.map(function(e){return e-i.size/2})).push(l[l.length-1]+i.size)}else t._fillcolor&&"string"==typeof t._fillcolor&&(l=[0]);return i.size<0&&(o.reverse(),l.reverse()),{line:o,fill:l}}(0,t,q),W=Z.fill,J=Z.line,X=Math.round(g*("fraction"===_?o?F.w:F.h:1)),K=X/(o?F.w:F.h),$=Math.round(s*("fraction"===d?o?F.h:F.w:1)),Q=$/(o?F.h:F.w),ee=z?F.w:r._fullLayout.width,te=I?F.h:r._fullLayout.height,re=Math.round(o?E*ee+D:R*te+P),ne={center:.5,right:1}[O]||0,ae={top:1,middle:.5}[C]||0,ie=o?E-ne*K:R-ae*K,oe=o?R-ae*Q:E-ne*Q,le=Math.round(o?te*(1-oe):ee*oe);t._lenFrac=Q,t._thickFrac=K,t._uFrac=ie,t._vFrac=oe;var se=t._axis=function(e,t,r){var n=e._fullLayout,a="v"===t.orientation,i={type:"linear",range:r,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,labelalias:t.labelalias,ticklabelposition:t.ticklabelposition,ticklabeloverflow:t.ticklabeloverflow,ticklabelstep:t.ticklabelstep,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,minexponent:t.minexponent,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:a?"right":"bottom",position:1},o=a?"y":"x",l={type:"linear",_id:o+t._id},s={letter:o,font:n.font,noAutotickangles:"y"===o,noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:n.calendar};function u(e,t){return c.coerce(i,l,b,e,t)}return m(i,l,u,s,n),x(i,l,u,s),l}(r,t,q);se.position=K+(o?E+D/F.w:R+P/F.h);var ce=-1!==["top","bottom"].indexOf(U);if(o&&ce&&(se.title.side=U,se.titlex=E+D/F.w,se.titley=oe+("top"===H.side?Q-P/F.h:P/F.h)),o||ce||(se.title.side=U,se.titley=R+P/F.h,se.titlex=oe+D/F.w),B.color&&"auto"===t.tickmode){se.tickmode="linear",se.tick0=G.start;var ue=G.size,fe=c.constrain($/50,4,15)+1,de=(q[1]-q[0])/((t.nticks||fe)*ue);if(de>1){var he=Math.pow(10,Math.floor(Math.log(de)/Math.LN10));ue*=he*c.roundUp(de/he,[2,5,10]),(Math.abs(G.start)/G.size+1e-6)%1<2e-6&&(se.tick0=0)}se.dtick=ue}se.domain=o?[oe+P/F.h,oe+Q-P/F.h]:[oe+D/F.w,oe+Q-D/F.w],se.setScale(),e.attr("transform",u(Math.round(F.l),Math.round(F.t)));var pe,ye=e.select("."+M.cbtitleunshift).attr("transform",u(-Math.round(F.l),-Math.round(F.t))),ve=se.ticklabelposition,ge=se.title.font.size,me=e.select("."+M.cbaxis),xe=0,be=0;function _e(n,a){var i={propContainer:se,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:N._dfltTitle.colorbar,containerGroup:e.select("."+M.cbtitle)},o="h"===n.charAt(0)?n.substr(1):"h"+n;e.selectAll("."+o+",."+o+"-math-group").remove(),y.draw(r,n,f(i,a||{}))}return c.syncOrAsync([i.previousPromises,function(){var e,t;(o&&ce||!o&&!ce)&&("top"===U&&(e=D+F.l+ee*E,t=P+F.t+te*(1-oe-Q)+3+.75*ge),"bottom"===U&&(e=D+F.l+ee*E,t=P+F.t+te*(1-oe)-3-.25*ge),"right"===U&&(t=P+F.t+te*R+3+.75*ge,e=D+F.l+ee*oe),_e(se._id+"title",{attributes:{x:e,y:t,"text-anchor":o?"start":"middle"}}))},function(){if(!o&&!ce||o&&ce){var i,s=e.select("."+M.cbtitle),f=s.select("text"),d=[-A/2,A/2],p=s.select(".h"+se._id+"title-math-group").node(),y=15.6;if(f.node()&&(y=parseInt(f.node().style.fontSize,10)*w),p?(i=h.bBox(p),be=i.width,(xe=i.height)>y&&(d[1]-=(xe-y)/2)):f.node()&&!f.classed(M.jsPlaceholder)&&(i=h.bBox(f.node()),be=i.width,xe=i.height),o){if(xe){if(xe+=5,"top"===U)se.domain[1]-=xe/F.h,d[1]*=-1;else{se.domain[0]+=xe/F.h;var g=v.lineCount(f);d[1]+=(1-g)*y}s.attr("transform",u(d[0],d[1])),se.setScale()}}else be&&("right"===U&&(se.domain[0]+=(be+ge/2)/F.w),s.attr("transform",u(d[0],d[1])),se.setScale())}e.selectAll("."+M.cbfills+",."+M.cblines).attr("transform",o?u(0,Math.round(F.h*(1-se.domain[1]))):u(Math.round(F.w*se.domain[0]),0)),me.attr("transform",o?u(0,Math.round(-F.t)):u(Math.round(-F.l),0));var m=e.select("."+M.cbfills).selectAll("rect."+M.cbfill).attr("style","").data(W);m.enter().append("rect").classed(M.cbfill,!0).attr("style",""),m.exit().remove();var x=q.map(se.c2p).map(Math.round).sort(function(e,t){return e-t});m.each(function(e,i){var l=[0===i?q[0]:(W[i]+W[i-1])/2,i===W.length-1?q[1]:(W[i]+W[i+1])/2].map(se.c2p).map(Math.round);o&&(l[1]=c.constrain(l[1]+(l[1]>l[0])?1:-1,x[0],x[1]));var s=n.select(this).attr(o?"x":"y",re).attr(o?"y":"x",n.min(l)).attr(o?"width":"height",Math.max(X,2)).attr(o?"height":"width",Math.max(n.max(l)-n.min(l),2));if(t._fillgradient)h.gradient(s,r,t._id,o?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var u=V(e).replace("e-","");s.attr("fill",a(u).toHexString())}});var b=e.select("."+M.cblines).selectAll("path."+M.cbline).data(B.color&&B.width?J:[]);b.enter().append("path").classed(M.cbline,!0),b.exit().remove(),b.each(function(e){var t=re,r=Math.round(se.c2p(e))+B.width/2%1;n.select(this).attr("d","M"+(o?t+","+r:r+","+t)+(o?"h":"v")+X).call(h.lineGroupStyle,B.width,Y(e),B.dash)}),me.selectAll("g."+se._id+"tick,path").remove();var _=re+X+(A||0)/2-("outside"===t.ticks?1:0),k=l.calcTicks(se),T=l.getTickSigns(se)[2];return l.drawTicks(r,se,{vals:"inside"===se.ticks?l.clipEnds(se,k):k,layer:me,path:l.makeTickPath(se,_,T),transFn:l.makeTransTickFn(se)}),l.drawLabels(r,se,{vals:k,layer:me,transFn:l.makeTransTickLabelFn(se),labelFns:l.makeLabelFns(se,_)})},function(){if(o&&!ce||!o&&ce){var e,a,i=se.position||0,l=se._offset+se._length/2;if("right"===U)a=l,e=F.l+ee*i+10+ge*(se.showticklabels?1:.5);else if(e=l,"bottom"===U&&(a=F.t+te*i+10+(-1===ve.indexOf("inside")?se.tickfont.size:0)+("intside"!==se.ticks&&t.ticklen||0)),"top"===U){var s=H.text.split("<br>").length;a=F.t+te*i+10-X-w*ge*s}_e((o?"h":"v")+se._id+"title",{avoid:{selection:n.select(r).selectAll("g."+se._id+"tick"),side:U,offsetTop:o?0:F.t,offsetLeft:o?F.l:0,maxShift:o?N.width:N.height},attributes:{x:e,y:a,"text-anchor":"middle"},transform:{rotate:o?-90:0,offset:0}})}},i.previousPromises,function(){var n,l=X+A/2;-1===ve.indexOf("inside")&&(n=h.bBox(me.node()),l+=o?n.width:n.height),pe=ye.select("text");var c=0,f=o&&"top"===U,y=!o&&"right"===U,v=0;if(pe.node()&&!pe.classed(M.jsPlaceholder)){var m,x=ye.select(".h"+se._id+"title-math-group").node();x&&(o&&ce||!o&&!ce)?(n=h.bBox(x),c=n.width,m=n.height):(n=h.bBox(ye.node()),c=n.right-F.l-(o?re:le),m=n.bottom-F.t-(o?le:re),o||"top"!==U||(l+=n.height,v=n.height)),y&&(pe.attr("transform",u(c/2+ge/2,0)),c*=2),l=Math.max(l,o?c:m)}var b=2*(o?D:P)+l+S+A/2,w=0;!o&&H.text&&"bottom"===C&&R<=0&&(b+=w=b/2,v+=w),N._hColorbarMoveTitle=w,N._hColorbarMoveCBTitle=v;var j=S+A,B=(o?re:le)-j/2-(o?D:0),q=(o?le:re)-(o?$:P+v-w);e.select("."+M.cbbg).attr("x",B).attr("y",q).attr(o?"width":"height",Math.max(b-w,2)).attr(o?"height":"width",Math.max($+j,2)).call(p.fill,L).call(p.stroke,t.bordercolor).style("stroke-width",S);var Y=y?Math.max(c-10,0):0;e.selectAll("."+M.cboutline).attr("x",(o?re:le+D)+Y).attr("y",(o?le+P-$:re)+(f?xe:0)).attr(o?"width":"height",Math.max(X,2)).attr(o?"height":"width",Math.max($-(o?2*P+xe:2*D+Y),2)).call(p.stroke,t.outlinecolor).style({fill:"none","stroke-width":A});var V=o?ne*b:0,G=o?0:(1-ae)*b-v;if(V=z?F.l-V:-V,G=I?F.t-G:-G,e.attr("transform",u(V,G)),!o&&(S||a(L).getAlpha()&&!a.equals(N.paper_bgcolor,L))){var Z=me.selectAll("text"),W=Z[0].length,J=e.select("."+M.cbbg).node(),K=h.bBox(J),Q=h.getTranslate(e);Z.each(function(e,t){var r=W-1;if(0===t||t===r){var n,a=h.bBox(this),i=h.getTranslate(this);if(t===r){var o=a.right+i.x,l=K.right+Q.x+le-S-2+E;(n=l-o)>0&&(n=0)}else if(0===t){var s=a.left+i.x,c=K.left+Q.x+le+S+2;(n=c-s)<0&&(n=0)}n&&(W<3?this.setAttribute("transform","translate("+n+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ee={},te=k[O],ie=T[O],oe=k[C],ue=T[C],fe=b-X;o?("pixels"===d?(ee.y=R,ee.t=$*oe,ee.b=$*ue):(ee.t=ee.b=0,ee.yt=R+s*oe,ee.yb=R-s*ue),"pixels"===_?(ee.x=E,ee.l=b*te,ee.r=b*ie):(ee.l=fe*te,ee.r=fe*ie,ee.xl=E-g*te,ee.xr=E+g*ie)):("pixels"===d?(ee.x=E,ee.l=$*te,ee.r=$*ie):(ee.l=ee.r=0,ee.xl=E+s*te,ee.xr=E-s*ie),"pixels"===_?(ee.y=1-R,ee.t=b*oe,ee.b=b*ue):(ee.t=fe*oe,ee.b=fe*ue,ee.yt=R-g*oe,ee.yb=R+g*ue));var de=t.y<.5?"b":"t",he=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var be={r:N.width-B-V,l:B+ee.r,b:N.height-q-G,t:q+ee.b};z&&I?i.autoMargin(r,t._id,ee):z?r._fullLayout._reservedMargin[t._id][de]=be[de]:I?r._fullLayout._reservedMargin[t._id][he]=be[he]:o?r._fullLayout._reservedMargin[t._id][he]=be[he]:r._fullLayout._reservedMargin[t._id][de]=be[de]}],r)}(r,t,e);g&&g.then&&(e._promises||[]).push(g),e._context.edits.colorbarPosition&&function(e,t,r){var n,a,i,l="v"===t.orientation,c=r._fullLayout._size;s.init({element:e.node(),gd:r,prepFn:function(){n=e.attr("transform"),d(e)},moveFn:function(r,o){e.attr("transform",n+u(r,o)),a=s.align((l?t._uFrac:t._vFrac)+r/c.w,l?t._thickFrac:t._lenFrac,0,1,t.xanchor),i=s.align((l?t._vFrac:1-t._uFrac)-o/c.h,l?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=s.getCursor(a,i,t.xanchor,t.yanchor);d(e,f)},doneFn:function(){if(d(e),void 0!==a&&void 0!==i){var n={};n[t._propPrefix+"x"]=a,n[t._propPrefix+"y"]=i,void 0!==t._traceIndex?o.call("_guiRestyle",r,n,t._traceIndex):o.call("_guiRelayout",r,n)}}})}(r,t,e)}),t.exit().each(function(t){i.autoMargin(e,t._id)}).remove(),t.order()}}},90553:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e){return n.isPlainObject(e.colorbar)}},55080:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:r(42996),supplyDefaults:r(64013),draw:r(37848).draw,hasColorbar:r(90553)}},49084:function(e,t,r){"use strict";var n=r(42996),a=r(53756).counter,i=r(95376),o=r(88304).scales;i(o);function l(e){return"`"+e+"`"}e.exports=function(e,t){e=e||"";var r,i=(t=t||{}).cLetter||"c",s=("onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),"noScale"in t?t.noScale:"marker.line"===e),c="showScaleDflt"in t?t.showScaleDflt:"z"===i,u="string"==typeof t.colorscaleDflt?o[t.colorscaleDflt]:null,f=t.editTypeOverride||"",d=e?e+".":"";"colorAttr"in t?(r=t.colorAttr,t.colorAttr):l(d+(r={z:"z",c:"color"}[i]));var h=i+"auto",p=i+"min",y=i+"max",v=i+"mid",g=(l(d+h),l(d+p),l(d+y),{});g[p]=g[y]=void 0;var m={};m[h]=!1;var x={};return"color"===r&&(x.color={valType:"color",arrayOk:!0,editType:f||"style"},t.anim&&(x.color.anim=!0)),x[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:g},x[p]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:m},x[y]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:m},x[v]={valType:"number",dflt:null,editType:"calc",impliedEdits:g},x.colorscale={valType:"colorscale",editType:"calc",dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},x.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(x.showscale={valType:"boolean",dflt:c,editType:"calc"},x.colorbar=n),t.noColorAxis||(x.coloraxis={valType:"subplotid",regex:a("coloraxis"),dflt:null,editType:"calc"}),x}},47128:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=r(94288).extractOpts;e.exports=function(e,t,r){var o,l=e._fullLayout,s=r.vals,c=r.containerStr,u=c?a.nestedProperty(t,c).get():t,f=i(u),d=!1!==f.auto,h=f.min,p=f.max,y=f.mid,v=function(){return a.aggNums(Math.min,null,s)},g=function(){return a.aggNums(Math.max,null,s)};(void 0===h?h=v():d&&(h=u._colorAx&&n(h)?Math.min(h,v()):v()),void 0===p?p=g():d&&(p=u._colorAx&&n(p)?Math.max(p,g()):g()),d&&void 0!==y&&(p-y>y-h?h=y-(p-y):p-y<y-h&&(p=y+(y-h))),h===p&&(h-=.5,p+=.5),f._sync("min",h),f._sync("max",p),f.autocolorscale)&&(o=h*p<0?l.colorscale.diverging:h>=0?l.colorscale.sequential:l.colorscale.sequentialminus,f._sync("colorscale",o))}},95504:function(e,t,r){"use strict";var n=r(3400),a=r(94288).hasColorscale,i=r(94288).extractOpts;e.exports=function(e,t){function r(e,t){var r=e["_"+t];void 0!==r&&(e[t]=r)}function o(e,a){var o=a.container?n.nestedProperty(e,a.container).get():e;if(o)if(o.coloraxis)o._colorAx=t[o.coloraxis];else{var l=i(o),s=l.auto;(s||void 0===l.min)&&r(o,a.min),(s||void 0===l.max)&&r(o,a.max),l.autocolorscale&&r(o,"colorscale")}}for(var l=0;l<e.length;l++){var s=e[l],c=s._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u<c.length;u++)o(s,c[u]);else o(s,c);a(s,"marker.line")&&o(s,{container:"marker.line",min:"cmin",max:"cmax"})}for(var f in t._colorAxes)o(t[f],{min:"cmin",max:"cmax"})}},27260:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=r(90553),o=r(64013),l=r(88304).isValid,s=r(24040).traceIs;function c(e,t){var r=t.slice(0,t.length-1);return t?a.nestedProperty(e,r).get()||{}:e}e.exports=function e(t,r,u,f,d){var h=d.prefix,p=d.cLetter,y="_module"in r,v=c(t,h),g=c(r,h),m=c(r._template||{},h)||{},x=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,u,f,d)};if(y){var b=u._colorAxes||{},_=f(h+"coloraxis");if(_){var w=s(r,"contour")&&a.nestedProperty(r,"contours.coloring").get()||"heatmap",k=b[_];return void(k?(k[2].push(x),k[0]!==w&&(k[0]=!1,a.warn(["Ignoring coloraxis:",_,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[_]=[w,r,[x]])}}var T=v[p+"min"],M=v[p+"max"],A=n(T)&&n(M)&&T<M;f(h+p+"auto",!A)?f(h+p+"mid"):(f(h+p+"min"),f(h+p+"max"));var S,L,O=v.colorscale,C=m.colorscale;(void 0!==O&&(S=!l(O)),void 0!==C&&(S=!l(C)),f(h+"autocolorscale",S),f(h+"colorscale"),f(h+"reversescale"),"marker.line."!==h)&&(h&&y&&(L=i(v)),f(h+"showscale",L)&&(h&&m&&(g._template=m),o(v,g,u)))}},94288:function(e,t,r){"use strict";var n=r(33428),a=r(49760),i=r(38248),o=r(3400),l=r(76308),s=r(88304).isValid;var c=["showscale","autocolorscale","colorscale","reversescale","colorbar"],u=["min","max","mid","auto"];function f(e){var t,r,n,a=e._colorAx,i=a||e,o={};for(r=0;r<c.length;r++)o[n=c[r]]=i[n];if(a)for(t="c",r=0;r<u.length;r++)o[n=u[r]]=i["c"+n];else{var l;for(r=0;r<u.length;r++)(l="c"+(n=u[r]))in i?o[n]=i[l]:(l="z"+n)in i&&(o[n]=i[l]);t=l.charAt(0)}return o._sync=function(e,r){var n=-1!==u.indexOf(e)?t+e:e;i[n]=i["_"+n]=r},o}function d(e){for(var t=f(e),r=t.min,n=t.max,a=t.reversescale?h(t.colorscale):t.colorscale,i=a.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var c=a[s];o[s]=r+c[0]*(n-r),l[s]=c[1]}return{domain:o,range:l}}function h(e){for(var t=e.length,r=new Array(t),n=t-1,a=0;n>=0;n--,a++){var i=e[n];r[a]=[1-i[0],i[1]]}return r}function p(e,t){t=t||{};for(var r=e.domain,o=e.range,s=o.length,c=new Array(s),u=0;u<s;u++){var f=a(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var d,h=n.scale.linear().domain(r).range(c).clamp(!0),p=t.noNumericCheck,v=t.returnArray;return(d=p&&v?h:p?function(e){return y(h(e))}:v?function(e){return i(e)?h(e):a(e).isValid()?e:l.defaultLine}:function(e){return i(e)?y(h(e)):a(e).isValid()?e:l.defaultLine}).domain=h.domain,d.range=function(){return o},d}function y(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}e.exports={hasColorscale:function(e,t,r){var n=t?o.nestedProperty(e,t).get()||{}:e,a=n[r||"color"];a&&a._inputArray&&(a=a._inputArray);var l=!1;if(o.isArrayOrTypedArray(a))for(var c=0;c<a.length;c++)if(i(a[c])){l=!0;break}return o.isPlainObject(n)&&(l||!0===n.showscale||i(n.cmin)&&i(n.cmax)||s(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:d,flipScale:h,makeColorScaleFunc:p,makeColorScaleFuncFromTrace:function(e,t){return p(d(e),t)}}},8932:function(e,t,r){"use strict";var n=r(88304),a=r(94288);e.exports={moduleType:"component",name:"colorscale",attributes:r(49084),layoutAttributes:r(92332),supplyLayoutDefaults:r(51608),handleDefaults:r(27260),crossTraceDefaults:r(95504),calc:r(47128),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:a.hasColorscale,extractOpts:a.extractOpts,extractScale:a.extractScale,flipScale:a.flipScale,makeColorScaleFunc:a.makeColorScaleFunc,makeColorScaleFuncFromTrace:a.makeColorScaleFuncFromTrace}},92332:function(e,t,r){"use strict";var n=r(92880).extendFlat,a=r(49084),i=r(88304).scales;e.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:i.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:i.RdBu,editType:"calc"}},coloraxis:n({_isSubplotObj:!0,editType:"calc"},a("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},51608:function(e,t,r){"use strict";var n=r(3400),a=r(31780),i=r(92332),o=r(27260);e.exports=function(e,t){function r(r,a){return n.coerce(e,t,i,r,a)}r("colorscale.sequential"),r("colorscale.sequentialminus"),r("colorscale.diverging");var l,s,c=t._colorAxes;function u(e,t){return n.coerce(l,s,i.coloraxis,e,t)}for(var f in c){var d=c[f];if(d[0])l=e[f]||{},(s=a.newContainer(t,f,"coloraxis"))._name=f,o(l,s,t,u,{prefix:"",cLetter:"c"});else{for(var h=0;h<d[2].length;h++)d[2][h]();delete t._colorAxes[f]}}}},88304:function(e,t,r){"use strict";var n=r(49760),a={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)"]]},i=a.RdBu;function o(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!=+e[0][0]||1!=+e[e.length-1][0])return!1;for(var r=0;r<e.length;r++){var a=e[r];if(2!==a.length||+a[0]<t||!n(a[1]).isValid())return!1;t=+a[0]}return!0}e.exports={scales:a,defaultScale:i,get:function(e,t){if(t||(t=i),!e)return t;function r(){try{e=a[e]||JSON.parse(e)}catch(r){e=t}}return"string"==typeof e&&(r(),"string"==typeof e&&r()),o(e)?e:t},isValid:function(e){return void 0!==a[e]||o(e)}}},78316:function(e){"use strict";e.exports=function(e,t,r,n,a){var i=(e-r)/(n-r),o=i+t/(n-r),l=(i+o)/2;return"left"===a||"bottom"===a?i:"center"===a||"middle"===a?l:"right"===a||"top"===a?o:i<2/3-l?i:o>4/3-l?o:l}},67416:function(e,t,r){"use strict";var n=r(3400),a=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(e,t,r,i){return e="left"===r?0:"center"===r?1:"right"===r?2:n.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:n.constrain(Math.floor(3*t),0,2),a[t][e]}},72760:function(e,t){"use strict";t.selectMode=function(e){return"lasso"===e||"select"===e},t.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.openMode=function(e){return"drawline"===e||"drawopenpath"===e},t.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},t.selectingOrDrawing=function(e){return t.freeMode(e)||t.rectMode(e)}},86476:function(e,t,r){"use strict";var n=r(29128),a=r(52264),i=r(89184),o=r(3400).removeElement,l=r(33816),s=e.exports={};s.align=r(78316),s.getCursor=r(67416);var c=r(2616);function u(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function f(e){return n(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=c.wrapped,s.unhoverRaw=c.raw,s.init=function(e){var t,r,n,c,d,h,p,y,v=e.gd,g=1,m=v._context.doubleClickDelay,x=e.element;v._mouseDownTime||(v._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=_,i?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=_,x.addEventListener("touchstart",_,{passive:!1})):x.ontouchstart=_;var b=e.clampFn||function(e,t,r){return Math.abs(e)<r&&(e=0),Math.abs(t)<r&&(t=0),[e,t]};function _(i){v._dragged=!1,v._dragging=!0;var o=f(i);t=o[0],r=o[1],p=i.target,h=i,y=2===i.buttons||i.ctrlKey,void 0===i.clientX&&void 0===i.clientY&&(i.clientX=t,i.clientY=r),(n=(new Date).getTime())-v._mouseDownTime<m?g+=1:(g=1,v._mouseDownTime=n),e.prepFn&&e.prepFn(i,t,r),a&&!y?(d=u()).style.cursor=window.getComputedStyle(x).cursor:a||(d=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener("mouseup",k),document.addEventListener("touchend",k),!1!==e.dragmode&&(i.preventDefault(),document.addEventListener("mousemove",w),document.addEventListener("touchmove",w,{passive:!1}))}function w(n){n.preventDefault();var a=f(n),i=e.minDrag||l.MINDRAG,o=b(a[0]-t,a[1]-r,i),c=o[0],u=o[1];(c||u)&&(v._dragged=!0,s.unhover(v,n)),v._dragged&&e.moveFn&&!y&&(v._dragdata={element:x,dx:c,dy:u},e.moveFn(c,u))}function k(t){if(delete v._dragdata,!1!==e.dragmode&&(t.preventDefault(),document.removeEventListener("mousemove",w),document.removeEventListener("touchmove",w)),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",k),a?o(d):c&&(d.documentElement.style.cursor=c,c=null),v._dragging){if(v._dragging=!1,(new Date).getTime()-v._mouseDownTime>m&&(g=Math.max(g-1,1)),v._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(g,h),!y){var r;try{r=new MouseEvent("click",t)}catch(e){var n=f(t);(r=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,n[0],n[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}p.dispatchEvent(r)}v._dragging=!1,v._dragged=!1}else v._dragged=!1}},s.coverSlip=u},2616:function(e,t,r){"use strict";var n=r(95924),a=r(91200),i=r(52200).getGraphDiv,o=r(92456),l=e.exports={};l.wrapped=function(e,t,r){(e=i(e))._fullLayout&&a.clear(e._fullLayout._uid+o.HOVERID),l.raw(e,t,r)},l.raw=function(e,t){var r=e._fullLayout,a=e._hoverdata;t||(t={}),t.target&&!e._dragged&&!1===n.triggerHandler(e,"plotly_beforehover",t)||(r._hoverlayer.selectAll("g").remove(),r._hoverlayer.selectAll("line").remove(),r._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&a&&e.emit("plotly_unhover",{event:t,points:a}))}},98192:function(e,t){"use strict";t.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},t.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(e,t,r){"use strict";var n=r(33428),a=r(3400),i=a.numberFormat,o=r(38248),l=r(49760),s=r(24040),c=r(76308),u=r(8932),f=a.strTranslate,d=r(72736),h=r(9616),p=r(84284).LINE_SPACING,y=r(13448).DESELECTDIM,v=r(43028),g=r(7152),m=r(10624).appendArrayPointValue,x=e.exports={};function b(e,t,r,n){var a=t.fillpattern,i=t.fillgradient,o=a&&x.getPatternAttr(a.shape,0,"");if(o){var l=x.getPatternAttr(a.bgcolor,0,null),s=x.getPatternAttr(a.fgcolor,0,null),u=a.fgopacity,f=x.getPatternAttr(a.size,0,8),d=x.getPatternAttr(a.solidity,0,.3),h=t.uid;x.pattern(e,"point",r,h,o,f,d,void 0,a.fillmode,l,s,u)}else if(i&&"none"!==i.type){var p,y,v=i.type,g="scatterfill-"+t.uid;if(n&&(g="legendfill-"+t.uid),n||void 0===i.start&&void 0===i.stop)"horizontal"===v&&(v+="reversed"),e.call(x.gradient,r,g,v,i.colorscale,"fill");else"horizontal"===v?(p={x:i.start,y:0},y={x:i.stop,y:0}):"vertical"===v&&(p={x:0,y:i.start},y={x:0,y:i.stop}),p.x=t._xA.c2p(void 0===p.x?t._extremes.x.min[0].val:p.x,!0),p.y=t._yA.c2p(void 0===p.y?t._extremes.y.min[0].val:p.y,!0),y.x=t._xA.c2p(void 0===y.x?t._extremes.x.max[0].val:y.x,!0),y.y=t._yA.c2p(void 0===y.y?t._extremes.y.max[0].val:y.y,!0),e.call(S,r,g,"linear",i.colorscale,"fill",p,y,!0,!1)}else t.fillcolor&&e.call(c.fill,t.fillcolor)}x.font=function(e,t,r,n){a.isPlainObject(t)&&(n=t.color,r=t.size,t=t.family),t&&e.style("font-family",t),r+1&&e.style("font-size",r+"px"),n&&e.call(c.fill,n)},x.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)},x.setSize=function(e,t,r){e.attr("width",t).attr("height",r)},x.setRect=function(e,t,r,n,a){e.call(x.setPosition,t,r).call(x.setSize,n,a)},x.translatePoint=function(e,t,r,n){var a=r.c2p(e.x),i=n.c2p(e.y);return!!(o(a)&&o(i)&&t.node())&&("text"===t.node().nodeName?t.attr("x",a).attr("y",i):t.attr("transform",f(a,i)),!0)},x.translatePoints=function(e,t,r){e.each(function(e){var a=n.select(this);x.translatePoint(e,a,t,r)})},x.hideOutsideRangePoint=function(e,t,r,n,a,i){t.attr("display",r.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")},x.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,a=t.yaxis;e.each(function(t){var i=t[0].trace,o=i.xcalendar,l=i.ycalendar,c=s.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each(function(e){x.hideOutsideRangePoint(e,n.select(this),r,a,o,l)})})}},x.crispRound=function(e,t,r){return t&&o(t)?e._context.staticPlot?t:t<1?1:Math.round(t):r||0},x.singleLineStyle=function(e,t,r,n,a){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";c.stroke(t,n||i.color),x.dashLine(t,l,o)},x.lineGroupStyle=function(e,t,r,a){e.style("fill","none").each(function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";n.select(this).call(c.stroke,r||i.color).call(x.dashLine,l,o)})},x.dashLine=function(e,t,r){r=+r||0,t=x.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})},x.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=r+"px,"+r+"px":"dash"===e?e=3*r+"px,"+3*r+"px":"longdash"===e?e=5*r+"px,"+5*r+"px":"dashdot"===e?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===e&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e},x.singleFillStyle=function(e,t){var r=n.select(e.node());b(e,((r.data()[0]||[])[0]||{}).trace||{},t,!1)},x.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(e){var a=n.select(this);e[0].trace&&b(a,e[0].trace,t,r)})};var _=r(71984);x.symbolNames=[],x.symbolFuncs=[],x.symbolBackOffs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(_).forEach(function(e){var t=_[e],r=t.n;x.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),x.symbolNames[r]=e,x.symbolFuncs[r]=t.f,x.symbolBackOffs[r]=t.backoff||0,t.needLine&&(x.symbolNeedLines[r]=!0),t.noDot?x.symbolNoDot[r]=!0:x.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(x.symbolNoFill[r]=!0)});var w=x.symbolNames.length,k="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";function T(e,t,r,n){var a=e%100;return x.symbolFuncs[a](t,r,n)+(e>=200?k:"")}x.symbolNumber=function(e){if(o(e))e=+e;else if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=x.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=w||e>=400?0:Math.floor(Math.max(e,0))};var M=i("~f"),A={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};function S(e,t,r,i,o,s,u,f,d,h){var p,y=o.length;"linear"===i?p={node:"linearGradient",attrs:{x1:u.x,y1:u.y,x2:f.x,y2:f.y,gradientUnits:d?"userSpaceOnUse":"objectBoundingBox"},reversed:h}:"radial"===i&&(p={node:"radialGradient",reversed:h});for(var v=new Array(y),g=0;g<y;g++)p.reversed?v[y-1-g]=[M(100*(1-o[g][0])),o[g][1]]:v[g]=[M(100*o[g][0]),o[g][1]];var m=t._fullLayout,x="g"+m._uid+"-"+r,b=m._defs.select(".gradients").selectAll("#"+x).data([i+v.join(";")],a.identity);b.exit().remove(),b.enter().append(p.node).each(function(){var e=n.select(this);p.attrs&&e.attr(p.attrs),e.attr("id",x);var t=e.selectAll("stop").data(v);t.exit().remove(),t.enter().append("stop"),t.each(function(e){var t=l(e[1]);n.select(this).attr({offset:e[0]+"%","stop-color":c.tinyRGB(t),"stop-opacity":t.getAlpha()})})}),e.style(s,q(x,t)).style(s+"-opacity",null),e.classed("gradient_filled",!0)}x.gradient=function(e,t,r,n,a,i){var o=A[n];return S(e,t,r,o.type,a,i,o.start,o.stop,!1,o.reversed)},x.pattern=function(e,t,r,i,o,s,u,f,d,h,p,y){var v="legend"===t;f&&("overlay"===d?(h=f,p=c.contrast(h)):(h=void 0,p=f));var g,m,x,b,_,w,k,T,M,A,S,L=r._fullLayout,O="p"+L._uid+"-"+i,C={},D=l(p),P=c.tinyRGB(D),E=y*D.getAlpha();switch(o){case"/":g=s*Math.sqrt(2),m=s*Math.sqrt(2),w="path",C={d:x="M-"+g/4+","+m/4+"l"+g/2+",-"+m/2+"M0,"+m+"L"+g+",0M"+g/4*3+","+m/4*5+"l"+g/2+",-"+m/2,opacity:E,stroke:P,"stroke-width":(b=u*s)+"px"};break;case"\\":g=s*Math.sqrt(2),m=s*Math.sqrt(2),w="path",C={d:x="M"+g/4*3+",-"+m/4+"l"+g/2+","+m/2+"M0,0L"+g+","+m+"M-"+g/4+","+m/4*3+"l"+g/2+","+m/2,opacity:E,stroke:P,"stroke-width":(b=u*s)+"px"};break;case"x":g=s*Math.sqrt(2),m=s*Math.sqrt(2),x="M-"+g/4+","+m/4+"l"+g/2+",-"+m/2+"M0,"+m+"L"+g+",0M"+g/4*3+","+m/4*5+"l"+g/2+",-"+m/2+"M"+g/4*3+",-"+m/4+"l"+g/2+","+m/2+"M0,0L"+g+","+m+"M-"+g/4+","+m/4*3+"l"+g/2+","+m/2,b=s-s*Math.sqrt(1-u),w="path",C={d:x,opacity:E,stroke:P,"stroke-width":b+"px"};break;case"|":w="path",w="path",C={d:x="M"+(g=s)/2+",0L"+g/2+","+(m=s),opacity:E,stroke:P,"stroke-width":(b=u*s)+"px"};break;case"-":w="path",w="path",C={d:x="M0,"+(m=s)/2+"L"+(g=s)+","+m/2,opacity:E,stroke:P,"stroke-width":(b=u*s)+"px"};break;case"+":w="path",x="M"+(g=s)/2+",0L"+g/2+","+(m=s)+"M0,"+m/2+"L"+g+","+m/2,b=s-s*Math.sqrt(1-u),w="path",C={d:x,opacity:E,stroke:P,"stroke-width":b+"px"};break;case".":g=s,m=s,u<Math.PI/4?_=Math.sqrt(u*s*s/Math.PI):(k=u,T=Math.PI/4,M=1,A=s/2,S=s/Math.sqrt(2),_=A+(S-A)*(k-T)/(M-T)),w="circle",C={cx:g/2,cy:m/2,r:_,opacity:E,fill:P}}var R=[o||"noSh",h||"noBg",p||"noFg",s,u].join(";"),I=L._defs.select(".patterns").selectAll("#"+O).data([R],a.identity);I.exit().remove(),I.enter().append("pattern").each(function(){var e=n.select(this);if(e.attr({id:O,width:g+"px",height:m+"px",patternUnits:"userSpaceOnUse",patternTransform:v?"scale(0.8)":""}),h){var t=l(h),r=c.tinyRGB(t),a=t.getAlpha(),i=e.selectAll("rect").data([0]);i.exit().remove(),i.enter().append("rect").attr({width:g+"px",height:m+"px",fill:r,"fill-opacity":a})}var o=e.selectAll(w).data([0]);o.exit().remove(),o.enter().append(w).attr(C)}),e.style("fill",q(O,r)).style("fill-opacity",null),e.classed("pattern_filled",!0)},x.initGradients=function(e){var t=e._fullLayout;a.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),n.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)},x.initPatterns=function(e){var t=e._fullLayout;a.ensureSingle(t._defs,"g","patterns").selectAll("pattern").remove(),n.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)},x.getPatternAttr=function(e,t,r){return e&&a.isArrayOrTypedArray(e)?t<e.length?e[t]:r:e},x.pointStyle=function(e,t,r,a){if(e.size()){var i=x.makePointStyleFns(t);e.each(function(e){x.singlePointStyle(e,n.select(this),t,i,r,a)})}},x.singlePointStyle=function(e,t,r,n,i,o){var l=r.marker,s=l.line;if(o&&o.i>=0&&void 0===e.i&&(e.i=o.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):void 0===e.mo?l.opacity:e.mo),n.ms2mrc){var u;u="various"===e.ms||"various"===l.size?3:n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var f=x.symbolNumber(e.mx||l.symbol)||0;e.om=f%200>=100;var d=ne(e,r),h=G(e,r);t.attr("d",T(f,u,d,h))}var p,y,v,g=!1;if(e.so)v=s.outlierwidth,y=s.outliercolor,p=l.outliercolor;else{var m=(s||{}).width;v=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,y="mlc"in e?e.mlcc=n.lineScale(e.mlc):a.isArrayOrTypedArray(s.color)?c.defaultLine:s.color,a.isArrayOrTypedArray(l.color)&&(p=c.defaultLine,g=!0),p="mc"in e?e.mcc=n.markerScale(e.mc):l.color||l.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(p=n.selectedColorFn(e))}if(e.om)t.call(c.stroke,p).style({"stroke-width":(v||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:v)+"px");var b=l.gradient,_=e.mgt;_?g=!0:_=b&&b.type,a.isArrayOrTypedArray(_)&&(_=_[0],A[_]||(_=0));var w=l.pattern,k=w&&x.getPatternAttr(w.shape,e.i,"");if(_&&"none"!==_){var M=e.mgc;M?g=!0:M=b.color;var S=r.uid;g&&(S+="-"+e.i),x.gradient(t,i,S,_,[[0,M],[1,p]],"fill")}else if(k){var L=!1,O=w.fgcolor;!O&&o&&o.color&&(O=o.color,L=!0);var C=x.getPatternAttr(O,e.i,o&&o.color||null),D=x.getPatternAttr(w.bgcolor,e.i,null),P=w.fgopacity,E=x.getPatternAttr(w.size,e.i,8),R=x.getPatternAttr(w.solidity,e.i,.3);L=L||e.mcc||a.isArrayOrTypedArray(w.shape)||a.isArrayOrTypedArray(w.bgcolor)||a.isArrayOrTypedArray(w.fgcolor)||a.isArrayOrTypedArray(w.size)||a.isArrayOrTypedArray(w.solidity);var I=r.uid;L&&(I+="-"+e.i),x.pattern(t,"point",i,I,k,E,R,e.mcc,w.fillmode,D,C,P)}else a.isArrayOrTypedArray(p)?c.fill(t,p[e.i]):c.fill(t,p);v&&c.stroke(t,y)}},x.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=x.tryColorscale(r,""),t.lineScale=x.tryColorscale(r,"line"),s.traceIs(e,"symbols")&&(t.ms2mrc=v.isBubble(e)?g(e):function(){return(r.size||6)/2}),e.selectedpoints&&a.extendFlat(t,x.makeSelectedPointStyleFns(e)),t},x.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},o=r.marker||{},l=n.marker||{},c=i.opacity,u=o.opacity,f=l.opacity,d=void 0!==u,h=void 0!==f;(a.isArrayOrTypedArray(c)||d||h)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?i.opacity:e.mo;return e.selected?d?u:t:h?f:y*t});var p=i.color,v=o.color,g=l.color;(v||g)&&(t.selectedColorFn=function(e){var t=e.mcc||p;return e.selected?v||t:g||t});var m=i.size,x=o.size,b=l.size,_=void 0!==x,w=void 0!==b;return s.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||m/2;return e.selected?_?x/2:t:w?b/2:t}),t},x.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=r.textfont||{},o=n.textfont||{},l=a.color,s=i.color,u=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||l;return e.selected?s||t:u||(s?t:c.addOpacity(t,y))},t},x.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedPointStyleFns(t),a=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(e,t){e.style("opacity",r.selectedOpacityFn(t))}),r.selectedColorFn&&i.push(function(e,t){c.fill(e,r.selectedColorFn(t))}),r.selectedSizeFn&&i.push(function(e,n){var i=n.mx||a.symbol||0,o=r.selectedSizeFn(n);e.attr("d",T(x.symbolNumber(i),o,ne(n,t),G(n,t))),n.mrc2=o}),i.length&&e.each(function(e){for(var t=n.select(this),r=0;r<i.length;r++)i[r](t,e)})}},x.tryColorscale=function(e,t){var r=t?a.nestedProperty(e,t).get():e;if(r){var n=r.color;if((r.colorscale||r._colorAx)&&a.isArrayOrTypedArray(n))return u.makeColorScaleFuncFromTrace(r)}return a.identity};var L={start:1,end:-1,middle:0,bottom:1,top:-1};function O(e,t,r,a,i){var o=n.select(e.node().parentNode),l=-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle",s=-1!==t.indexOf("left")?"end":-1!==t.indexOf("right")?"start":"middle",c=a?a/.8+1:0,u=(d.lineCount(e)-1)*p+1,h=L[s]*c,y=.75*r+L[l]*c+(L[l]-1)*u*r/2;e.attr("text-anchor",s),i||o.attr("transform",f(h,y))}function C(e,t){var r=e.ts||t.textfont.size;return o(r)&&r>0?r:0}x.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var o=x.makeSelectedTextStyleFns(t);i=o.selectedTextColorFn}var l=t.texttemplate,s=r._fullLayout;e.each(function(e){var o=n.select(this),c=l?a.extractOption(e,t,"txt","texttemplate"):a.extractOption(e,t,"tx","text");if(c||0===c){if(l){var u=t._module.formatLabels,f=u?u(e,t,s):{},h={};m(h,t,e.i);var p=t._meta||{};c=a.texttemplateString(c,f,s._d3locale,h,e,p)}var y=e.tp||t.textposition,v=C(e,t),g=i?i(e):e.tc||t.textfont.color;o.call(x.font,e.tf||t.textfont.family,v,g).text(c).call(d.convertToTspans,r).call(O,y,v,e.mrc)}else o.remove()})}},x.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedTextStyleFns(t);e.each(function(e){var a=n.select(this),i=r.selectedTextColorFn(e),o=e.tp||t.textposition,l=C(e,t);c.fill(a,i);var u=s.traceIs(t,"bar-like");O(a,o,l,e.mrc2||e.mrc,u)})}};var D,P,E=.5;function R(e,t,r){return r&&(e=B(e)),t?z(e[1]):I(e[0])}function I(e){var t=n.round(e,2);return D=t,t}function z(e){var t=n.round(e,2);return P=t,t}function N(e,t,r,n){var a=e[0]-t[0],i=e[1]-t[1],o=r[0]-t[0],l=r[1]-t[1],s=Math.pow(a*a+i*i,E/2),c=Math.pow(o*o+l*l,E/2),u=(c*c*a-s*s*o)*n,f=(c*c*i-s*s*l)*n,d=3*c*(s+c),h=3*s*(s+c);return[[I(t[0]+(d&&u/d)),z(t[1]+(d&&f/d))],[I(t[0]-(h&&u/h)),z(t[1]-(h&&f/h))]]}x.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r,n="M"+e[0],a=[];for(r=1;r<e.length-1;r++)a.push(N(e[r-1],e[r],e[r+1],t));for(n+="Q"+a[0][0]+" "+e[1],r=2;r<e.length-1;r++)n+="C"+a[r-2][1]+" "+a[r-1][0]+" "+e[r];return n+="Q"+a[e.length-3][1]+" "+e[e.length-1]},x.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var r,n="M"+e[0],a=e.length-1,i=[N(e[a],e[0],e[1],t)];for(r=1;r<a;r++)i.push(N(e[r-1],e[r],e[r+1],t));for(i.push(N(e[a-1],e[a],e[0],t)),r=1;r<=a;r++)n+="C"+i[r-1][1]+" "+i[r][0]+" "+e[r];return n+="C"+i[a][1]+" "+i[0][0]+" "+e[0]+"Z"};var F={hv:function(e,t,r){return"H"+I(t[0])+"V"+R(t,1,r)},vh:function(e,t,r){return"V"+z(t[1])+"H"+R(t,0,r)},hvh:function(e,t,r){return"H"+I((e[0]+t[0])/2)+"V"+z(t[1])+"H"+R(t,0,r)},vhv:function(e,t,r){return"V"+z((e[1]+t[1])/2)+"H"+I(t[0])+"V"+R(t,1,r)}},j=function(e,t,r){return"L"+R(t,0,r)+","+R(t,1,r)};function B(e,t){var r=e.backoff,n=e.trace,i=e.d,o=e.i;if(r&&n&&n.marker&&n.marker.angle%360==0&&n.line&&"spline"!==n.line.shape){var l=a.isArrayOrTypedArray(r),s=e,c=t?t[0]:D||0,u=t?t[1]:P||0,f=s[0],d=s[1],h=f-c,p=d-u,y=Math.atan2(p,h),v=l?r[o]:r;if("auto"===v){var g=s.i;"scatter"===n.type&&g--;var m=s.marker,b=m.symbol;a.isArrayOrTypedArray(b)&&(b=b[g]);var _=m.size;a.isArrayOrTypedArray(_)&&(_=_[g]),v=m?x.symbolBackOffs[x.symbolNumber(b)]*_:0,v+=x.getMarkerStandoff(i[g],n)||0}var w=f-v*Math.cos(y),k=d-v*Math.sin(y);(w<=f&&w>=c||w>=f&&w<=c)&&(k<=d&&k>=u||k>=d&&k<=u)&&(e=[w,k])}return e}x.steps=function(e){var t=F[e]||j;return function(e){for(var r="M"+I(e[0][0])+","+z(e[0][1]),n=e.length,a=1;a<n;a++)r+=t(e[a-1],e[a],a===n-1);return r}},x.applyBackoff=B,x.makeTester=function(){var e=a.ensureSingleById(n.select("body"),"svg","js-plotly-tester",function(e){e.attr(h.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=a.ensureSingle(e,"path","js-reference-point",function(e){e.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});x.tester=e,x.testref=t},x.savedBBoxes={};var H=0;function U(e){var t=e.getAttribute("data-unformatted");if(null!==t)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}function q(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}x.bBox=function(e,t,r){var i,o,l;if(r||(r=U(e)),r){if(i=x.savedBBoxes[r])return a.extendFlat({},i)}else if(1===e.childNodes.length){var s=e.childNodes[0];if(r=U(s)){var c=+s.getAttribute("x")||0,u=+s.getAttribute("y")||0,f=s.getAttribute("transform");if(!f){var h=x.bBox(s,!1,r);return c&&(h.left+=c,h.right+=c),u&&(h.top+=u,h.bottom+=u),h}if(r+="~"+c+"~"+u+"~"+f,i=x.savedBBoxes[r])return a.extendFlat({},i)}}t?o=e:(l=x.tester.node(),o=e.cloneNode(!0),l.appendChild(o)),n.select(o).attr("transform",null).call(d.positionText,0,0);var p=o.getBoundingClientRect(),y=x.testref.node().getBoundingClientRect();t||l.removeChild(o);var v={height:p.height,width:p.width,left:p.left-y.left,top:p.top-y.top,right:p.right-y.left,bottom:p.bottom-y.top};return H>=1e4&&(x.savedBBoxes={},H=0),r&&(x.savedBBoxes[r]=v),H++,a.extendFlat({},v)},x.setClipUrl=function(e,t,r){e.attr("clip-path",q(t,r))},x.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(e,t,r){return[t,r].join(" ")}).split(" ");return{x:+t[0]||0,y:+t[1]||0}},x.setTranslate=function(e,t,r){var n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[n]("transform")||"";return t=t||0,r=r||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=f(t,r)).trim(),e[a]("transform",i),i},x.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(e,t,r){return[t,r].join(" ")}).split(" ");return{x:+t[0]||1,y:+t[1]||1}},x.setScale=function(e,t,r){var n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[n]("transform")||"";return t=t||1,r=r||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+="scale("+t+","+r+")").trim(),e[a]("transform",i),i};var Y=/\s*sc.*/;x.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,e){var n=1===t&&1===r?"":"scale("+t+","+r+")";e.each(function(){var e=(this.getAttribute("transform")||"").replace(Y,"");e=(e+=n).trim(),this.setAttribute("transform",e)})}};var V=/translate\([^)]*\)\s*$/;function G(e,t){var r;return e&&(r=e.mf),void 0===r&&(r=t.marker&&t.marker.standoff||0),t._geo||t._xA?r:-r}x.setTextPointsScale=function(e,t,r){e&&e.each(function(){var e,a=n.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(V);e=1===t&&1===r?[]:[f(o,l),"scale("+t+","+r+")",f(-o,-l)],s&&e.push(s),a.attr("transform",e.join(""))}})},x.getMarkerStandoff=G;var Z,W,J,X,K,$,Q=Math.atan2,ee=Math.cos,te=Math.sin;function re(e,t){var r=t[0],n=t[1];return[r*ee(e)-n*te(e),r*te(e)+n*ee(e)]}function ne(e,t){var r,n,i=e.ma;void 0===i&&((i=t.marker.angle)&&!a.isArrayOrTypedArray(i)||(i=0));var l=t.marker.angleref;if("previous"===l||"north"===l){if(t._geo){var s=t._geo.project(e.lonlat);r=s[0],n=s[1]}else{var c=t._xA,u=t._yA;if(!c||!u)return 90;r=c.c2p(e.x),n=u.c2p(e.y)}if(t._geo){var f,d=e.lonlat[0],h=e.lonlat[1],p=t._geo.project([d,h+1e-5]),y=t._geo.project([d+1e-5,h]),v=Q(y[1]-n,y[0]-r),g=Q(p[1]-n,p[0]-r);if("north"===l)f=i/180*Math.PI;else if("previous"===l){var m=d/180*Math.PI,x=h/180*Math.PI,b=Z/180*Math.PI,_=W/180*Math.PI,w=b-m,k=ee(_)*te(w),T=te(_)*ee(x)-ee(_)*te(x)*ee(w);f=-Q(k,T)-Math.PI,Z=d,W=h}var M=re(v,[ee(f),0]),A=re(g,[te(f),0]);i=Q(M[1]+A[1],M[0]+A[0])/Math.PI*180,"previous"!==l||$===t.uid&&e.i===K+1||(i=null)}if("previous"===l&&!t._geo)if($===t.uid&&e.i===K+1&&o(r)&&o(n)){var S=r-J,L=n-X,O=t.line&&t.line.shape||"",C=O.slice(O.length-1);"h"===C&&(L=0),"v"===C&&(S=0),i+=Q(L,S)/Math.PI*180+90}else i=null}return J=r,X=n,K=e.i,$=t.uid,i}x.getMarkerAngle=ne},71984:function(e,t,r){"use strict";var n,a,i,o,l=r(21984),s=r(33428).round,c=Math.sqrt(2),u=Math.sqrt(3),f=Math.PI,d=Math.cos,h=Math.sin;function p(e){return null===e}function y(e,t,r){if(!(e&&e%360!=0||t))return r;if(i===e&&o===t&&n===r)return a;function s(e,r){var n=d(e),a=h(e),i=r[0],o=r[1]+(t||0);return[i*n-o*a,i*a+o*n]}i=e,o=t,n=r;for(var c=e/180*f,u=0,p=0,y=l(r),v="",g=0;g<y.length;g++){var m=y[g],x=m[0],b=u,_=p;if("M"===x||"L"===x)u=+m[1],p=+m[2];else if("m"===x||"l"===x)u+=+m[1],p+=+m[2];else if("H"===x)u=+m[1];else if("h"===x)u+=+m[1];else if("V"===x)p=+m[1];else if("v"===x)p+=+m[1];else if("A"===x){u=+m[1],p=+m[2];var w=s(c,[+m[6],+m[7]]);m[6]=w[0],m[7]=w[1],m[3]=+m[3]+e}"H"!==x&&"V"!==x||(x="L"),"h"!==x&&"v"!==x||(x="l"),"m"!==x&&"l"!==x||(u-=b,p-=_);var k=s(c,[u,p]);"H"!==x&&"V"!==x||(x="L"),"M"!==x&&"L"!==x&&"m"!==x&&"l"!==x||(m[1]=k[0],m[2]=k[1]),m[0]=x,v+=m[0]+m.slice(1).join(",")}return a=v,v}e.exports={circle:{n:0,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?y(t,r,a):a}},square:{n:1,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.3*e,2);return y(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(.4*e,2),a=s(1.2*e,2);return y(t,r,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(.8*e/c,2),a="l"+n+","+n,i="l"+n+",-"+n,o="l-"+n+",-"+n,l="l-"+n+","+n;return y(t,r,"M0,"+n+a+i+o+i+o+l+o+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(2*e/u,2);return y(t,r,"M-"+n+","+s(e/2,2)+"H"+n+"L0,-"+s(e,2)+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(2*e/u,2);return y(t,r,"M-"+n+",-"+s(e/2,2)+"H"+n+"L0,"+s(e,2)+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(2*e/u,2);return y(t,r,"M"+s(e/2,2)+",-"+n+"V"+n+"L-"+s(e,2)+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(2*e/u,2);return y(t,r,"M-"+s(e/2,2)+",-"+n+"V"+n+"L"+s(e,2)+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(.6*e,2),a=s(1.2*e,2);return y(t,r,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(.6*e,2),a=s(1.2*e,2);return y(t,r,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(.6*e,2),a=s(1.2*e,2);return y(t,r,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(.6*e,2),a=s(1.2*e,2);return y(t,r,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(.951*e,2),a=s(.588*e,2),i=s(-e,2),o=s(-.309*e,2);return y(t,r,"M"+n+","+o+"L"+a+","+s(.809*e,2)+"H-"+a+"L-"+n+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2),a=s(e/2,2),i=s(e*u/2,2);return y(t,r,"M"+i+",-"+a+"V"+a+"L0,"+n+"L-"+i+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2),a=s(e/2,2),i=s(e*u/2,2);return y(t,r,"M-"+a+","+i+"H"+a+"L"+n+",0L"+a+",-"+i+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(.924*e,2),a=s(.383*e,2);return y(t,r,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,r){if(p(t))return"M0,0Z";var n=1.4*e,a=s(.225*n,2),i=s(.951*n,2),o=s(.363*n,2),l=s(.588*n,2),c=s(-n,2),u=s(-.309*n,2),f=s(.118*n,2),d=s(.809*n,2);return y(t,r,"M"+a+","+u+"H"+i+"L"+o+","+f+"L"+l+","+d+"L0,"+s(.382*n,2)+"L-"+l+","+d+"L-"+o+","+f+"L-"+i+","+u+"H-"+a+"L0,"+c+"Z")}},hexagram:{n:18,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(.66*e,2),a=s(.38*e,2),i=s(.76*e,2);return y(t,r,"M-"+i+",0l-"+a+",-"+n+"h"+i+"l"+a+",-"+n+"l"+a+","+n+"h"+i+"l-"+a+","+n+"l"+a+","+n+"h-"+i+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e*u*.8,2),a=s(.8*e,2),i=s(1.6*e,2),o=s(4*e,2),l="A "+o+","+o+" 0 0 1 ";return y(t,r,"M-"+n+","+a+l+n+","+a+l+"0,-"+i+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e*u*.8,2),a=s(.8*e,2),i=s(1.6*e,2),o=s(4*e,2),l="A "+o+","+o+" 0 0 1 ";return y(t,r,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+i+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.1*e,2),a=s(2*e,2),i="A "+a+","+a+" 0 0 1 ";return y(t,r,"M-"+n+",-"+n+i+"-"+n+","+n+i+n+","+n+i+n+",-"+n+i+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.4*e,2),a=s(1.9*e,2),i="A "+a+","+a+" 0 0 1 ";return y(t,r,"M-"+n+",0"+i+"0,"+n+i+n+",0"+i+"0,-"+n+i+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(.7*e,2),a=s(1.4*e,2);return y(t,r,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.4*e,2),a=s(.7*e,2);return y(t,r,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2),a=s(e/c,2);return y(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.3*e,2);return y(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.3*e,2),a=s(.65*e,2);return y(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.4*e,2);return y(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.2*e,2),a=s(.85*e,2);return y(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e/2,2),a=s(e,2);return y(t,r,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return y(t,r,"M-"+n+","+i+"L0,0M"+n+","+i+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return y(t,r,"M-"+n+",-"+i+"L0,0M"+n+",-"+i+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return y(t,r,"M"+i+","+n+"L0,0M"+i+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return y(t,r,"M-"+i+","+n+"L0,0M-"+i+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.4*e,2);return y(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(1.4*e,2);return y(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M0,0L-"+n+","+s(2*e,2)+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M0,0L-"+n+",-"+s(2*e,2)+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(2*e,2),a=s(e,2);return y(t,r,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(2*e,2),a=s(e,2);return y(t,r,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+s(2*e,2)+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(e,2);return y(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+s(2*e,2)+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(2*e,2),a=s(e,2);return y(t,r,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(p(t))return"M0,0Z";var n=s(2*e,2),a=s(e,2);return y(t,r,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(p(t))return"M0,0Z";var n=f/2.5,a=2*e*d(n),i=2*e*h(n);return y(t,r,"M0,0L"+-a+","+i+"L"+a+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(p(t))return"M0,0Z";var n=f/4,a=2*e*d(n),i=2*e*h(n);return y(t,r,"M0,0L"+-a+","+i+"A "+2*e+","+2*e+" 0 0 1 "+a+","+i+"Z")},backoff:.4,noDot:!0}}},97644:function(e){"use strict";e.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},14880:function(e,t,r){"use strict";var n=r(38248),a=r(24040),i=r(54460),o=r(3400),l=r(93792);function s(e,t,r,a){var s=t["error_"+a]||{},c=[];if(s.visible&&-1!==["linear","log"].indexOf(r.type)){for(var u=l(s),f=0;f<e.length;f++){var d=e[f],h=d.i;if(void 0===h)h=f;else if(null===h)continue;var p=d[a];if(n(r.c2l(p))){var y=u(p,h);if(n(y[0])&&n(y[1])){var v=d[a+"s"]=p-y[0],g=d[a+"h"]=p+y[1];c.push(v,g)}}}var m=r._id,x=t._extremes[m],b=i.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(e){for(var t=e.calcdata,r=0;r<t.length;r++){var n=t[r],o=n[0].trace;if(!0===o.visible&&a.traceIs(o,"errorBarsOK")){var l=i.getFromId(e,o.xaxis),c=i.getFromId(e,o.yaxis);s(n,o,l,"x"),s(n,o,c,"y")}}}},93792:function(e){"use strict";function t(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}e.exports=function(e){var r=e.type,n=e.symmetric;if("data"===r){var a=e.array||[];if(n)return function(e,t){var r=+a[t];return[r,r]};var i=e.arrayminus||[];return function(e,t){var r=+a[t],n=+i[t];return isNaN(r)&&isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=t(r,e.value),l=t(r,e.valueminus);return n||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[l(e),o(e)]}}},65200:function(e,t,r){"use strict";var n=r(38248),a=r(24040),i=r(3400),o=r(31780),l=r(97644);e.exports=function(e,t,r,s){var c="error_"+s.axis,u=o.newContainer(t,c),f=e[c]||{};function d(e,t){return i.coerce(f,u,l,e,t)}if(!1!==d("visible",void 0!==f.array||void 0!==f.value||"sqrt"===f.type)){var h=d("type","array"in f?"data":"percent"),p=!0;"sqrt"!==h&&(p=d("symmetric",!(("data"===h?"arrayminus":"valueminus")in f))),"data"===h?(d("array"),d("traceref"),p||(d("arrayminus"),d("tracerefminus"))):"percent"!==h&&"constant"!==h||(d("value"),p||d("valueminus"));var y="copy_"+s.inherit+"style";if(s.inherit)(t["error_"+s.inherit]||{}).visible&&d(y,!(f.color||n(f.thickness)||n(f.width)));s.inherit&&u[y]||(d("color",r),d("thickness"),d("width",a.traceIs(t,"gl3d")?0:4))}}},64968:function(e,t,r){"use strict";var n=r(3400),a=r(67824).overrideAll,i=r(97644),o={error_x:n.extendFlat({},i),error_y:n.extendFlat({},i)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var l={error_x:n.extendFlat({},i),error_y:n.extendFlat({},i),error_z:n.extendFlat({},i)};delete l.error_x.copy_ystyle,delete l.error_y.copy_ystyle,delete l.error_z.copy_ystyle,delete l.error_z.copy_zstyle,e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:a(l,"calc","nested"),scattergl:a(o,"calc","nested")}},supplyDefaults:r(65200),calc:r(14880),makeComputeError:r(93792),plot:r(78512),style:r(92036),hoverInfo:function(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys));(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}}},78512:function(e,t,r){"use strict";var n=r(33428),a=r(38248),i=r(43616),o=r(43028);e.exports=function(e,t,r,l){var s=r.xaxis,c=r.yaxis,u=l&&l.duration>0,f=e._context.staticPlot;t.each(function(t){var d,h=t[0].trace,p=h.error_x||{},y=h.error_y||{};h.ids&&(d=function(e){return e.id});var v=o.hasMarkers(h)&&h.marker.maxdisplayed>0;y.visible||p.visible||(t=[]);var g=n.select(this).selectAll("g.errorbar").data(t,d);if(g.exit().remove(),t.length){p.visible||g.selectAll("path.xerror").remove(),y.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var m=g.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(l.duration).style("opacity",1),i.setClipUrl(g,r.layerClipId,e),g.each(function(e){var t=n.select(this),r=function(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};void 0!==e.yh&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),a(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0)));void 0!==e.xh&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),a(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0)));return n}(e,s,c);if(!v||e.vis){var i,o=t.select("path.yerror");if(y.visible&&a(r.x)&&a(r.yh)&&a(r.ys)){var d=y.width;i="M"+(r.x-d)+","+r.yh+"h"+2*d+"m-"+d+",0V"+r.ys,r.noYS||(i+="m-"+d+",0h"+2*d),!o.size()?o=t.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("yerror",!0):u&&(o=o.transition().duration(l.duration).ease(l.easing)),o.attr("d",i)}else o.remove();var h=t.select("path.xerror");if(p.visible&&a(r.y)&&a(r.xh)&&a(r.xs)){var g=(p.copy_ystyle?y:p).width;i="M"+r.xh+","+(r.y-g)+"v"+2*g+"m0,-"+g+"H"+r.xs,r.noXS||(i+="m0,-"+g+"v"+2*g),!h.size()?h=t.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("xerror",!0):u&&(h=h.transition().duration(l.duration).ease(l.easing)),h.attr("d",i)}else h.remove()}})}})}},92036:function(e,t,r){"use strict";var n=r(33428),a=r(76308);e.exports=function(e){e.each(function(e){var t=e[0].trace,r=t.error_y||{},i=t.error_x||{},o=n.select(this);o.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(a.stroke,r.color),i.copy_ystyle&&(i=r),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(a.stroke,i.color)})}},55756:function(e,t,r){"use strict";var n=r(25376),a=r(65460).hoverlabel,i=r(92880).extendFlat;e.exports={hoverlabel:{bgcolor:i({},a.bgcolor,{arrayOk:!0}),bordercolor:i({},a.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:"none"}),align:i({},a.align,{arrayOk:!0}),namelength:i({},a.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(e,t,r){"use strict";var n=r(3400),a=r(24040);function i(e,t,r,a){a=a||n.identity,Array.isArray(e)&&(t[0][r]=a(e))}e.exports=function(e){var t=e.calcdata,r=e._fullLayout;function o(e){return function(t){return n.coerceHoverinfo({hoverinfo:t},{_module:e._module},r)}}for(var l=0;l<t.length;l++){var s=t[l],c=s[0].trace;if(!a.traceIs(c,"pie-like")){var u=a.traceIs(c,"2dMap")?i:n.fillArray;u(c.hoverinfo,s,"hi",o(c)),c.hovertemplate&&u(c.hovertemplate,s,"ht"),c.hoverlabel&&(u(c.hoverlabel.bgcolor,s,"hbg"),u(c.hoverlabel.bordercolor,s,"hbc"),u(c.hoverlabel.font.size,s,"hts"),u(c.hoverlabel.font.color,s,"htc"),u(c.hoverlabel.font.family,s,"htf"),u(c.hoverlabel.namelength,s,"hnl"),u(c.hoverlabel.align,s,"hta"))}}}},62376:function(e,t,r){"use strict";var n=r(24040),a=r(83292).hover;e.exports=function(e,t,r){var i=n.getComponentMethod("annotations","onClick")(e,e._hoverdata);function o(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==r&&a(e,t,r,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},92456:function(e){"use strict";e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},95448:function(e,t,r){"use strict";var n=r(3400),a=r(55756),i=r(16132);e.exports=function(e,t,r,o){var l=n.extendFlat({},o.hoverlabel);t.hovertemplate&&(l.namelength=-1),i(e,t,function(r,i){return n.coerce(e,t,a,r,i)},l)}},10624:function(e,t,r){"use strict";var n=r(3400);t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.isTraceInSubplots=function(e,r){if("splom"===e.type){for(var n=e.xaxes||[],a=e.yaxes||[],i=0;i<n.length;i++)for(var o=0;o<a.length;o++)if(-1!==r.indexOf(n[i]+a[o]))return!0;return!1}return-1!==r.indexOf(t.getSubplot(e))},t.flat=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)r[n]=t;return r},t.p2c=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)r[n]=e[n].p2c(t);return r},t.getDistanceFunction=function(e,r,n,a){return"closest"===e?a||t.quadrature(r,n):"x"===e.charAt(0)?r:n},t.getClosest=function(e,t,r){if(!1!==r.index)r.index>=0&&r.index<e.length?r.distance=0:r.index=!1;else for(var n=0;n<e.length;n++){var a=t(e[n]);a<=r.distance&&(r.index=n,r.distance=a)}return r},t.inbox=function(e,t,r){return e*t<0||0===e?r:1/0},t.quadrature=function(e,t){return function(r){var n=e(r),a=t(r);return Math.sqrt(n*n+a*a)}},t.makeEventData=function(e,r,n){var a="index"in e?e.index:e.pointNumber,i={data:r._input,fullData:r,curveNumber:r.index,pointNumber:a};if(r._indexToPoints){var o=r._indexToPoints[a];1===o.length?i.pointIndex=o[0]:i.pointIndices=o}else i.pointIndex=a;return r._module.eventData?i=r._module.eventData(i,e,r,n,a):("xVal"in e?i.x=e.xVal:"x"in e&&(i.x=e.x),"yVal"in e?i.y=e.yVal:"y"in e&&(i.y=e.y),e.xa&&(i.xaxis=e.xa),e.ya&&(i.yaxis=e.ya),void 0!==e.zLabelVal&&(i.z=e.zLabelVal)),t.appendArrayPointValue(i,r,a),i},t.appendArrayPointValue=function(e,t,r){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],c=i(s);if(void 0===e[c]){var u=o(n.nestedProperty(t,s).get(),r);void 0!==u&&(e[c]=u)}}},t.appendArrayMultiPointValues=function(e,t,r){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],c=i(s);if(void 0===e[c]){for(var u=n.nestedProperty(t,s).get(),f=new Array(r.length),d=0;d<r.length;d++)f[d]=o(u,r[d]);e[c]=f}}};var a={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function i(e){return a[e]||e}function o(e,t){return Array.isArray(t)?Array.isArray(e)&&Array.isArray(e[t[0]])?e[t[0]][t[1]]:void 0:e[t]}var l={x:!0,y:!0},s={"x unified":!0,"y unified":!0};t.isUnifiedHover=function(e){return"string"==typeof e&&!!s[e]},t.isXYhover=function(e){return"string"==typeof e&&!!l[e]}},83292:function(e,t,r){"use strict";var n=r(33428),a=r(38248),i=r(49760),o=r(3400),l=o.strTranslate,s=o.strRotate,c=r(95924),u=r(72736),f=r(72213),d=r(43616),h=r(76308),p=r(86476),y=r(54460),v=r(24040),g=r(10624),m=r(92456),x=r(77864),b=r(31140),_=m.YANGLE,w=Math.PI*_/180,k=1/Math.sin(w),T=Math.cos(w),M=Math.sin(w),A=m.HOVERARROWSIZE,S=m.HOVERTEXTPAD,L={box:!0,ohlc:!0,violin:!0,candlestick:!0},O={scatter:!0,scattergl:!0,splom:!0};function C(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}t.hover=function(e,t,r,i){e=o.getGraphDiv(e);var l=t.target;o.throttle(e._fullLayout._uid+m.HOVERID,m.HOVERMINTIME,function(){!function(e,t,r,i,l){r||(r="xy");var s=Array.isArray(r)?r:[r],u=e._fullLayout,d=u._plots||[],y=d[r],m=u._has("cartesian");if(y){var x=y.overlays.map(function(e){return e.id});s=s.concat(x)}for(var b=s.length,_=new Array(b),w=new Array(b),T=!1,M=0;M<b;M++){var S=s[M];if(d[S])T=!0,_[M]=d[S].xaxis,w[M]=d[S].yaxis;else{if(!u[S]||!u[S]._subplot)return void o.warn("Unrecognized subplot: "+S);var D=u[S]._subplot;_[M]=D.xaxis,w[M]=D.yaxis}}var E=t.hovermode||u.hovermode;E&&!T&&(E="closest");if(-1===["x","y","closest","x unified","y unified"].indexOf(E)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return p.unhoverRaw(e,t);var j=u.hoverdistance;-1===j&&(j=1/0);var q=u.spikedistance;-1===q&&(q=1/0);var Y,V,G,Z,W,J,X,K,$,Q,ee,te,re,ne=[],ae=[],ie={hLinePoint:null,vLinePoint:null},oe=!1;if(Array.isArray(t))for(E="array",G=0;G<t.length;G++)(W=e.calcdata[t[G].curveNumber||0])&&(J=W[0].trace,"skip"!==W[0].trace.hoverinfo&&(ae.push(W),"h"===J.orientation&&(oe=!0)));else{for(Z=0;Z<e.calcdata.length;Z++)W=e.calcdata[Z],"skip"!==(J=W[0].trace).hoverinfo&&g.isTraceInSubplots(J,s)&&(ae.push(W),"h"===J.orientation&&(oe=!0));var le,se,ce=!l;if(ce)le="xpx"in t?t.xpx:_[0]._length/2,se="ypx"in t?t.ypx:w[0]._length/2;else{if(!1===c.triggerHandler(e,"plotly_beforehover",t))return;var ue=l.getBoundingClientRect();le=t.clientX-ue.left,se=t.clientY-ue.top,u._calcInverseTransform(e);var fe=o.apply3DTransform(u._invTransform)(le,se);if(le=fe[0],se=fe[1],le<0||le>_[0]._length||se<0||se>w[0]._length)return p.unhoverRaw(e,t)}if(t.pointerX=le+_[0]._offset,t.pointerY=se+w[0]._offset,Y="xval"in t?g.flat(s,t.xval):g.p2c(_,le),V="yval"in t?g.flat(s,t.yval):g.p2c(w,se),!a(Y[0])||!a(V[0]))return o.warn("Fx.hover failed",t,e),p.unhoverRaw(e,t)}var de=1/0;function he(e,r){for(Z=0;Z<ae.length;Z++)if((W=ae[Z])&&W[0]&&W[0].trace&&!0===(J=W[0].trace).visible&&0!==J._length&&-1===["carpet","contourcarpet"].indexOf(J._module.name)){if("splom"===J.type?X=s[K=0]:(X=g.getSubplot(J),K=s.indexOf(X)),$=E,g.isUnifiedHover($)&&($=$.charAt(0)),te={cd:W,trace:J,xa:_[K],ya:w[K],maxHoverDistance:j,maxSpikeDistance:q,index:!1,distance:Math.min(de,j),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:h.defaultLine,name:J.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},u[X]&&(te.subplot=u[X]._subplot),u._splomScenes&&u._splomScenes[J.uid]&&(te.scene=u._splomScenes[J.uid]),re=ne.length,"array"===$){var n=t[Z];"pointNumber"in n?(te.index=n.pointNumber,$="closest"):($="","xval"in n&&(Q=n.xval,$="x"),"yval"in n&&(ee=n.yval,$=$?"closest":"y"))}else void 0!==e&&void 0!==r?(Q=e,ee=r):(Q=Y[K],ee=V[K]);if(0!==j)if(J._module&&J._module.hoverPoints){var i=J._module.hoverPoints(te,Q,ee,$,{finiteRange:!0,hoverLayer:u._hoverlayer});if(i)for(var l,c=0;c<i.length;c++)l=i[c],a(l.x0)&&a(l.y0)&&ne.push(z(l,E))}else o.log("Unrecognized trace type in hover:",J);if("closest"===E&&ne.length>re&&(ne.splice(0,re),de=ne[0].distance),m&&0!==q&&0===ne.length){te.distance=q,te.index=!1;var f=J._module.hoverPoints(te,Q,ee,"closest",{hoverLayer:u._hoverlayer});if(f&&(f=f.filter(function(e){return e.spikeDistance<=q})),f&&f.length){var d,p=f.filter(function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap});if(p.length){var y=p[0];a(y.x0)&&a(y.y0)&&(d=ye(y),(!ie.vLinePoint||ie.vLinePoint.spikeDistance>d.spikeDistance)&&(ie.vLinePoint=d))}var v=f.filter(function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap});if(v.length){var x=v[0];a(x.x0)&&a(x.y0)&&(d=ye(x),(!ie.hLinePoint||ie.hLinePoint.spikeDistance>d.spikeDistance)&&(ie.hLinePoint=d))}}}}}function pe(e,t,r){for(var n,a=null,i=1/0,o=0;o<e.length;o++)n=e[o].spikeDistance,r&&0===o&&(n=-1/0),n<=i&&n<=t&&(a=e[o],i=n);return a}function ye(e){return e?{xa:e.xa,ya:e.ya,x:void 0!==e.xSpike?e.xSpike:(e.x0+e.x1)/2,y:void 0!==e.ySpike?e.ySpike:(e.y0+e.y1)/2,distance:e.distance,spikeDistance:e.spikeDistance,curveNumber:e.trace.index,color:e.color,pointNumber:e.index}:null}he();var ve={fullLayout:u,container:u._hoverlayer,event:t},ge=e._spikepoints,me={vLinePoint:ie.vLinePoint,hLinePoint:ie.hLinePoint};e._spikepoints=me;var xe=function(){ne.sort(function(e,t){return e.distance-t.distance}),ne=function(e,t){for(var r=t.charAt(0),n=[],a=[],i=[],o=0;o<e.length;o++){var l=e[o];v.traceIs(l.trace,"bar-like")||v.traceIs(l.trace,"box-violin")?i.push(l):l.trace[r+"period"]?a.push(l):n.push(l)}return n.concat(a).concat(i)}(ne,E)};xe();var be=E.charAt(0),_e=("x"===be||"y"===be)&&ne[0]&&O[ne[0].trace.type];if(m&&0!==q&&0!==ne.length){var we=ne.filter(function(e){return e.ya.showspikes}),ke=pe(we,q,_e);ie.hLinePoint=ye(ke);var Te=ne.filter(function(e){return e.xa.showspikes}),Me=pe(Te,q,_e);ie.vLinePoint=ye(Me)}if(0===ne.length){var Ae=p.unhoverRaw(e,t);return!m||null===ie.hLinePoint&&null===ie.vLinePoint||F(ge)&&N(e,ie,ve),Ae}m&&F(ge)&&N(e,ie,ve);if(g.isXYhover($)&&0!==ne[0].length&&"splom"!==ne[0].trace.type){var Se=ne[0],Le=(ne=L[Se.trace.type]?ne.filter(function(e){return e.trace.index===Se.trace.index}):[Se]).length,Oe=B("x",Se,u),Ce=B("y",Se,u);he(Oe,Ce);var De,Pe=[],Ee={},Re=0,Ie=function(e){var t=L[e.trace.type]?C(e):e.trace.index;if(Ee[t]){var r=Ee[t]-1,n=Pe[r];r>0&&Math.abs(e.distance)<Math.abs(n.distance)&&(Pe[r]=e)}else Re++,Ee[t]=Re,Pe.push(e)};for(De=0;De<Le;De++)Ie(ne[De]);for(De=ne.length-1;De>Le-1;De--)Ie(ne[De]);ne=Pe,xe()}var ze=e._hoverdata,Ne=[],Fe=H(e),je=U(e);for(G=0;G<ne.length;G++){var Be=ne[G],He=g.makeEventData(Be,Be.trace,Be.cd);if(!1!==Be.hovertemplate){var Ue=!1;Be.cd[Be.index]&&Be.cd[Be.index].ht&&(Ue=Be.cd[Be.index].ht),Be.hovertemplate=Ue||Be.trace.hovertemplate||!1}if(Be.xa&&Be.ya){var qe=Be.x0+Be.xa._offset,Ye=Be.x1+Be.xa._offset,Ve=Be.y0+Be.ya._offset,Ge=Be.y1+Be.ya._offset,Ze=Math.min(qe,Ye),We=Math.max(qe,Ye),Je=Math.min(Ve,Ge),Xe=Math.max(Ve,Ge);He.bbox={x0:Ze+je,x1:We+je,y0:Je+Fe,y1:Xe+Fe}}Be.eventData=[He],Ne.push(He)}e._hoverdata=Ne;var Ke="y"===E&&(ae.length>1||ne.length>1)||"closest"===E&&oe&&ne.length>1,$e=h.combine(u.plot_bgcolor||h.background,u.paper_bgcolor),Qe=P(ne,{gd:e,hovermode:E,rotateLabels:Ke,bgColor:$e,container:u._hoverlayer,outerContainer:u._paper.node(),commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance}),et=Qe.hoverLabels;g.isUnifiedHover(E)||(!function(e,t,r,n){var a,i,o,l,s,c,u,f=t?"xa":"ya",d=t?"ya":"xa",h=0,p=1,y=e.size(),v=new Array(y),g=0,m=n.minX,x=n.maxX,b=n.minY,_=n.maxY,w=function(e){return e*r._invScaleX},T=function(e){return e*r._invScaleY};function M(e){var t=e[0],r=e[e.length-1];if(i=t.pmin-t.pos-t.dp+t.size,o=r.pos+r.dp+r.size-t.pmax,i>.01){for(s=e.length-1;s>=0;s--)e[s].dp+=i;a=!1}if(!(o<.01)){if(i<-.01){for(s=e.length-1;s>=0;s--)e[s].dp-=o;a=!1}if(a){var n=0;for(l=0;l<e.length;l++)(c=e[l]).pos+c.dp+c.size>t.pmax&&n++;for(l=e.length-1;l>=0&&!(n<=0);l--)(c=e[l]).pos>t.pmax-1&&(c.del=!0,n--);for(l=0;l<e.length&&!(n<=0);l++)if((c=e[l]).pos<t.pmin+1)for(c.del=!0,n--,o=2*c.size,s=e.length-1;s>=0;s--)e[s].dp-=o;for(l=e.length-1;l>=0&&!(n<=0);l--)(c=e[l]).pos+c.dp+c.size>t.pmax&&(c.del=!0,n--)}}}e.each(function(e){var n=e[f],a=e[d],i="x"===n._id.charAt(0),o=n.range;0===g&&o&&o[0]>o[1]!==i&&(p=-1);var l=0,s=i?r.width:r.height;if("x"===r.hovermode||"y"===r.hovermode){var c,u,h=R(e,t),y=e.anchor,M="end"===y?-1:1;if("middle"===y)c=e.crossPos+(i?T(h.y-e.by/2):w(e.bx/2+e.tx2width/2)),u=c+(i?T(e.by):w(e.bx));else if(i)c=e.crossPos+T(A+h.y)-T(e.by/2-A),u=c+T(e.by);else{var S=w(M*A+h.x),L=S+w(M*e.bx);c=e.crossPos+Math.min(S,L),u=e.crossPos+Math.max(S,L)}i?void 0!==b&&void 0!==_&&Math.min(u,_)-Math.max(c,b)>1&&("left"===a.side?(l=a._mainLinePosition,s=r.width):s=a._mainLinePosition):void 0!==m&&void 0!==x&&Math.min(u,x)-Math.max(c,m)>1&&("top"===a.side?(l=a._mainLinePosition,s=r.height):s=a._mainLinePosition)}v[g++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(i?k:1)/2,pmin:l,pmax:s}]}),v.sort(function(e,t){return e[0].posref-t[0].posref||p*(t[0].traceIndex-e[0].traceIndex)});for(;!a&&h<=y;){for(h++,a=!0,l=0;l<v.length-1;){var S=v[l],L=v[l+1],O=S[S.length-1],C=L[0];if((i=O.pos+O.dp+O.size-C.pos-C.dp+C.size)>.01&&O.pmin===C.pmin&&O.pmax===C.pmax){for(s=L.length-1;s>=0;s--)L[s].dp+=i;for(S.push.apply(S,L),v.splice(l+1,1),u=0,s=S.length-1;s>=0;s--)u+=S[s].dp;for(o=u/S.length,s=S.length-1;s>=0;s--)S[s].dp-=o;a=!1}else l++}v.forEach(M)}for(l=v.length-1;l>=0;l--){var D=v[l];for(s=D.length-1;s>=0;s--){var P=D[s],E=P.datum;E.offset=P.dp,E.del=P.del}}}(et,Ke,u,Qe.commonLabelBoundingBox),I(et,Ke,u._invScaleX,u._invScaleY));if(l&&l.tagName){var tt=v.getComponentMethod("annotations","hasClickToShow")(e,Ne);f(n.select(l),tt?"pointer":"")}if(!l||i||!function(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var a=r[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,ze))return;ze&&e.emit("plotly_unhover",{event:t,points:ze});e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:_,yaxes:w,xvals:Y,yvals:V})}(e,t,r,i,l)})},t.loneHover=function(e,t){var r=!0;Array.isArray(e)||(r=!1,e=[e]);var a=t.gd,i=H(a),o=U(a),l=P(e.map(function(e){var r=e._x0||e.x0||e.x||0,n=e._x1||e.x1||e.x||0,l=e._y0||e.y0||e.y||0,s=e._y1||e.y1||e.y||0,c=e.eventData;if(c){var u=Math.min(r,n),f=Math.max(r,n),d=Math.min(l,s),p=Math.max(l,s),y=e.trace;if(v.traceIs(y,"gl3d")){var g=a._fullLayout[y.scene]._scene.container,m=g.offsetLeft,x=g.offsetTop;u+=m,f+=m,d+=x,p+=x}c.bbox={x0:u+o,x1:f+o,y0:d+i,y1:p+i},t.inOut_bbox&&t.inOut_bbox.push(c.bbox)}else c=!1;return{color:e.color||h.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,hovertemplateLabels:e.hovertemplateLabels||!1,eventData:c}}),{gd:a,hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||h.background,container:n.select(t.container),outerContainer:t.outerContainer||t.container}).hoverLabels,s=0,c=0;return l.sort(function(e,t){return e.y0-t.y0}).each(function(e,r){var n=e.y0-e.by/2;e.offset=n-5<s?s-n+5:0,s=n+e.by+e.offset,r===t.anchorIndex&&(c=e.offset)}).each(function(e){e.offset-=c}),I(l,!1,a._fullLayout._invScaleX,a._fullLayout._invScaleY),r?l:l.node()};var D=/<extra>([\s\S]*)<\/extra>/;function P(e,t){var r=t.gd,a=r._fullLayout,i=t.hovermode,c=t.rotateLabels,f=t.bgColor,p=t.container,y=t.outerContainer,w=t.commonLabelOpts||{};if(0===e.length)return[[]];var k=t.fontFamily||m.HOVERFONT,T=t.fontSize||m.HOVERFONTSIZE,M=e[0],L=M.xa,O=M.ya,D=i.charAt(0),P=D+"Label",R=M[P];if(void 0===R&&"multicategory"===L.type)for(var I=0;I<e.length&&void 0===(R=e[I][P]);I++);var z=q(r,y),N=z.top,F=z.width,j=z.height,B=void 0!==R&&M.distance<=t.hoverdistance&&("x"===i||"y"===i);if(B){var H,U,Y=!0;for(H=0;H<e.length;H++)if(Y&&void 0===e[H].zLabel&&(Y=!1),U=e[H].hoverinfo||e[H].trace.hoverinfo){var V=Array.isArray(U)?U:U.split("+");if(-1===V.indexOf("all")&&-1===V.indexOf(i)){B=!1;break}}Y&&(B=!1)}var G=p.selectAll("g.axistext").data(B?[0]:[]);G.enter().append("g").classed("axistext",!0),G.exit().remove();var Z={minX:0,maxX:0,minY:0,maxY:0};if(G.each(function(){var e=n.select(this),t=o.ensureSingle(e,"path","",function(e){e.style({"stroke-width":"1px"})}),s=o.ensureSingle(e,"text","",function(e){e.attr("data-notex",1)}),c=w.bgcolor||h.defaultLine,f=w.bordercolor||h.contrast(c),p=h.contrast(c),y={family:w.font.family||k,size:w.font.size||T,color:w.font.color||p};t.style({fill:c,stroke:f}),s.text(R).call(d.font,y).call(u.positionText,0,0).call(u.convertToTspans,r),e.attr("transform","");var v,g,m=q(r,s.node());if("x"===i){var x="top"===L.side?"-":"";s.attr("text-anchor","middle").call(u.positionText,0,"top"===L.side?N-m.bottom-A-S:N-m.top+A+S),v=L._offset+(M.x0+M.x1)/2,g=O._offset+("top"===L.side?0:O._length);var b=m.width/2+S,_=v;v<b?_=b:v>a.width-b&&(_=a.width-b),t.attr("d","M"+(v-_)+",0L"+(v-_+A)+","+x+A+"H"+b+"v"+x+(2*S+m.height)+"H"+-b+"V"+x+A+"H"+(v-_-A)+"Z"),v=_,Z.minX=v-b,Z.maxX=v+b,"top"===L.side?(Z.minY=g-(2*S+m.height),Z.maxY=g-S):(Z.minY=g+S,Z.maxY=g+(2*S+m.height))}else{var C,D,P;"right"===O.side?(C="start",D=1,P="",v=L._offset+L._length):(C="end",D=-1,P="-",v=L._offset),g=O._offset+(M.y0+M.y1)/2,s.attr("text-anchor",C),t.attr("d","M0,0L"+P+A+","+A+"V"+(S+m.height/2)+"h"+P+(2*S+m.width)+"V-"+(S+m.height/2)+"H"+P+A+"V-"+A+"Z"),Z.minY=g-(S+m.height/2),Z.maxY=g+(S+m.height/2),"right"===O.side?(Z.minX=v+A,Z.maxX=v+A+(2*S+m.width)):(Z.minX=v-A-(2*S+m.width),Z.maxX=v-A);var E,I=m.height/2,z=N-m.top-I,F="clip"+a._uid+"commonlabel"+O._id;if(v<m.width+2*S+A){E="M-"+(A+S)+"-"+I+"h-"+(m.width-S)+"V"+I+"h"+(m.width-S)+"Z";var j=m.width-v+S;u.positionText(s,j,z),"end"===C&&s.selectAll("tspan").each(function(){var e=n.select(this),t=d.tester.append("text").text(e.text()).call(d.font,y),a=q(r,t.node());Math.round(a.width)<Math.round(m.width)&&e.attr("x",j-a.width),t.remove()})}else u.positionText(s,D*(S+A),z),E=null;var B=a._topclips.selectAll("#"+F).data(E?[0]:[]);B.enter().append("clipPath").attr("id",F).append("path"),B.exit().remove(),B.select("path").attr("d",E),d.setClipUrl(s,E?F:null,r)}e.attr("transform",l(v,g))}),g.isUnifiedHover(i)){p.selectAll("g.hovertext").remove();var W=e.filter(function(e){return"none"!==e.hoverinfo});if(0===W.length)return[];var J=a.hoverlabel,X=J.font,K={showlegend:!0,legend:{title:{text:R,font:X},font:X,bgcolor:J.bgcolor,bordercolor:J.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},$={font:X};x(K,$,r._fullData);var Q=$.legend;Q.entries=[];for(var ee=0;ee<W.length;ee++){var te=W[ee];if("none"!==te.hoverinfo){var re=E(te,!0,i,a,R),ne=re[0],ae=re[1];te.name=ae,te.text=""!==ae?ae+" : "+ne:ne;var ie=te.cd[te.index];ie&&(ie.mc&&(te.mc=ie.mc),ie.mcc&&(te.mc=ie.mcc),ie.mlc&&(te.mlc=ie.mlc),ie.mlcc&&(te.mlc=ie.mlcc),ie.mlw&&(te.mlw=ie.mlw),ie.mrc&&(te.mrc=ie.mrc),ie.dir&&(te.dir=ie.dir)),te._distinct=!0,Q.entries.push([te])}}Q.entries.sort(function(e,t){return e[0].trace.index-t[0].trace.index}),Q.layer=p,Q._inHover=!0,Q._groupTitleFont=J.grouptitlefont,b(r,Q);var oe,le,se,ce,ue=p.select("g.legend"),fe=q(r,ue.node()),de=fe.width+2*S,he=fe.height+2*S,pe=W[0],ye=(pe.x0+pe.x1)/2,ve=(pe.y0+pe.y1)/2,ge=!(v.traceIs(pe.trace,"bar-like")||v.traceIs(pe.trace,"box-violin"));"y"===D?ge?(le=ve-S,oe=ve+S):(le=Math.min.apply(null,W.map(function(e){return Math.min(e.y0,e.y1)})),oe=Math.max.apply(null,W.map(function(e){return Math.max(e.y0,e.y1)}))):le=oe=o.mean(W.map(function(e){return(e.y0+e.y1)/2}))-he/2,"x"===D?ge?(se=ye+S,ce=ye-S):(se=Math.max.apply(null,W.map(function(e){return Math.max(e.x0,e.x1)})),ce=Math.min.apply(null,W.map(function(e){return Math.min(e.x0,e.x1)}))):se=ce=o.mean(W.map(function(e){return(e.x0+e.x1)/2}))-de/2;var me,xe,be=L._offset,_e=O._offset;return ce+=be-de,le+=_e-he,me=(se+=be)+de<F&&se>=0?se:ce+de<F&&ce>=0?ce:be+de<F?be:se-ye<ye-ce+de?F-de:0,me+=S,xe=(oe+=_e)+he<j&&oe>=0?oe:le+he<j&&le>=0?le:_e+he<j?_e:oe-ve<ve-le+he?j-he:0,xe+=S,ue.attr("transform",l(me-1,xe-1)),ue}var we=p.selectAll("g.hovertext").data(e,function(e){return C(e)});return we.enter().append("g").classed("hovertext",!0).each(function(){var e=n.select(this);e.append("rect").call(h.fill,h.addOpacity(f,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(d.font,k,T)}),we.exit().remove(),we.each(function(e){var t=n.select(this).attr("transform",""),o=e.color;Array.isArray(o)&&(o=o[e.eventData[0].pointNumber]);var p=e.bgcolor||o,y=h.combine(h.opacity(p)?p:h.defaultLine,f),v=h.combine(h.opacity(o)?o:h.defaultLine,f),g=e.borderColor||h.contrast(y),m=E(e,B,i,a,R,t),x=m[0],b=m[1],w=t.select("text.nums").call(d.font,e.fontFamily||k,e.fontSize||T,e.fontColor||g).text(x).attr("data-notex",1).call(u.positionText,0,0).call(u.convertToTspans,r),M=t.select("text.name"),L=0,O=0;if(b&&b!==x){M.call(d.font,e.fontFamily||k,e.fontSize||T,v).text(b).attr("data-notex",1).call(u.positionText,0,0).call(u.convertToTspans,r);var C=q(r,M.node());L=C.width+2*S,O=C.height+2*S}else M.remove(),t.select("rect").remove();t.select("path").style({fill:y,stroke:g});var D=e.xa._offset+(e.x0+e.x1)/2,P=e.ya._offset+(e.y0+e.y1)/2,I=Math.abs(e.x1-e.x0),z=Math.abs(e.y1-e.y0),H=q(r,w.node()),U=H.width/a._invScaleX,Y=H.height/a._invScaleY;e.ty0=(N-H.top)/a._invScaleY,e.bx=U+2*S,e.by=Math.max(Y+2*S,O),e.anchor="start",e.txwidth=U,e.tx2width=L,e.offset=0;var V,G,Z=(U+A+S+L)*a._invScaleX;if(c)e.pos=D,V=P+z/2+Z<=j,G=P-z/2-Z>=0,"top"!==e.idealAlign&&V||!G?V?(P+=z/2,e.anchor="start"):e.anchor="middle":(P-=z/2,e.anchor="end"),e.crossPos=P;else{if(e.pos=P,V=D+I/2+Z<=F,G=D-I/2-Z>=0,"left"!==e.idealAlign&&V||!G)if(V)D+=I/2,e.anchor="start";else{e.anchor="middle";var W=Z/2,J=D+W-F,X=D-W;J>0&&(D-=J),X<0&&(D+=-X)}else D-=I/2,e.anchor="end";e.crossPos=D}w.attr("text-anchor",e.anchor),L&&M.attr("text-anchor",e.anchor),t.attr("transform",l(D,P)+(c?s(_):""))}),{hoverLabels:we,commonLabelBoundingBox:Z}}function E(e,t,r,n,a,i){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=o.templateString(e.name,e.trace._meta)),l=j(e.name,e.nameLength));var c=r.charAt(0),u="x"===c?"y":"x";void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"<br>"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"<br>"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[c+"Label"]===a?s=e[u+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(s=e.yLabel):s=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(s+=(s?"<br>":"")+e.text),void 0!==e.extraText&&(s+=(s?"<br>":"")+e.extraText),i&&""===s&&!e.hovertemplate&&(""===l&&i.remove(),s=l);var f=e.hovertemplate||!1;if(f){var d=e.hovertemplateLabels||e;e[c+"Label"]!==a&&(d[c+"other"]=d[c+"Val"],d[c+"otherLabel"]=d[c+"Label"]),s=(s=o.hovertemplateString(f,d,n._d3locale,e.eventData[0]||{},e.trace._meta)).replace(D,function(t,r){return l=j(r,e.nameLength),""})}return[s,l]}function R(e,t){var r=0,n=e.offset;return t&&(n*=-M,r=e.offset*T),{x:r,y:n}}function I(e,t,r,a){var i=function(e){return e*r},o=function(e){return e*a};e.each(function(e){var r=n.select(this);if(e.del)return r.remove();var a,l,s,c,f=r.select("text.nums"),h=e.anchor,p="end"===h?-1:1,y=(l={start:1,end:-1,middle:0}[(a=e).anchor],c=(s=l*(A+S))+l*(a.txwidth+S),"middle"===a.anchor&&(s-=a.tx2width/2,c+=a.txwidth/2+S),{alignShift:l,textShiftX:s,text2ShiftX:c}),v=R(e,t),g=v.x,m=v.y,x="middle"===h;r.select("path").attr("d",x?"M-"+i(e.bx/2+e.tx2width/2)+","+o(m-e.by/2)+"h"+i(e.bx)+"v"+o(e.by)+"h-"+i(e.bx)+"Z":"M0,0L"+i(p*A+g)+","+o(A+m)+"v"+o(e.by/2-A)+"h"+i(p*e.bx)+"v-"+o(e.by)+"H"+i(p*A+g)+"V"+o(m-A)+"Z");var b=g+y.textShiftX,_=m+e.ty0-e.by/2+S,w=e.textAlign||"auto";"auto"!==w&&("left"===w&&"start"!==h?(f.attr("text-anchor","start"),b=x?-e.bx/2-e.tx2width/2+S:-e.bx-S):"right"===w&&"end"!==h&&(f.attr("text-anchor","end"),b=x?e.bx/2-e.tx2width/2-S:e.bx+S)),f.call(u.positionText,i(b),o(_)),e.tx2width&&(r.select("text.name").call(u.positionText,i(y.text2ShiftX+y.alignShift*S+g),o(m+e.ty0-e.by/2+S)),r.select("rect").call(d.setRect,i(y.text2ShiftX+(y.alignShift-1)*e.tx2width/2+g),o(m-e.by/2-1),i(e.tx2width),o(e.by+2)))})}function z(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],l=e.cd[r]||{};function s(e){return e||a(e)&&0===e}var c=Array.isArray(r)?function(e,t){var a=o.castOption(i,r,e);return s(a)?a:o.extractOption({},n,"",t)}:function(e,t){return o.extractOption(l,n,e,t)};function u(t,r,n){var a=c(r,n);s(a)&&(e[t]=a)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===n.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=o.constrain(e.x0,0,e.xa._length),e.x1=o.constrain(e.x1,0,e.xa._length),e.y0=o.constrain(e.y0,0,e.ya._length),e.y1=o.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:y.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:y.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var f=y.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+f+" / -"+y.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+f,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var d=y.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+y.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+d,"y"===t&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&"all"!==h&&(-1===(h=Array.isArray(h)?h:h.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===h.indexOf("y")&&(e.yLabel=void 0),-1===h.indexOf("z")&&(e.zLabel=void 0),-1===h.indexOf("text")&&(e.text=void 0),-1===h.indexOf("name")&&(e.name=void 0)),e}function N(e,t,r){var n,a,o=r.container,l=r.fullLayout,s=l._size,c=r.event,u=!!t.hLinePoint,f=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),f||u){var p=h.combine(l.plot_bgcolor,l.paper_bgcolor);if(u){var v,g,m=t.hLinePoint;n=m&&m.xa,"cursor"===(a=m&&m.ya).spikesnap?(v=c.pointerX,g=c.pointerY):(v=n._offset+m.x,g=a._offset+m.y);var x,b,_=i.readability(m.color,p)<1.5?h.contrast(p):m.color,w=a.spikemode,k=a.spikethickness,T=a.spikecolor||_,M=y.getPxPosition(e,a);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=M,b=v),-1!==w.indexOf("across")){var A=a._counterDomainMin,S=a._counterDomainMax;"free"===a.anchor&&(A=Math.min(A,a.position),S=Math.max(S,a.position)),x=s.l+A*s.w,b=s.l+S*s.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:g,y2:g,"stroke-width":k,stroke:T,"stroke-dasharray":d.dashStyle(a.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:g,y2:g,"stroke-width":k+2,stroke:p}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:M+("right"!==a.side?k:-k),cy:g,r:k,fill:T}).classed("spikeline",!0)}if(f){var L,O,C=t.vLinePoint;n=C&&C.xa,a=C&&C.ya,"cursor"===n.spikesnap?(L=c.pointerX,O=c.pointerY):(L=n._offset+C.x,O=a._offset+C.y);var D,P,E=i.readability(C.color,p)<1.5?h.contrast(p):C.color,R=n.spikemode,I=n.spikethickness,z=n.spikecolor||E,N=y.getPxPosition(e,n);if(-1!==R.indexOf("toaxis")||-1!==R.indexOf("across")){if(-1!==R.indexOf("toaxis")&&(D=N,P=O),-1!==R.indexOf("across")){var F=n._counterDomainMin,j=n._counterDomainMax;"free"===n.anchor&&(F=Math.min(F,n.position),j=Math.max(j,n.position)),D=s.t+(1-j)*s.h,P=s.t+(1-F)*s.h}o.insert("line",":first-child").attr({x1:L,x2:L,y1:D,y2:P,"stroke-width":I,stroke:z,"stroke-dasharray":d.dashStyle(n.spikedash,I)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:L,x2:L,y1:D,y2:P,"stroke-width":I+2,stroke:p}).classed("spikeline",!0).classed("crisp",!0)}-1!==R.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:L,cy:N-("top"!==n.side?I:-I),r:I,fill:z}).classed("spikeline",!0)}}}function F(e,t){return!t||(t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint)}function j(e,t){return u.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function B(e,t,r){var n=t[e+"a"],a=t[e+"Val"],i=t.cd[0];if("category"===n.type||"multicategory"===n.type)a=n._categoriesMap[a];else if("date"===n.type){var o=t.trace[e+"periodalignment"];if(o){var l=t.cd[t.index],s=l[e+"Start"];void 0===s&&(s=l[e]);var c=l[e+"End"];void 0===c&&(c=l[e]);var u=c-s;"end"===o?a+=u:"middle"===o&&(a+=u/2)}a=n.d2c(a)}return i&&i.t&&i.t.posLetter===n._id&&("group"!==r.boxmode&&"group"!==r.violinmode||(a+=i.t.dPos)),a}function H(e){return e.offsetTop+e.clientTop}function U(e){return e.offsetLeft+e.clientLeft}function q(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),a=n.left,i=n.top,l=a+n.width,s=i+n.height,c=o.apply3DTransform(r._invTransform)(a,i),u=o.apply3DTransform(r._invTransform)(l,s),f=c[0],d=c[1],h=u[0],p=u[1];return{x:f,y:d,width:h-f,height:p-d,top:Math.min(d,p),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(d,p)}}},16132:function(e,t,r){"use strict";var n=r(3400),a=r(76308),i=r(10624).isUnifiedHover;e.exports=function(e,t,r,o){o=o||{};var l=t.legend;function s(e){o.font[e]||(o.font[e]=l?t.legend.font[e]:t.font[e])}t&&i(t.hovermode)&&(o.font||(o.font={}),s("size"),s("family"),s("color"),l?(o.bgcolor||(o.bgcolor=a.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),n.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}},41008:function(e,t,r){"use strict";var n=r(3400),a=r(65460);e.exports=function(e,t){function r(r,i){return void 0!==t[r]?t[r]:n.coerce(e,t,a,r,i)}return r("clickmode"),r("hovermode")}},93024:function(e,t,r){"use strict";var n=r(33428),a=r(3400),i=r(86476),o=r(10624),l=r(65460),s=r(83292);e.exports={moduleType:"component",name:"fx",constants:r(92456),schema:{layout:l},attributes:r(55756),layoutAttributes:l,supplyLayoutGlobalDefaults:r(81976),supplyDefaults:r(95448),supplyLayoutDefaults:r(88336),calc:r(55056),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(e,t,r){return a.castOption(e,t,"hoverlabel."+r)},castHoverinfo:function(e,t,r){return a.castOption(e,r,"hoverinfo",function(r){return a.coerceHoverinfo({hoverinfo:r},{_module:e._module},t)})},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(e){var t=a.isD3Selection(e)?e:n.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:r(62376)}},65460:function(e,t,r){"use strict";var n=r(92456),a=r(25376),i=a({editType:"none"});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:a({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},88336:function(e,t,r){"use strict";var n=r(3400),a=r(65460),i=r(41008),o=r(16132);e.exports=function(e,t){function r(r,i){return n.coerce(e,t,a,r,i)}i(e,t)&&(r("hoverdistance"),r("spikedistance")),"select"===r("dragmode")&&r("selectdirection");var l=t._has("mapbox"),s=t._has("geo"),c=t._basePlotModules.length;"zoom"===t.dragmode&&((l||s)&&1===c||l&&s&&2===c)&&(t.dragmode="pan"),o(e,t,r),n.coerceFont(r,"hoverlabel.grouptitlefont",t.hoverlabel.font)}},81976:function(e,t,r){"use strict";var n=r(3400),a=r(16132),i=r(65460);e.exports=function(e,t){a(e,t,function(r,a){return n.coerce(e,t,i,r,a)})}},12704:function(e,t,r){"use strict";var n=r(3400),a=r(53756).counter,i=r(86968).u,o=r(33816).idRegex,l=r(31780),s={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:[a("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.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:i({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 c(e,t,r){var n=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});return Array.isArray(n)?n:a.length?a:void 0}function u(e,t,r,n,a,i){var o=t(e+"gap",r),l=t("domain."+e);t(e+"side",n);for(var s=new Array(a),c=l[0],u=(l[1]-c)/(a-o),f=u*(1-o),d=0;d<a;d++){var h=c+u*d;s[i?a-1-d:d]=[h,h+f]}return s}function f(e,t,r,n,a){var i,o=new Array(r);function l(e,r){-1!==t.indexOf(r)&&void 0===n[r]?(o[e]=r,n[r]=e):o[e]=""}if(Array.isArray(e))for(i=0;i<r;i++)l(i,e[i]);else for(l(0,a),i=1;i<r;i++)l(i,a+(i+1));return o}e.exports={moduleType:"component",name:"grid",schema:{layout:{grid:s}},layoutAttributes:s,sizeDefaults:function(e,t){var r=e.grid||{},a=c(t,r,"x"),i=c(t,r,"y");if(e.grid||a||i){var o,f,d=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),h=Array.isArray(a),p=Array.isArray(i),y=h&&a!==r.xaxes&&p&&i!==r.yaxes;d?(o=r.subplots.length,f=r.subplots[0].length):(p&&(o=i.length),h&&(f=a.length));var v=l.newContainer(t,"grid"),g=T("rows",o),m=T("columns",f);if(g*m>1){d||h||p||"independent"===T("pattern")&&(d=!0),v._hasSubplotGrid=d;var x,b,_="top to bottom"===T("roworder"),w=d?.2:.1,k=d?.3:.1;y&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),v._domains={x:u("x",T,w,x,m),y:u("y",T,k,b,g,_)}}else delete t.grid}function T(e,t){return n.coerce(r,v,s,e,t)}},contentDefaults:function(e,t){var r=t.grid;if(r&&r._domains){var n,a,i,o,l,s,u,d=e.grid||{},h=t._subplots,p=r._hasSubplotGrid,y=r.rows,v=r.columns,g="independent"===r.pattern,m=r._axisMap={};if(p){var x=d.subplots||[];s=r.subplots=new Array(y);var b=1;for(n=0;n<y;n++){var _=s[n]=new Array(v),w=x[n]||[];for(a=0;a<v;a++)if(g?(l=1===b?"xy":"x"+b+"y"+b,b++):l=w[a],_[a]="",-1!==h.cartesian.indexOf(l)){if(u=l.indexOf("y"),i=l.slice(0,u),o=l.slice(u),void 0!==m[i]&&m[i]!==a||void 0!==m[o]&&m[o]!==n)continue;_[a]=l,m[i]=a,m[o]=n}}}else{var k=c(t,d,"x"),T=c(t,d,"y");r.xaxes=f(k,h.xaxis,v,m,"x"),r.yaxes=f(T,h.yaxis,y,m,"y")}var M=r._anchors={},A="top to bottom"===r.roworder;for(var S in m){var L,O,C,D=S.charAt(0),P=r[D+"side"];if(P.length<8)M[S]="free";else if("x"===D){if("t"===P.charAt(0)===A?(L=0,O=1,C=y):(L=y-1,O=-1,C=-1),p){var E=m[S];for(n=L;n!==C;n+=O)if((l=s[n][E])&&(u=l.indexOf("y"),l.slice(0,u)===S)){M[S]=l.slice(u);break}}else for(n=L;n!==C;n+=O)if(o=r.yaxes[n],-1!==h.cartesian.indexOf(S+o)){M[S]=o;break}}else if("l"===P.charAt(0)?(L=0,O=1,C=v):(L=v-1,O=-1,C=-1),p){var R=m[S];for(n=L;n!==C;n+=O)if((l=s[R][n])&&(u=l.indexOf("y"),l.slice(u)===S)){M[S]=l.slice(0,u);break}}else for(n=L;n!==C;n+=O)if(i=r.xaxes[n],-1!==h.cartesian.indexOf(i+S)){M[S]=i;break}}}}}},65760:function(e,t,r){"use strict";var n=r(33816),a=r(31780).templatedArray;r(36208);e.exports=a("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",n.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",n.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},63556:function(e,t,r){"use strict";var n=r(38248),a=r(36896);e.exports=function(e,t,r,i){t=t||{};var o="log"===r&&"linear"===t.type,l="linear"===r&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.images,f=t._id.charAt(0),d=0;d<u.length;d++)if(c="images["+d+"].",(s=u[d])[f+"ref"]===t._id){var h=s[f],p=s["size"+f],y=null,v=null;if(o){y=a(h,t.range);var g=p/Math.pow(10,y)/2;v=2*Math.log(g+Math.sqrt(1+g*g))/Math.LN10}else v=(y=Math.pow(10,h))*(Math.pow(10,p/2)-Math.pow(10,-p/2));n(y)?n(v)||(v=null):(y=null,v=null),i(c+f,y),i(c+"size"+f,v)}}},25024:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(51272),o=r(65760);function l(e,t,r){function i(r,a){return n.coerce(e,t,o,r,a)}var l=i("source");if(!i("visible",!!l))return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var s={_fullLayout:r},c=["x","y"],u=0;u<2;u++){var f=c[u],d=a.coerceRef(e,t,s,f,"paper",void 0);if("paper"!==d)a.getFromId(s,d)._imgIndices.push(t._index);a.coercePosition(t,s,i,d,f,0)}return t}e.exports=function(e,t){i(e,t,{name:"images",handleItemDefaults:l})}},60963:function(e,t,r){"use strict";var n=r(33428),a=r(43616),i=r(54460),o=r(79811),l=r(9616);e.exports=function(e){var t,r,s=e._fullLayout,c=[],u={},f=[];for(r=0;r<s.images.length;r++){var d=s.images[r];if(d.visible)if("below"===d.layer&&"paper"!==d.xref&&"paper"!==d.yref){t=o.ref2id(d.xref)+o.ref2id(d.yref);var h=s._plots[t];if(!h){f.push(d);continue}h.mainplot&&(t=h.mainplot.id),u[t]||(u[t]=[]),u[t].push(d)}else"above"===d.layer?c.push(d):f.push(d)}var p={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}}};function y(t){var r=n.select(this);if(this._imgSrc!==t.source)if(r.attr("xmlns",l.svg),t.source&&"data:"===t.source.slice(0,5))r.attr("xlink:href",t.source),this._imgSrc=t.source;else{var a=new Promise(function(e){var n=new Image;function a(){r.remove(),e()}this.img=n,n.setAttribute("crossOrigin","anonymous"),n.onerror=a,n.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var n=t.toDataURL("image/png");r.attr("xlink:href",n),e()},r.on("error",a),n.src=t.source,this._imgSrc=t.source}.bind(this));e._promises.push(a)}}function v(t){var r,o,l=n.select(this),c=i.getFromId(e,t.xref),u=i.getFromId(e,t.yref),f="domain"===i.getRefType(t.xref),d="domain"===i.getRefType(t.yref),h=s._size;r=void 0!==c?"string"==typeof t.xref&&f?c._length*t.sizex:Math.abs(c.l2p(t.sizex)-c.l2p(0)):t.sizex*h.w,o=void 0!==u?"string"==typeof t.yref&&d?u._length*t.sizey:Math.abs(u.l2p(t.sizey)-u.l2p(0)):t.sizey*h.h;var y,v,g=r*p.x[t.xanchor].offset,m=o*p.y[t.yanchor].offset,x=p.x[t.xanchor].sizing+p.y[t.yanchor].sizing;switch(y=void 0!==c?"string"==typeof t.xref&&f?c._length*t.x+c._offset:c.r2p(t.x)+c._offset:t.x*h.w+h.l,y+=g,v=void 0!==u?"string"==typeof t.yref&&d?u._length*(1-t.y)+u._offset:u.r2p(t.y)+u._offset:h.h-t.y*h.h+h.t,v+=m,t.sizing){case"fill":x+=" slice";break;case"stretch":x="none"}l.attr({x:y,y:v,width:r,height:o,preserveAspectRatio:x,opacity:t.opacity});var b=(c&&"domain"!==i.getRefType(t.xref)?c._id:"")+(u&&"domain"!==i.getRefType(t.yref)?u._id:"");a.setClipUrl(l,b?"clip"+s._uid+b:null,e)}var g=s._imageLowerLayer.selectAll("image").data(f),m=s._imageUpperLayer.selectAll("image").data(c);g.enter().append("image"),m.enter().append("image"),g.exit().remove(),m.exit().remove(),g.each(function(e){y.bind(this)(e),v.bind(this)(e)}),m.each(function(e){y.bind(this)(e),v.bind(this)(e)});var x=Object.keys(s._plots);for(r=0;r<x.length;r++){t=x[r];var b=s._plots[t];if(b.imagelayer){var _=b.imagelayer.selectAll("image").data(u[t]||[]);_.enter().append("image"),_.exit().remove(),_.each(function(e){y.bind(this)(e),v.bind(this)(e)})}}}},7402:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:r(65760),supplyLayoutDefaults:r(25024),includeBasePlot:r(36632)("images"),draw:r(60963),convertCoords:r(63556)}},3800:function(e,t,r){"use strict";var n=r(25376),a=r(22548);e.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:n({editType:"legend"}),grouptitlefont:n({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:n({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}},65196:function(e){"use strict";e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},77864:function(e,t,r){"use strict";var n=r(24040),a=r(3400),i=r(31780),o=r(45464),l=r(3800),s=r(64859),c=r(42451);function u(e,t,r,u){var f=t[e]||{},d=i.newContainer(r,e);function h(e,t){return a.coerce(f,d,l,e,t)}var p=a.coerceFont(h,"font",r.font);if(h("bgcolor",r.paper_bgcolor),h("bordercolor"),h("visible")){for(var y,v=function(e,t){var r=y._input,n=y;return a.coerce(r,n,o,e,t)},g=r.font||{},m=a.coerceFont(h,"grouptitlefont",a.extendFlat({},g,{size:Math.round(1.1*g.size)})),x=0,b=!1,_="normal",w=(r.shapes||[]).filter(function(e){return e.showlegend}),k=u.concat(w).filter(function(t){return e===(t.legend||"legend")}),T=0;T<k.length;T++)if((y=k[T]).visible){var M=y._isShape;(y.showlegend||y._dfltShowLegend&&!(y._module&&y._module.attributes&&y._module.attributes.showlegend&&!1===y._module.attributes.showlegend.dflt))&&(x++,y.showlegend&&(b=!0,(!M&&n.traceIs(y,"pie-like")||!0===y._input.showlegend)&&x++),a.coerceFont(v,"legendgrouptitle.font",m)),(!M&&n.traceIs(y,"bar")&&"stack"===r.barmode||-1!==["tonextx","tonexty"].indexOf(y.fill))&&(_=c.isGrouped({traceorder:_})?"grouped+reversed":"reversed"),void 0!==y.legendgroup&&""!==y.legendgroup&&(_=c.isReversed({traceorder:_})?"reversed+grouped":"grouped")}var A=a.coerce(t,r,s,"showlegend",b&&x>("legend"===e?1:0));if(!1===A&&(r[e]=void 0),(!1!==A||f.uirevision)&&(h("uirevision",r.uirevision),!1!==A)){h("borderwidth");var S,L,O,C="h"===h("orientation"),D="paper"===h("yref"),P="paper"===h("xref"),E="left";if(C?(S=0,n.getComponentMethod("rangeslider","isVisible")(t.xaxis)?D?(L=1.1,O="bottom"):(L=1,O="top"):D?(L=-.1,O="top"):(L=0,O="bottom")):(L=1,O="auto",P?S=1.02:(S=1,E="right")),a.coerce(f,d,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:S}},"x"),a.coerce(f,d,{y:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:L}},"y"),h("traceorder",_),c.isGrouped(r[e])&&h("tracegroupgap"),h("entrywidth"),h("entrywidthmode"),h("indentation"),h("itemsizing"),h("itemwidth"),h("itemclick"),h("itemdoubleclick"),h("groupclick"),h("xanchor",E),h("yanchor",O),h("valign"),a.noneOrAll(f,d,["x","y"]),h("title.text")){h("title.side",C?"left":"top");var R=a.extendFlat({},p,{size:a.bigFont(p.size)});a.coerceFont(h,"title.font",R)}}}}e.exports=function(e,t,r){var n,i=r.slice(),o=t.shapes;if(o)for(n=0;n<o.length;n++){var l=o[n];if(l.showlegend){var s={_input:l._input,visible:l.visible,showlegend:l.showlegend,legend:l.legend};i.push(s)}}var c=["legend"];for(n=0;n<i.length;n++)a.pushUnique(c,i[n].legend);for(t._legends=[],n=0;n<c.length;n++){var f=c[n];u(f,e,t,i),t[f]&&t[f].visible&&(t[f]._id=f),t._legends.push(f)}}},31140:function(e,t,r){"use strict";var n=r(33428),a=r(3400),i=r(7316),o=r(24040),l=r(95924),s=r(86476),c=r(43616),u=r(76308),f=r(72736),d=r(33048),h=r(65196),p=r(84284),y=p.LINE_SPACING,v=p.FROM_TL,g=p.FROM_BR,m=r(35456),x=r(2012),b=r(42451),_=1,w=/^legend[0-9]*$/;function k(e,t){var r,l,d=t||{},p=e._fullLayout,w=P(d),k=d._inHover;if(k?(l=d.layer,r="hover"):(l=p._infolayer,r=w),l){var S;if(r+=p._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0),k){if(!d.entries)return;S=m(d.entries,d)}else{for(var E=(e.calcdata||[]).slice(),R=p.shapes,I=0;I<R.length;I++){var z=R[I];if(z.showlegend){var N={_isShape:!0,_fullInput:z,index:z._index,name:z.name||z.label.text||"shape "+z._index,legend:z.legend,legendgroup:z.legendgroup,legendgrouptitle:z.legendgrouptitle,legendrank:z.legendrank,legendwidth:z.legendwidth,showlegend:z.showlegend,visible:z.visible,opacity:z.opacity,mode:"line"===z.type?"lines":"markers",line:z.line,marker:{line:z.line,color:z.fillcolor,size:12,symbol:"rect"===z.type?"square":"circle"===z.type?"circle":"hexagon2"}};E.push([{trace:N}])}}S=p.showlegend&&m(E,d,p._legends.length>1)}var F=p.hiddenlabels||[];if(!(k||p.showlegend&&S.length))return l.selectAll("."+w).remove(),p._topdefs.select("#"+r).remove(),i.autoMargin(e,w);var j=a.ensureSingle(l,"g",w,function(e){k||e.attr("pointer-events","all")}),B=a.ensureSingleById(p._topdefs,"clipPath",r,function(e){e.append("rect")}),H=a.ensureSingle(j,"rect","bg",function(e){e.attr("shape-rendering","crispEdges")});H.call(u.stroke,d.bordercolor).call(u.fill,d.bgcolor).style("stroke-width",d.borderwidth+"px");var U,q=a.ensureSingle(j,"g","scrollbox"),Y=d.title;d._titleWidth=0,d._titleHeight=0,Y.text?((U=a.ensureSingle(q,"text",w+"titletext")).attr("text-anchor","start").call(c.font,Y.font).text(Y.text),O(U,q,e,d,_)):q.selectAll("."+w+"titletext").remove();var V=a.ensureSingle(j,"rect","scrollbar",function(e){e.attr(h.scrollBarEnterAttrs).call(u.fill,h.scrollBarColor)}),G=q.selectAll("g.groups").data(S);G.enter().append("g").attr("class","groups"),G.exit().remove();var Z=G.selectAll("g.traces").data(a.identity);Z.enter().append("g").attr("class","traces"),Z.exit().remove(),Z.style("opacity",function(e){var t=e[0].trace;return o.traceIs(t,"pie-like")?-1!==F.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1}).each(function(){n.select(this).call(A,e,d)}).call(x,e,d).each(function(){k||n.select(this).call(L,e,w)}),a.syncOrAsync([i.previousPromises,function(){return function(e,t,r,a){var i=e._fullLayout,o=P(a);a||(a=i[o]);var l=i._size,s=b.isVertical(a),u=b.isGrouped(a),f="fraction"===a.entrywidthmode,d=a.borderwidth,p=2*d,y=h.itemGap,v=a.indentation+a.itemwidth+2*y,g=2*(d+y),m=D(a),x=a.y<0||0===a.y&&"top"===m,_=a.y>1||1===a.y&&"bottom"===m,w=a.tracegroupgap,k={};a._maxHeight=Math.max(x||_?i.height/2:l.h,30);var M=0;a._width=0,a._height=0;var A=function(e){var t=0,r=0,n=e.title.side;n&&(-1!==n.indexOf("left")&&(t=e._titleWidth),-1!==n.indexOf("top")&&(r=e._titleHeight));return[t,r]}(a);if(s)r.each(function(e){var t=e[0].height;c.setTranslate(this,d+A[0],d+A[1]+a._height+t/2+y),a._height+=t,a._width=Math.max(a._width,e[0].width)}),M=v+a._width,a._width+=y+v+p,a._height+=g,u&&(t.each(function(e,t){c.setTranslate(this,0,t*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var S=C(a),L=a.x<0||0===a.x&&"right"===S,O=a.x>1||1===a.x&&"left"===S,E=_||x,R=i.width/2;a._maxWidth=Math.max(L?E&&"left"===S?l.l+l.w:R:O?E&&"right"===S?l.r+l.w:R:l.w,2*v);var I=0,z=0;r.each(function(e){var t=T(e,a,v);I=Math.max(I,t),z+=t}),M=null;var N=0;if(u){var F=0,j=0,B=0;t.each(function(){var e=0,t=0;n.select(this).selectAll("g.traces").each(function(r){var n=T(r,a,v),i=r[0].height;c.setTranslate(this,A[0],A[1]+d+y+i/2+t),t+=i,e=Math.max(e,n),k[r[0].trace.legendgroup]=e});var r=e+y;j>0&&r+d+j>a._maxWidth?(N=Math.max(N,j),j=0,B+=F+w,F=t):F=Math.max(F,t),c.setTranslate(this,j,B),j+=r}),a._width=Math.max(N,j)+d,a._height=B+F+g}else{var H=r.size(),U=z+p+(H-1)*y<a._maxWidth,q=0,Y=0,V=0,G=0;r.each(function(e){var t=e[0].height,r=T(e,a,v),n=U?r:I;f||(n+=y),n+d+Y-y>=a._maxWidth&&(N=Math.max(N,G),Y=0,V+=q,a._height+=q,q=0),c.setTranslate(this,A[0]+d+Y,A[1]+d+V+t/2+y),G=Y+r+y,Y+=n,q=Math.max(q,t)}),U?(a._width=Y+p,a._height=q+g):(a._width=Math.max(N,G)+p,a._height+=q+g)}}a._width=Math.ceil(Math.max(a._width+A[0],a._titleWidth+2*(d+h.titlePad))),a._height=Math.ceil(Math.max(a._height+A[1],a._titleHeight+2*(d+h.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Z=e._context.edits,W=Z.legendText||Z.legendPosition;r.each(function(e){var t=n.select(this).select("."+o+"toggle"),r=e[0].height,i=e[0].trace.legendgroup,l=T(e,a,v);u&&""!==i&&(l=k[i]);var d=W?v:M||l;s||f||(d+=y/2),c.setRect(t,0,-r/2,d,r)})}(e,G,Z,d)},function(){var t,u,m,x,b=p._size,_=d.borderwidth,T="paper"===d.xref,A="paper"===d.yref;if(Y.text&&function(e,t,r){if("top center"===t.title.side||"top right"===t.title.side){var n=t.title.font.size*y,a=0,i=e.node(),o=c.bBox(i).width;"top center"===t.title.side?a=.5*(t._width-2*r-2*h.titlePad-o):"top right"===t.title.side&&(a=t._width-2*r-2*h.titlePad-o),f.positionText(e,r+h.titlePad+a,r+n)}}(U,d,_),!k){var S,L;if(S=T?b.l+b.w*d.x-v[C(d)]*d._width:p.width*d.x-v[C(d)]*d._width,L=A?b.t+b.h*(1-d.y)-v[D(d)]*d._effHeight:p.height*(1-d.y)-v[D(d)]*d._effHeight,function(e,t,r,n){var a=e._fullLayout,o=a[t],l=C(o),s=D(o),c="paper"===o.xref,u="paper"===o.yref;e._fullLayout._reservedMargin[t]={};var f=o.y<.5?"b":"t",d=o.x<.5?"l":"r",h={r:a.width-r,l:r+o._width,b:a.height-n,t:n+o._effHeight};if(c&&u)return i.autoMargin(e,t,{x:o.x,y:o.y,l:o._width*v[l],r:o._width*g[l],b:o._effHeight*g[s],t:o._effHeight*v[s]});c?e._fullLayout._reservedMargin[t][f]=h[f]:u?e._fullLayout._reservedMargin[t][d]=h[d]:"v"===o.orientation?e._fullLayout._reservedMargin[t][d]=h[d]:e._fullLayout._reservedMargin[t][f]=h[f]}(e,w,S,L))return;if(p.margin.autoexpand){var O=S,P=L;S=T?a.constrain(S,0,p.width-d._width):O,L=A?a.constrain(L,0,p.height-d._effHeight):P,S!==O&&a.log("Constrain "+w+".x to make legend fit inside graph"),L!==P&&a.log("Constrain "+w+".y to make legend fit inside graph")}c.setTranslate(j,S,L)}if(V.on(".drag",null),j.on("wheel",null),k||d._height<=d._maxHeight||e._context.staticPlot){var E=d._effHeight;k&&(E=d._height),H.attr({width:d._width-_,height:E-_,x:_/2,y:_/2}),c.setTranslate(q,0,0),B.select("rect").attr({width:d._width-2*_,height:E-2*_,x:_,y:_}),c.setClipUrl(q,r,e),c.setRect(V,0,0,0,0),delete d._scrollY}else{var R,I,z,N=Math.max(h.scrollBarMinHeight,d._effHeight*d._effHeight/d._height),F=d._effHeight-N-2*h.scrollBarMargin,G=d._height-d._effHeight,Z=F/G,W=Math.min(d._scrollY||0,G);H.attr({width:d._width-2*_+h.scrollBarWidth+h.scrollBarMargin,height:d._effHeight-_,x:_/2,y:_/2}),B.select("rect").attr({width:d._width-2*_+h.scrollBarWidth+h.scrollBarMargin,height:d._effHeight-2*_,x:_,y:_+W}),c.setClipUrl(q,r,e),K(W,N,Z),j.on("wheel",function(){K(W=a.constrain(d._scrollY+n.event.deltaY/F*G,0,G),N,Z),0!==W&&W!==G&&n.event.preventDefault()});var J=n.behavior.drag().on("dragstart",function(){var e=n.event.sourceEvent;R="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,z=W}).on("drag",function(){var e=n.event.sourceEvent;2===e.buttons||e.ctrlKey||(I="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,K(W=function(e,t,r){var n=(r-t)/Z+e;return a.constrain(n,0,G)}(z,R,I),N,Z))});V.call(J);var X=n.behavior.drag().on("dragstart",function(){var e=n.event.sourceEvent;"touchstart"===e.type&&(R=e.changedTouches[0].clientY,z=W)}).on("drag",function(){var e=n.event.sourceEvent;"touchmove"===e.type&&(I=e.changedTouches[0].clientY,K(W=function(e,t,r){var n=(t-r)/Z+e;return a.constrain(n,0,G)}(z,R,I),N,Z))});q.call(X)}function K(t,r,n){d._scrollY=e._fullLayout[w]._scrollY=t,c.setTranslate(q,0,-t),c.setRect(V,d._width,h.scrollBarMargin+t*n,h.scrollBarWidth,r),B.select("rect").attr("y",_+t)}e._context.edits.legendPosition&&(j.classed("cursor-move",!0),s.init({element:j.node(),gd:e,prepFn:function(){var e=c.getTranslate(j);m=e.x,x=e.y},moveFn:function(e,r){var n=m+e,a=x+r;c.setTranslate(j,n,a),t=s.align(n,d._width,b.l,b.l+b.w,d.xanchor),u=s.align(a+d._height,-d._height,b.t+b.h,b.t,d.yanchor)},doneFn:function(){if(void 0!==t&&void 0!==u){var r={};r[w+".x"]=t,r[w+".y"]=u,o.call("_guiRelayout",e,r)}},clickFn:function(t,r){var n=l.selectAll("g.traces").filter(function(){var e=this.getBoundingClientRect();return r.clientX>=e.left&&r.clientX<=e.right&&r.clientY>=e.top&&r.clientY<=e.bottom});n.size()>0&&M(e,j,n,t,r)}}))}],e)}}function T(e,t,r){var n=e[0],a=n.width,i=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return"fraction"===i?t._maxWidth*o:r+(o||a)}function M(e,t,r,n,a){var i=r.data()[0][0].trace,s={event:a,node:r.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(s.group=i._group),o.traceIs(i,"pie-like")&&(s.label=r.datum()[0].label);var c=l.triggerHandler(e,"plotly_legendclick",s);if(1===n){if(!1===c)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&d(r,e,n)},e._context.doubleClickDelay)}else if(2===n){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==l.triggerHandler(e,"plotly_legenddoubleclick",s)&&!1!==c&&d(r,e,n)}}function A(e,t,r){var n,i,l=P(r),s=e.data()[0][0],u=s.trace,d=o.traceIs(u,"pie-like"),p=!r._inHover&&t._context.edits.legendText&&!d,y=r._maxNameLength;s.groupTitle?(n=s.groupTitle.text,i=s.groupTitle.font):(i=r.font,r.entries?n=s.text:(n=d?s.label:u.name,u._meta&&(n=a.templateString(n,u._meta))));var v=a.ensureSingle(e,"text",l+"text");v.attr("text-anchor","start").call(c.font,i).text(p?S(n,y):n);var g=r.indentation+r.itemwidth+2*h.itemGap;f.positionText(v,g,0),p?v.call(f.makeEditable,{gd:t,text:n}).call(O,e,t,r).on("edit",function(n){this.text(S(n,y)).call(O,e,t,r);var i=s.trace._fullInput||{},l={};if(o.hasTransform(i,"groupby")){var c=o.getTransformIndices(i,"groupby"),f=c[c.length-1],d=a.keyedContainer(i,"transforms["+f+"].styles","target","value.name");d.set(s.trace._group,n),l=d.constructUpdate()}else l.name=n;return i._isShape?o.call("_guiRelayout",t,"shapes["+u.index+"].name",l.name):o.call("_guiRestyle",t,l,u.index)}):O(v,e,t,r)}function S(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;for(var n=r-(e=e||"").length;n>0;n--)e+=" ";return e}function L(e,t,r){var i,o=t._context.doubleClickDelay,l=1,s=a.ensureSingle(e,"rect",r+"toggle",function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(u.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(s.on("mousedown",function(){(i=(new Date).getTime())-t._legendMouseDownTime<o?l+=1:(l=1,t._legendMouseDownTime=i)}),s.on("mouseup",function(){if(!t._dragged&&!t._editing){var a=t._fullLayout[r];(new Date).getTime()-t._legendMouseDownTime>o&&(l=Math.max(l-1,1)),M(t,a,e,l,n.event)}}))}function O(e,t,r,n,a){n._inHover&&e.attr("data-notex",!0),f.convertToTspans(e,r,function(){!function(e,t,r,n){var a=e.data()[0][0];if(!r._inHover&&a&&!a.trace.showlegend)return void e.remove();var i=e.select("g[class*=math-group]"),o=i.node(),l=P(r);r||(r=t._fullLayout[l]);var s,u=r.borderwidth;s=n===_?r.title.font:a.groupTitle?a.groupTitle.font:r.font;var d,p,v=s.size*y;if(o){var g=c.bBox(o);d=g.height,p=g.width,n===_?c.setTranslate(i,u,u+.75*d):c.setTranslate(i,0,.25*d)}else{var m="."+l+(n===_?"title":"")+"text",x=e.select(m),b=f.lineCount(x),w=x.node();if(d=v*b,p=w?c.bBox(w).width:0,n===_)"left"===r.title.side&&(p+=2*h.itemGap),f.positionText(x,u+h.titlePad,u+v);else{var k=2*h.itemGap+r.indentation+r.itemwidth;a.groupTitle&&(k=h.itemGap,p-=r.indentation+r.itemwidth),f.positionText(x,k,-v*((b-1)/2-.3))}}n===_?(r._titleWidth=p,r._titleHeight=d):(a.lineHeight=v,a.height=Math.max(d,16)+3,a.width=p)}(t,r,n,a)})}function C(e){return a.isRightAnchor(e)?"right":a.isCenterAnchor(e)?"center":"left"}function D(e){return a.isBottomAnchor(e)?"bottom":a.isMiddleAnchor(e)?"middle":"top"}function P(e){return e._id||"legend"}e.exports=function(e,t){if(t)k(e,t);else{var r=e._fullLayout,a=r._legends;r._infolayer.selectAll('[class^="legend"]').each(function(){var e=n.select(this),t=e.attr("class").split(" ")[0];t.match(w)&&-1===a.indexOf(t)&&e.remove()});for(var i=0;i<a.length;i++){var o=a[i];k(e,e._fullLayout[o])}}}},35456:function(e,t,r){"use strict";var n=r(24040),a=r(42451);e.exports=function(e,t,r){var i,o,l=t._inHover,s=a.isGrouped(t),c=a.isReversed(t),u={},f=[],d=!1,h={},p=0,y=0;function v(e,n,i){if(!1!==t.visible&&(!r||e===t._id))if(""!==n&&a.isGrouped(t))-1===f.indexOf(n)?(f.push(n),d=!0,u[n]=[i]):u[n].push(i);else{var o="~~i"+p;f.push(o),u[o]=[i],p++}}for(i=0;i<e.length;i++){var g=e[i],m=g[0],x=m.trace,b=x.legend,_=x.legendgroup;if(l||x.visible&&x.showlegend)if(n.traceIs(x,"pie-like"))for(h[_]||(h[_]={}),o=0;o<g.length;o++){var w=g[o].label;h[_][w]||(v(b,_,{label:w,color:g[o].color,i:g[o].i,trace:x,pts:g[o].pts}),h[_][w]=!0,y=Math.max(y,(w||"").length))}else v(b,_,m),y=Math.max(y,(x.name||"").length)}if(!f.length)return[];var k=!d||!s,T=[];for(i=0;i<f.length;i++){var M=u[f[i]];k?T.push(M[0]):T.push(M)}for(k&&(T=[T]),i=0;i<T.length;i++){var A=1/0;for(o=0;o<T[i].length;o++){var S=T[i][o].trace.legendrank;A>S&&(A=S)}T[i][0]._groupMinRank=A,T[i][0]._preGroupSort=i}var L=function(e,t){return e.trace.legendrank-t.trace.legendrank||e._preSort-t._preSort};for(T.forEach(function(e,t){e[0]._preGroupSort=t}),T.sort(function(e,t){return e[0]._groupMinRank-t[0]._groupMinRank||e[0]._preGroupSort-t[0]._preGroupSort}),i=0;i<T.length;i++){T[i].forEach(function(e,t){e._preSort=t}),T[i].sort(L);var O=T[i][0].trace,C=null;for(o=0;o<T[i].length;o++){var D=T[i][o].trace.legendgrouptitle;if(D&&D.text){C=D,l&&(D.font=t._groupTitleFont);break}}if(c&&T[i].reverse(),C){var P=!1;for(o=0;o<T[i].length;o++)if(n.traceIs(T[i][o].trace,"pie-like")){P=!0;break}T[i].unshift({i:-1,groupTitle:C,noClick:P,trace:{showlegend:O.showlegend,legendgroup:O.legendgroup,visible:"toggleitem"===t.groupclick||O.visible}})}for(o=0;o<T[i].length;o++)T[i][o]=[T[i][o]]}return t._lgroupsLength=T.length,t._maxNameLength=y,T}},33048:function(e,t,r){"use strict";var n=r(24040),a=r(3400),i=a.pushUnique,o=!0;e.exports=function(e,t,r){var l=t._fullLayout;if(!t._dragged&&!t._editing){var s,c=l.legend.itemclick,u=l.legend.itemdoubleclick,f=l.legend.groupclick;if(1===r&&"toggle"===c&&"toggleothers"===u&&o&&t.data&&t._context.showTips?(a.notifier(a._(t,"Double-click on legend to isolate one trace"),"long"),o=!1):o=!1,1===r?s=c:2===r&&(s=u),s){var d="togglegroup"===f,h=l.hiddenlabels?l.hiddenlabels.slice():[],p=e.data()[0][0];if(!p.groupTitle||!p.noClick){var y=t._fullData,v=(l.shapes||[]).filter(function(e){return e.showlegend}),g=y.concat(v),m=p.trace;m._isShape&&(m=m._fullInput);var x,b,_,w,k,T=m.legendgroup,M={},A=[],S=[],L=[],O=(l.shapes||[]).map(function(e){return e._input}),C=!1,D=m.legend,P=m._fullInput;if(!(P&&P._isShape)&&n.traceIs(m,"pie-like")){var E=p.label,R=h.indexOf(E);if("toggle"===s)-1===R?h.push(E):h.splice(R,1);else if("toggleothers"===s){var I=-1!==R,z=[];for(x=0;x<t.calcdata.length;x++){var N=t.calcdata[x];for(b=0;b<N.length;b++){var F=N[b].label;D===N[0].trace.legend&&E!==F&&(-1===h.indexOf(F)&&(I=!0),i(h,F),z.push(F))}}if(!I)for(var j=0;j<z.length;j++){var B=h.indexOf(z[j]);-1!==B&&h.splice(B,1)}}n.call("_guiRelayout",t,"hiddenlabels",h)}else{var H,U=T&&T.length,q=[];if(U)for(x=0;x<g.length;x++)(H=g[x]).visible&&H.legendgroup===T&&q.push(x);if("toggle"===s){var Y;switch(m.visible){case!0:Y="legendonly";break;case!1:Y=!1;break;case"legendonly":Y=!0}if(U)if(d)for(x=0;x<g.length;x++){var V=g[x];!1!==V.visible&&V.legendgroup===T&&ee(V,Y)}else ee(m,Y);else ee(m,Y)}else if("toggleothers"===s){var G,Z,W,J,X=!0;for(x=0;x<g.length;x++)if(G=(J=g[x])===m,Z=!0!==J.showlegend,!(G||Z||U&&J.legendgroup===T||J.legend!==D||!0!==J.visible||n.traceIs(J,"notLegendIsolatable"))){X=!1;break}for(x=0;x<g.length;x++)if(!1!==(J=g[x]).visible&&J.legend===D&&!n.traceIs(J,"notLegendIsolatable"))switch(m.visible){case"legendonly":ee(J,!0);break;case!0:W=!!X||"legendonly",G=J===m,Z=!0!==J.showlegend&&!J.legendgroup,ee(J,!(!(G||U&&J.legendgroup===T)&&!Z)||W)}}for(x=0;x<S.length;x++)if(_=S[x]){var K=_.constructUpdate(),$=Object.keys(K);for(b=0;b<$.length;b++)w=$[b],(M[w]=M[w]||[])[L[x]]=K[w]}for(k=Object.keys(M),x=0;x<k.length;x++)for(w=k[x],b=0;b<A.length;b++)M[w].hasOwnProperty(b)||(M[w][b]=void 0);C?n.call("_guiUpdate",t,M,{shapes:O},A):n.call("_guiRestyle",t,M,A)}}}}function Q(e,t){var r=A.indexOf(e),n=M.visible;return n||(n=M.visible=[]),-1===A.indexOf(e)&&(A.push(e),r=A.length-1),n[r]=t,r}function ee(e,t){if(!p.groupTitle||d){var r,i=e._fullInput||e,o=i._isShape,l=i.index;if(void 0===l&&(l=i._index),n.hasTransform(i,"groupby")){var s=S[l];if(!s){var c=n.getTransformIndices(i,"groupby"),u=c[c.length-1];s=a.keyedContainer(i,"transforms["+u+"].styles","target","value.visible"),S[l]=s}var f=s.get(e._group);void 0===f&&(f=!0),!1!==f&&s.set(e._group,t),L[l]=Q(l,!1!==i.visible)}else{var h=!1!==i.visible&&t;o?(r=h,O[l].visible=r,C=!0):Q(l,h)}}}}},42451:function(e,t){"use strict";t.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},t.isVertical=function(e){return"h"!==e.orientation},t.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")}},2780:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:r(3800),supplyLayoutDefaults:r(77864),draw:r(31140),style:r(2012)}},2012:function(e,t,r){"use strict";var n=r(33428),a=r(24040),i=r(3400),o=i.strTranslate,l=r(43616),s=r(76308),c=r(94288).extractOpts,u=r(43028),f=r(10528),d=r(69656).castOption,h=r(65196),p=12,y=5,v=2,g=10,m=5;function x(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}function b(e){var t=e[0].trace,r=t.contours,n=u.hasLines(t),a=u.hasMarkers(t),i=t.visible&&t.fill&&"none"!==t.fill,o=!1,l=!1;if(r){var s=r.coloring;"lines"===s?o=!0:n="none"===s||"heatmap"===s||r.showlines,"constraint"===r.type?i="="!==r._operation:"fill"!==s&&"heatmap"!==s||(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function _(e,t,r){return e&&i.isArrayOrTypedArray(e)?t:e>r?r:e}e.exports=function(e,t,r){var w=t._fullLayout;r||(r=w.legend);var k="constant"===r.itemsizing,T=r.itemwidth,M=(T+2*h.itemGap)/2,A=o(M,0),S=function(e,t,r,n){var a;if(e+1)a=e;else{if(!(t&&t.width>0))return 0;a=t.width}return k?n:Math.min(a,r)};function L(e,i,o){var u=e[0].trace,f=u.marker||{},d=f.line||{},h=f.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",p=o?u.visible&&u.type===o:a.traceIs(u,"bar"),y=n.select(i).select("g.legendpoints").selectAll("path.legend"+o).data(p?[e]:[]);y.enter().append("path").classed("legend"+o,!0).attr("d",h).attr("transform",A),y.exit().remove(),y.each(function(e){var a=n.select(this),i=e[0],o=S(i.mlw,f.line,m,v);a.style("stroke-width",o+"px");var h=i.mcc;if(!r._inHover&&"mc"in i){var p=c(f),y=p.mid;void 0===y&&(y=(p.max+p.min)/2),h=l.tryColorscale(f,"")(y)}var g=h||i.mc||f.color,x=f.pattern,b=x&&l.getPatternAttr(x.shape,0,"");if(b){var w=l.getPatternAttr(x.bgcolor,0,null),k=l.getPatternAttr(x.fgcolor,0,null),T=x.fgopacity,M=_(x.size,8,10),A=_(x.solidity,.5,1),L="legend-"+u.uid;a.call(l.pattern,"legend",t,L,b,M,A,h,x.fillmode,w,k,T)}else a.call(s.fill,g);o&&s.stroke(a,i.mlc||d.color)})}function O(e,r,o){var l=e[0],s=l.trace,c=o?s.visible&&s.type===o:a.traceIs(s,o),u=n.select(r).select("g.legendpoints").selectAll("path.legend"+o).data(c?[e]:[]);if(u.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",A),u.exit().remove(),u.size()){var h=s.marker||{},p=S(d(h.line.width,l.pts),h.line,m,v),y=i.minExtend(s,{marker:{line:{width:p}}},"pieLike"),g=i.minExtend(l,{trace:y},"pieLike");f(u,g,y,t)}}e.each(function(e){var t=n.select(this),a=i.ensureSingle(t,"g","layers");a.style("opacity",e[0].trace.opacity);var l=r.indentation,s=r.valign,c=e[0].lineHeight,u=e[0].height;if("middle"===s&&0===l||!c||!u)a.attr("transform",null);else{var f={top:1,bottom:-1}[s]*(.5*(c-u+3))||0,d=r.indentation;a.attr("transform",o(d,f))}a.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),a.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var h=a.selectAll("g.legendsymbols").data([e]);h.enter().append("g").classed("legendsymbols",!0),h.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)}).each(function(e){var r,a=e[0].trace,o=[];if(a.visible)switch(a.type){case"histogram2d":case"heatmap":o=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":o=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":o=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="radial";break;case"cone":o=[["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"]],r=!1;break;case"streamtube":o=[["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"]],r=!1;break;case"surface":o=[["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"]],r=!0;break;case"mesh3d":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!0;break;case"isosurface":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],r=!1}var u=n.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(o);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform",A).style("stroke-miterlimit",1),u.exit().remove(),u.each(function(e,o){var u,f=n.select(this),d=c(a),h=d.colorscale,p=d.reversescale;if(h){if(!r){var y=h.length;u=0===o?h[p?y-1:0][1]:1===o?h[p?0:y-1][1]:h[Math.floor((y-1)/2)][1]}}else{var v=a.vertexcolor||a.facecolor||a.color;u=i.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr("d",e[0]),u?f.call(s.fill,u):f.call(function(e){if(e.size()){var n="legendfill-"+a.uid;l.gradient(e,t,n,x(p,"radial"===r),h,"fill")}})})}).each(function(e){var t=e[0].trace,r="waterfall"===t.type;if(e[0]._distinct&&r){var a=e[0].trace[e[0].dir].marker;return e[0].mc=a.color,e[0].mlw=a.line.width,e[0].mlc=a.line.color,L(e,this,"waterfall")}var i=[];t.visible&&r&&(i=e[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 o=n.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",A).style("stroke-miterlimit",1),o.exit().remove(),o.each(function(e){var r=n.select(this),a=t[e[0]].marker,i=S(void 0,a.line,m,v);r.attr("d",e[1]).style("stroke-width",i+"px").call(s.fill,a.color),i&&r.call(s.stroke,a.line.color)})}).each(function(e){L(e,this,"funnel")}).each(function(e){L(e,this)}).each(function(e){var r=e[0].trace,o=n.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&a.traceIs(r,"box-violin")?[e]:[]);o.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",A),o.exit().remove(),o.each(function(){var e=n.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==s.opacity(r.fillcolor)||0!==s.opacity((r.line||{}).color)){var a=S(void 0,r.line,m,v);e.style("stroke-width",a+"px").call(s.fill,r.fillcolor),a&&s.stroke(e,r.line.color)}else{var c=i.minExtend(r,{marker:{size:k?p:i.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});o.call(l.pointStyle,c,t)}})}).each(function(e){O(e,this,"funnelarea")}).each(function(e){O(e,this,"pie")}).each(function(e){var r,a,o=b(e),s=o.showFill,f=o.showLine,d=o.showGradientLine,h=o.showGradientFill,p=o.anyFill,v=o.anyLine,m=e[0],_=m.trace,w=c(_),k=w.colorscale,M=w.reversescale,A=u.hasMarkers(_)||!p?"M5,0":v?"M5,-2":"M5,-3",L=n.select(this),O=L.select(".legendfill").selectAll("path").data(s||h?[e]:[]);if(O.enter().append("path").classed("js-fill",!0),O.exit().remove(),O.attr("d",A+"h"+T+"v6h-"+T+"z").call(function(e){if(e.size())if(s)l.fillGroupStyle(e,t,!0);else{var r="legendfill-"+_.uid;l.gradient(e,t,r,x(M),k,"fill")}}),f||d){var C=S(void 0,_.line,g,y);a=i.minExtend(_,{line:{width:C}}),r=[i.minExtend(m,{trace:a})]}var D=L.select(".legendlines").selectAll("path").data(f||d?[r]:[]);D.enter().append("path").classed("js-line",!0),D.exit().remove(),D.attr("d",A+(d?"l"+T+",0.0001":"h"+T)).call(f?l.lineGroupStyle:function(e){if(e.size()){var r="legendline-"+_.uid;l.lineGroupStyle(e),l.gradient(e,t,r,x(M),k,"stroke")}})}).each(function(e){var r,a,o=b(e),s=o.anyFill,c=o.anyLine,f=o.showLine,d=o.showMarker,h=e[0],g=h.trace,m=!d&&!c&&!s&&u.hasText(g);function x(e,t,r,n){var a=i.nestedProperty(g,e).get(),o=i.isArrayOrTypedArray(a)&&t?t(a):a;if(k&&o&&void 0!==n&&(o=n),r){if(o<r[0])return r[0];if(o>r[1])return r[1]}return o}function _(e){return h._distinct&&h.index&&e[h.index]?e[h.index]:e[0]}if(d||m||f){var w={},T={};if(d){w.mc=x("marker.color",_),w.mx=x("marker.symbol",_),w.mo=x("marker.opacity",i.mean,[.2,1]),w.mlc=x("marker.line.color",_),w.mlw=x("marker.line.width",i.mean,[0,5],v),T.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var M=x("marker.size",i.mean,[2,16],p);w.ms=M,T.marker.size=M}f&&(T.line={width:x("line.width",_,[0,10],y)}),m&&(w.tx="Aa",w.tp=x("textposition",_),w.ts=10,w.tc=x("textfont.color",_),w.tf=x("textfont.family",_)),r=[i.minExtend(h,w)],(a=i.minExtend(g,T)).selectedpoints=null,a.texttemplate=null}var S=n.select(this).select("g.legendpoints"),L=S.selectAll("path.scatterpts").data(d?r:[]);L.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",A),L.exit().remove(),L.call(l.pointStyle,a,t),d&&(r[0].mrc=3);var O=S.selectAll("g.pointtext").data(m?r:[]);O.enter().append("g").classed("pointtext",!0).append("text").attr("transform",A),O.exit().remove(),O.selectAll("text").call(l.textPointStyle,a,t)}).each(function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",A).style("stroke-miterlimit",1),r.exit().remove(),r.each(function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=S(void 0,i.line,m,v);a.style("stroke-width",o+"px").call(s.fill,i.fillcolor),o&&s.stroke(a,i.line.color)})}).each(function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",A).style("stroke-miterlimit",1),r.exit().remove(),r.each(function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=S(void 0,i.line,m,v);a.style("fill","none").call(l.dashLine,i.line.dash,o),o&&s.stroke(a,i.line.color)})})}},66540:function(e,t,r){"use strict";r(76052);e.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(e,t,r){"use strict";var n=r(24040),a=r(7316),i=r(79811),o=r(9224),l=r(4016).eraseActiveShape,s=r(3400),c=s._,u=e.exports={};function f(e,t){var r,a,o=t.currentTarget,l=o.getAttribute("data-attr"),s=o.getAttribute("data-val")||!0,c=e._fullLayout,u={},f=i.list(e,null,!0),d=c._cartesianSpikesEnabled;if("zoom"===l){var h,p="in"===s?.5:2,y=(1+p)/2,v=(1-p)/2;for(a=0;a<f.length;a++)if(!(r=f[a]).fixedrange)if(h=r._name,"auto"===s)u[h+".autorange"]=!0;else if("reset"===s)void 0===r._rangeInitial0&&void 0===r._rangeInitial1?u[h+".autorange"]=!0:void 0===r._rangeInitial0?(u[h+".autorange"]=r._autorangeInitial,u[h+".range"]=[null,r._rangeInitial1]):void 0===r._rangeInitial1?(u[h+".range"]=[r._rangeInitial0,null],u[h+".autorange"]=r._autorangeInitial):u[h+".range"]=[r._rangeInitial0,r._rangeInitial1],void 0!==r._showSpikeInitial&&(u[h+".showspikes"]=r._showSpikeInitial,"on"!==d||r._showSpikeInitial||(d="off"));else{var g=[r.r2l(r.range[0]),r.r2l(r.range[1])],m=[y*g[0]+v*g[1],y*g[1]+v*g[0]];u[h+".range[0]"]=r.l2r(m[0]),u[h+".range[1]"]=r.l2r(m[1])}}else"hovermode"!==l||"x"!==s&&"y"!==s||(s=c._isHoriz?"y":"x",o.setAttribute("data-val",s)),u[l]=s;c._cartesianSpikesEnabled=d,n.call("_guiRelayout",e,u)}function d(e,t){for(var r=t.currentTarget,a=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],l={},s=a.split("."),c=0;c<o.length;c++)l[o[c]+"."+s[1]]=i;var u="pan"===i?i:"zoom";l.dragmode=u,n.call("_guiRelayout",e,l)}function h(e,t){for(var r=t.currentTarget.getAttribute("data-attr"),a="resetLastSave"===r,i="resetDefault"===r,o=e._fullLayout,l=o._subplots.gl3d||[],s={},c=0;c<l.length;c++){var u,f=l[c],d=f+".camera",h=f+".aspectratio",p=f+".aspectmode",y=o[f]._scene;a?(s[d+".up"]=y.viewInitial.up,s[d+".eye"]=y.viewInitial.eye,s[d+".center"]=y.viewInitial.center,u=!0):i&&(s[d+".up"]=null,s[d+".eye"]=null,s[d+".center"]=null,u=!0),u&&(s[h+".x"]=y.viewInitial.aspectratio.x,s[h+".y"]=y.viewInitial.aspectratio.y,s[h+".z"]=y.viewInitial.aspectratio.z,s[p]=y.viewInitial.aspectmode)}n.call("_guiRelayout",e,s)}function p(e,t){var r=t.currentTarget,n=r._previousVal,a=e._fullLayout,i=a._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(n)s=n,r._previousVal=null;else{for(var c=0;c<i.length;c++){var u=i[c],f=a[u],d=u+".hovermode";l[d]=f.hovermode,s[d]=!1;for(var h=0;h<3;h++){var p=o[h],y=u+"."+p+".showspikes";s[y]=!1,l[y]=f[p].showspikes}}r._previousVal=l}return s}function y(e,t){for(var r=t.currentTarget,a=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout,l=o._subplots.geo||[],s=0;s<l.length;s++){var c=l[s],u=o[c];if("zoom"===a){var f=u.projection.scale,d="in"===i?2*f:.5*f;n.call("_guiRelayout",e,c+".projection.scale",d)}}"reset"===a&&x(e,"geo")}function v(e){var t=e._fullLayout;return!t.hovermode&&(t._has("cartesian")?t._isHoriz?"y":"x":"closest")}function g(e){var t=v(e);n.call("_guiRelayout",e,"hovermode",t)}function m(e,t){for(var r=t.currentTarget.getAttribute("data-val"),a=e._fullLayout,i=a._subplots.mapbox||[],o={},l=0;l<i.length;l++){var s=i[l],c=a[s].zoom,u="in"===r?1.05*c:c/1.05;o[s+".zoom"]=u}n.call("_guiRelayout",e,o)}function x(e,t){for(var r=e._fullLayout,a=r._subplots[t]||[],i={},o=0;o<a.length;o++)for(var l=a[o],s=r[l]._subplot.viewInitial,c=Object.keys(s),u=0;u<c.length;u++){var f=c[u];i[l+"."+f]=s[f]}n.call("_guiRelayout",e,i)}u.toImage={name:"toImage",title:function(e){var t=(e._context.toImageButtonOptions||{}).format||"png";return c(e,"png"===t?"Download plot as a png":"Download plot")},icon:o.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};s.notifier(c(e,"Taking snapshot - this may take a few seconds"),"long"),"svg"!==r.format&&s.isIE()&&(s.notifier(c(e,"IE only supports svg. Changing format to svg."),"long"),r.format="svg"),["filename","width","height","scale"].forEach(function(e){e in t&&(r[e]=t[e])}),n.call("downloadImage",e,r).then(function(t){s.notifier(c(e,"Snapshot succeeded")+" - "+t,"long")}).catch(function(){s.notifier(c(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}},u.sendDataToCloud={name:"sendDataToCloud",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.disk,click:function(e){a.sendDataToCloud(e)}},u.editInChartStudio={name:"editInChartStudio",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.pencil,click:function(e){a.sendDataToCloud(e)}},u.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return c(e,"Zoom")},attr:"dragmode",val:"zoom",icon:o.zoombox,click:f},u.pan2d={name:"pan2d",_cat:"pan",title:function(e){return c(e,"Pan")},attr:"dragmode",val:"pan",icon:o.pan,click:f},u.select2d={name:"select2d",_cat:"select",title:function(e){return c(e,"Box Select")},attr:"dragmode",val:"select",icon:o.selectbox,click:f},u.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return c(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:o.lasso,click:f},u.drawclosedpath={name:"drawclosedpath",title:function(e){return c(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:o.drawclosedpath,click:f},u.drawopenpath={name:"drawopenpath",title:function(e){return c(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:o.drawopenpath,click:f},u.drawline={name:"drawline",title:function(e){return c(e,"Draw line")},attr:"dragmode",val:"drawline",icon:o.drawline,click:f},u.drawrect={name:"drawrect",title:function(e){return c(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:o.drawrect,click:f},u.drawcircle={name:"drawcircle",title:function(e){return c(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:o.drawcircle,click:f},u.eraseshape={name:"eraseshape",title:function(e){return c(e,"Erase active shape")},icon:o.eraseshape,click:l},u.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:f},u.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:f},u.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return c(e,"Autoscale")},attr:"zoom",val:"auto",icon:o.autoscale,click:f},u.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return c(e,"Reset axes")},attr:"zoom",val:"reset",icon:o.home,click:f},u.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return c(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:f},u.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return c(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:o.tooltip_compare,gravity:"ne",click:f},u.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return c(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:o.zoombox,click:d},u.pan3d={name:"pan3d",_cat:"pan",title:function(e){return c(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:o.pan,click:d},u.orbitRotation={name:"orbitRotation",title:function(e){return c(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:o["3d_rotate"],click:d},u.tableRotation={name:"tableRotation",title:function(e){return c(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:o["z-axis"],click:d},u.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return c(e,"Reset camera to default")},attr:"resetDefault",icon:o.home,click:h},u.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return c(e,"Reset camera to last save")},attr:"resetLastSave",icon:o.movie,click:h},u.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var r=p(e,t);n.call("_guiRelayout",e,r)}},u.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:y},u.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:y},u.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return c(e,"Reset")},attr:"reset",val:null,icon:o.autoscale,click:y},u.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:g},u.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:g},u.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:g},u.resetViewSankey={name:"resetSankeyGroup",title:function(e){return c(e,"Reset view")},icon:o.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},r=0;r<e._fullData.length;r++){var a=e._fullData[r]._viewInitial;t["node.groups"].push(a.node.groups.slice()),t["node.x"].push(a.node.x.slice()),t["node.y"].push(a.node.y.slice())}n.call("restyle",e,t)}},u.toggleHover={name:"toggleHover",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var r=p(e,t);r.hovermode=v(e),n.call("_guiRelayout",e,r)}},u.resetViews={name:"resetViews",title:function(e){return c(e,"Reset views")},icon:o.home,click:function(e,t){var r=t.currentTarget;r.setAttribute("data-attr","zoom"),r.setAttribute("data-val","reset"),f(e,t),r.setAttribute("data-attr","resetLastSave"),h(e,t),x(e,"geo"),x(e,"mapbox")}},u.toggleSpikelines={name:"toggleSpikelines",title:function(e){return c(e,"Toggle Spike Lines")},icon:o.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,r=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled="on"===r?"off":"on",n.call("_guiRelayout",e,function(e){for(var t="on"===e._fullLayout._cartesianSpikesEnabled,r=i.list(e,null,!0),n={},a=0;a<r.length;a++){var o=r[a];n[o._name+".showspikes"]=!!t||o._showSpikeInitial}return n}(e))}},u.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(e){return c(e,"Reset view")},attr:"reset",icon:o.home,click:function(e){x(e,"mapbox")}},u.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:m},u.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:m}},76052:function(e,t,r){"use strict";var n=r(44248),a=Object.keys(n),i=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],o=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(i),l=[];a.forEach(function(e){!function(e){if(-1===o.indexOf(e._cat||e.name)){var t=e.name,r=(e._cat||e.name).toLowerCase();-1===l.indexOf(t)&&l.push(t),-1===l.indexOf(r)&&l.push(r)}}(n[e])}),l.sort(),e.exports={DRAW_MODES:i,backButtons:o,foreButtons:l}},90824:function(e,t,r){"use strict";var n=r(3400),a=r(76308),i=r(31780),o=r(66540);e.exports=function(e,t){var r=e.modebar||{},l=i.newContainer(t,"modebar");function s(e,t){return n.coerce(r,l,o,e,t)}s("orientation"),s("bgcolor",a.addOpacity(t.paper_bgcolor,.5));var c=a.contrast(a.rgb(t.modebar.bgcolor));s("color",a.addOpacity(c,.3)),s("activecolor",a.addOpacity(c,.7)),s("uirevision",t.uirevision),s("add"),s("remove")}},45460:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"modebar",layoutAttributes:r(66540),supplyLayoutDefaults:r(90824),manage:r(18816)}},18816:function(e,t,r){"use strict";var n=r(79811),a=r(43028),i=r(24040),o=r(10624).isUnifiedHover,l=r(66400),s=r(44248),c=r(76052).DRAW_MODES,u=r(3400).extendDeep;e.exports=function(e){var t=e._fullLayout,r=e._context,f=t._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var d,h=r.modeBarButtons;d=Array.isArray(h)&&h.length?function(e){for(var t=u([],e),r=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;a++){var i=n[a];if("string"==typeof i){if(void 0===s[i])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));t[r][a]=s[i]}}return t}(h):!r.displayModeBar&&r.watermark?[]:function(e){var t=e._fullLayout,r=e._fullData,l=e._context;function u(e,t){if("string"==typeof t){if(t.toLowerCase()===e.toLowerCase())return!0}else{var r=t.name,n=t._cat||t.name;if(r===e||n===e.toLowerCase())return!0}return!1}var f=t.modebar.add;"string"==typeof f&&(f=[f]);var d=t.modebar.remove;"string"==typeof d&&(d=[d]);var h=l.modeBarButtonsToAdd.concat(f.filter(function(e){for(var t=0;t<l.modeBarButtonsToRemove.length;t++)if(u(e,l.modeBarButtonsToRemove[t]))return!1;return!0})),p=l.modeBarButtonsToRemove.concat(d.filter(function(e){for(var t=0;t<l.modeBarButtonsToAdd.length;t++)if(u(e,l.modeBarButtonsToAdd[t]))return!1;return!0})),y=t._has("cartesian"),v=t._has("gl3d"),g=t._has("geo"),m=t._has("pie"),x=t._has("funnelarea"),b=t._has("gl2d"),_=t._has("ternary"),w=t._has("mapbox"),k=t._has("polar"),T=t._has("smith"),M=t._has("sankey"),A=function(e){for(var t=n.list({_fullLayout:e},null,!0),r=0;r<t.length;r++)if(!t[r].fixedrange)return!1;return!0}(t),S=o(t.hovermode),L=[];function O(e){if(e.length){for(var t=[],r=0;r<e.length;r++){for(var n=e[r],a=s[n],i=a.name.toLowerCase(),o=(a._cat||a.name).toLowerCase(),l=!1,c=0;c<p.length;c++){var u=p[c].toLowerCase();if(u===i||u===o){l=!0;break}}l||t.push(s[n])}L.push(t)}}var C=["toImage"];l.showEditInChartStudio?C.push("editInChartStudio"):l.showSendToCloud&&C.push("sendDataToCloud");O(C);var D=[],P=[],E=[],R=[];(y||b||m||x||_)+g+v+w+k+T>1?(P=["toggleHover"],E=["resetViews"]):g?(D=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],E=["resetGeo"]):v?(P=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(D=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],E=["resetViewMapbox"]):b?P=["hoverClosestGl2d"]:m?P=["hoverClosestPie"]:M?(P=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):P=["toggleHover"];y&&(P=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]);(function(e){for(var t=0;t<e.length;t++)if(!i.traceIs(e[t],"noHover"))return!1;return!0}(r)||S)&&(P=[]);!y&&!b||A||(D=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==E[0]&&(E=["resetScale2d"]));v?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:(y||b)&&!A||_?R=["zoom2d","pan2d"]:w||g?R=["pan2d"]:k&&(R=["zoom2d"]);(function(e){for(var t=!1,r=0;r<e.length&&!t;r++){var n=e[r];n._module&&n._module.selectPoints&&(i.traceIs(n,"scatter-like")?(a.hasMarkers(n)||a.hasText(n))&&(t=!0):i.traceIs(n,"box-violin")&&"all"!==n.boxpoints&&"all"!==n.points||(t=!0))}return t})(r)&&R.push("select2d","lasso2d");var I=[],z=function(e){-1===I.indexOf(e)&&-1!==P.indexOf(e)&&I.push(e)};if(Array.isArray(h)){for(var N=[],F=0;F<h.length;F++){var j=h[F];"string"==typeof j?(j=j.toLowerCase(),-1!==c.indexOf(j)?(t._has("mapbox")||t._has("cartesian"))&&R.push(j):"togglespikelines"===j?z("toggleSpikelines"):"togglehover"===j?z("toggleHover"):"hovercompare"===j?z("hoverCompareCartesian"):"hoverclosest"===j?(z("hoverClosestCartesian"),z("hoverClosestGeo"),z("hoverClosest3d"),z("hoverClosestGl2d"),z("hoverClosestPie")):"v1hovermode"===j&&(z("toggleHover"),z("hoverClosestCartesian"),z("hoverCompareCartesian"),z("hoverClosestGeo"),z("hoverClosest3d"),z("hoverClosestGl2d"),z("hoverClosestPie"))):N.push(j)}h=N}return O(R),O(D.concat(E)),O(I),function(e,t){if(t.length)if(Array.isArray(t[0]))for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t);return e}(L,h)}(e),f?f.update(e,d):t._modeBar=l(e,d)}else f&&(f.destroy(),delete t._modeBar)}},66400:function(e,t,r){"use strict";var n=r(33428),a=r(38248),i=r(3400),o=r(9224),l=r(25788).version,s=new DOMParser;function c(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var u=c.prototype;u.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar","hover"===r.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===n.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var o=n.modebar,l="hover"===r.displayModeBar?".js-plotly-plot .plotly:hover ":"";i.deleteRelatedStyleRule(a),i.addRelatedStyleRule(a,l+"#"+a+" .modebar-group","background-color: "+o.bgcolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn .icon path","fill: "+o.color),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn:hover .icon path","fill: "+o.activecolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn.active .icon path","fill: "+o.activecolor);var s=!this.hasButtons(t),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||c||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),"v"===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},u.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(e){var r=t.createGroup();e.forEach(function(e){var n=e.name;if(!n)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(n))throw new Error("button name '"+n+"' is taken");t.buttonsNames.push(n);var a=t.createButton(e);t.buttonElements.push(a),r.appendChild(a)}),t.element.appendChild(r)})},u.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},u.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var a=e.title;void 0===a?a=e.name:"function"==typeof a&&(a=a(this.graphInfo)),(a||0===a)&&r.setAttribute("data-title",a),void 0!==e.attr&&r.setAttribute("data-attr",e.attr);var i=e.val;if(void 0!==i&&("function"==typeof i&&(i=i(this.graphInfo)),r.setAttribute("data-val",i)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(r){e.click(t.graphInfo,r),t.updateActiveButton(r.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&n.select(r).classed("active",!0);var l=e.icon;return"function"==typeof l?r.appendChild(l()):r.appendChild(this.createIcon(l||o.question)),r.setAttribute("data-gravity",e.gravity||"n"),r},u.createIcon=function(e){var t,r=a(e.height)?Number(e.height):e.ascent-e.descent,n="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(n,"svg")).setAttribute("viewBox",[0,0,e.width,r].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(n,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):void 0!==e.ascent&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),t.appendChild(i)}e.svg&&(t=s.parseFromString(e.svg,"application/xml").childNodes[0]);return t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},u.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(e){var a=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=n.select(e);if(l)o===r&&s.classed("active",!s.classed("active"));else{var c=null===o?o:i.nestedProperty(t,o).get();s.classed("active",c===a)}})},u.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r){if(e[r].length!==t[r].length)return!1;for(var n=0;n<e[r].length;n++)if(e[r][n].name!==t[r][n].name)return!1}return!0},u.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",i._(this.graphInfo,"Produced with Plotly.js")+" (v"+l+")"),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(o.newplotlylogo)),e.appendChild(t),e},u.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},u.destroy=function(){i.removeElement(this.container.querySelector(".modebar")),i.deleteRelatedStyleRule(this._uid)},e.exports=function(e,t){var r=e._fullLayout,a=new c({graphInfo:e,container:r._modebardiv.node(),buttons:t});return r._privateplot&&n.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}},26680:function(e,t,r){"use strict";var n=r(25376),a=r(22548),i=(0,r(31780).templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});e.exports={visible:{valType:"boolean",editType:"plot"},buttons:i,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:n({editType:"plot"}),bgcolor:{valType:"color",dflt:a.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},85984:function(e){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},22148:function(e,t,r){"use strict";var n=r(3400),a=r(76308),i=r(31780),o=r(51272),l=r(26680),s=r(85984);function c(e,t,r,a){var i=a.calendar;function o(r,a){return n.coerce(e,t,l.buttons,r,a)}if(o("visible")){var s=o("step");"all"!==s&&(!i||"gregorian"===i||"month"!==s&&"year"!==s?o("stepmode"):t.stepmode="backward",o("count")),o("label")}}e.exports=function(e,t,r,u,f){var d=e.rangeselector||{},h=i.newContainer(t,"rangeselector");function p(e,t){return n.coerce(d,h,l,e,t)}if(p("visible",o(d,h,{name:"buttons",handleItemDefaults:c,calendar:f}).length>0)){var y=function(e,t,r){for(var n=r.filter(function(r){return t[r].anchor===e._id}),a=0,i=0;i<n.length;i++){var o=t[n[i]].domain;o&&(a=Math.max(o[1],a))}return[e.domain[0],a+s.yPad]}(t,r,u);p("x",y[0]),p("y",y[1]),n.noneOrAll(e,t,["x","y"]),p("xanchor"),p("yanchor"),n.coerceFont(p,"font",r.font);var v=p("bgcolor");p("activecolor",a.contrast(v,s.lightAmount,s.darkAmount)),p("bordercolor"),p("borderwidth")}}},50216:function(e,t,r){"use strict";var n=r(33428),a=r(24040),i=r(7316),o=r(76308),l=r(43616),s=r(3400),c=s.strTranslate,u=r(72736),f=r(79811),d=r(84284),h=d.LINE_SPACING,p=d.FROM_TL,y=d.FROM_BR,v=r(85984),g=r(48040);function m(e){return e._id}function x(e,t,r){var n=s.ensureSingle(e,"rect","selector-rect",function(e){e.attr("shape-rendering","crispEdges")});n.attr({rx:v.rx,ry:v.ry}),n.call(o.stroke,t.bordercolor).call(o.fill,function(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}(t,r)).style("stroke-width",t.borderwidth+"px")}function b(e,t,r,n){s.ensureSingle(e,"text","selector-text",function(e){e.attr("text-anchor","middle")}).call(l.font,t.font).text(function(e,t){if(e.label)return t?s.templateString(e.label,t):e.label;return"all"===e.step?"all":e.count+e.step.charAt(0)}(r,n._fullLayout._meta)).call(function(e){u.convertToTspans(e,n)})}e.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=f.list(e,"x",!0),r=[],n=0;n<t.length;n++){var a=t[n];a.rangeselector&&a.rangeselector.visible&&r.push(a)}return r}(e),m);t.enter().append("g").classed("rangeselector",!0),t.exit().remove(),t.style({cursor:"pointer","pointer-events":"all"}),t.each(function(t){var r=n.select(this),o=t,f=o.rangeselector,d=r.selectAll("g.button").data(s.filterVisible(f.buttons));d.enter().append("g").classed("button",!0),d.exit().remove(),d.each(function(t){var r=n.select(this),i=g(o,t);t._isActive=function(e,t,r){if("all"===t.step)return!0===e.autorange;var n=Object.keys(r);return e.range[0]===r[n[0]]&&e.range[1]===r[n[1]]}(o,t,i),r.call(x,f,t),r.call(b,f,t,e),r.on("click",function(){e._dragged||a.call("_guiRelayout",e,i)}),r.on("mouseover",function(){t._isHovered=!0,r.call(x,f,t)}),r.on("mouseout",function(){t._isHovered=!1,r.call(x,f,t)})}),function(e,t,r,a,o){var f=0,d=0,g=r.borderwidth;t.each(function(){var e=n.select(this),t=e.select(".selector-text"),a=r.font.size*h,i=Math.max(a*u.lineCount(t),16)+3;d=Math.max(d,i)}),t.each(function(){var e=n.select(this),t=e.select(".selector-rect"),a=e.select(".selector-text"),i=a.node()&&l.bBox(a.node()).width,o=r.font.size*h,s=u.lineCount(a),p=Math.max(i+10,v.minButtonWidth);e.attr("transform",c(g+f,g)),t.attr({x:0,y:0,width:p,height:d}),u.positionText(a,p/2,d/2-(s-1)*o/2+3),f+=p+5});var m=e._fullLayout._size,x=m.l+m.w*r.x,b=m.t+m.h*(1-r.y),_="left";s.isRightAnchor(r)&&(x-=f,_="right");s.isCenterAnchor(r)&&(x-=f/2,_="center");var w="top";s.isBottomAnchor(r)&&(b-=d,w="bottom");s.isMiddleAnchor(r)&&(b-=d/2,w="middle");f=Math.ceil(f),d=Math.ceil(d),x=Math.round(x),b=Math.round(b),i.autoMargin(e,a+"-range-selector",{x:r.x,y:r.y,l:f*p[_],r:f*y[_],b:d*y[w],t:d*p[w]}),o.attr("transform",c(x,b))}(e,d,f,o._name,r)})}},48040:function(e,t,r){"use strict";var n=r(73220),a=r(3400).titleCase;e.exports=function(e,t){var r=e._name,i={};if("all"===t.step)i[r+".autorange"]=!0;else{var o=function(e,t){var r,i=e.range,o=new Date(e.r2l(i[1])),l=t.step,s=n["utc"+a(l)],c=t.count;switch(t.stepmode){case"backward":r=e.l2r(+s.offset(o,-c));break;case"todate":var u=s.offset(o,-c);r=e.l2r(+s.ceil(u))}var f=i[1];return[r,f]}(e,t);i[r+".range[0]"]=o[0],i[r+".range[1]"]=o[1]}return i}},41152:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:r(26680)}}},layoutAttributes:r(26680),handleDefaults:r(22148),draw:r(50216)}},11200:function(e,t,r){"use strict";var n=r(22548);e.exports={bgcolor:{valType:"color",dflt:n.background,editType:"plot"},bordercolor:{valType:"color",dflt:n.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},26652:function(e,t,r){"use strict";var n=r(79811).list,a=r(19280).getAutoRange,i=r(74636);e.exports=function(e){for(var t=n(e,"x",!0),r=0;r<t.length;r++){var o=t[r],l=o[i.name];l&&l.visible&&l.autorange&&(l._input.autorange=!0,l._input.range=l.range=a(e,o))}}},74636:function(e){"use strict";e.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},94040:function(e,t,r){"use strict";var n=r(3400),a=r(31780),i=r(79811),o=r(11200),l=r(10936);e.exports=function(e,t,r){var s=e[r],c=t[r];if(s.rangeslider||t._requestRangeslider[c._id]){n.isPlainObject(s.rangeslider)||(s.rangeslider={});var u,f,d=s.rangeslider,h=a.newContainer(c,"rangeslider");if(_("visible")){_("bgcolor",t.plot_bgcolor),_("bordercolor"),_("borderwidth"),_("thickness"),_("autorange",!c.isValidRange(d.range)),_("range");var p=t._subplots;if(p)for(var y=p.cartesian.filter(function(e){return e.substr(0,e.indexOf("y"))===i.name2id(r)}).map(function(e){return e.substr(e.indexOf("y"),e.length)}),v=n.simpleMap(y,i.id2name),g=0;g<v.length;g++){var m=v[g];u=d[m]||{},f=a.newContainer(h,m,"yaxis");var x,b=t[m];u.range&&b.isValidRange(u.range)&&(x="fixed"),"match"!==w("rangemode",x)&&w("range",b.range.slice())}h._input=d}}function _(e,t){return n.coerce(d,h,o,e,t)}function w(e,t){return n.coerce(u,f,l,e,t)}}},20060:function(e,t,r){"use strict";var n=r(33428),a=r(24040),i=r(7316),o=r(3400),l=o.strTranslate,s=r(43616),c=r(76308),u=r(81668),f=r(57952),d=r(79811),h=r(86476),p=r(93972),y=r(74636);function v(e){return"number"==typeof e.clientX?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function g(e,t,r,n){var a=o.ensureSingle(e,"rect",y.bgClassName,function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,u=-n._offsetShift,f=s.crispRound(t,n.borderwidth);a.attr({width:n._width+i,height:n._height+i,transform:l(u,u),"stroke-width":f}).call(c.stroke,n.bordercolor).call(c.fill,n.bgcolor)}function m(e,t,r,n){var a=t._fullLayout;o.ensureSingleById(a._topdefs,"clipPath",n._clipId,function(e){e.append("rect").attr({x:0,y:0})}).select("rect").attr({width:n._width,height:n._height})}function x(e,t,r,a){var l,c=t.calcdata,u=e.selectAll("g."+y.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append("g").attr("class",function(e){return y.rangePlotClassName+" "+e}).call(s.setClipUrl,a._clipId,t),u.order(),u.exit().remove(),u.each(function(e,o){var s=n.select(this),u=0===o,h=d.getFromId(t,e,"y"),p=h._name,y=a[p],v={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:a.range.slice(),calendar:r.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(v.layout.xaxis.rangebreaks=r.rangebreaks),v.layout[p]={type:h.type,domain:[0,1],range:"match"!==y.rangemode?y.range.slice():h.range.slice(),calendar:h.calendar},h.rangebreaks&&(v.layout[p].rangebreaks=h.rangebreaks),i.supplyDefaults(v);var g=v._fullLayout.xaxis,m=v._fullLayout[p];g.clearCalc(),g.setScale(),m.clearCalc(),m.setScale();var x={id:e,plotgroup:s,xaxis:g,yaxis:m,isRangePlot:!0};u?l=x:(x.mainplot="xy",x.mainplotinfo=l),f.rangePlot(t,x,function(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n],i=a[0].trace;i.xaxis+i.yaxis===t&&r.push(a)}return r}(c,e))})}function b(e,t,r,n,a){(o.ensureSingle(e,"rect",y.maskMinClassName,function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})}).attr("height",n._height).call(c.fill,y.maskColor),o.ensureSingle(e,"rect",y.maskMaxClassName,function(e){e.attr({y:0,"shape-rendering":"crispEdges"})}).attr("height",n._height).call(c.fill,y.maskColor),"match"!==a.rangemode)&&(o.ensureSingle(e,"rect",y.maskMinOppAxisClassName,function(e){e.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",n._width).call(c.fill,y.maskOppAxisColor),o.ensureSingle(e,"rect",y.maskMaxOppAxisClassName,function(e){e.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",n._width).style("border-top",y.maskOppBorder).call(c.fill,y.maskOppAxisColor))}function _(e,t,r,n){t._context.staticPlot||o.ensureSingle(e,"rect",y.slideBoxClassName,function(e){e.attr({y:0,cursor:y.slideBoxCursor,"shape-rendering":"crispEdges"})}).attr({height:n._height,fill:y.slideBoxFill})}function w(e,t,r,n){var a=o.ensureSingle(e,"g",y.grabberMinClassName),i=o.ensureSingle(e,"g",y.grabberMaxClassName),l={x:0,width:y.handleWidth,rx:y.handleRadius,fill:c.background,stroke:c.defaultLine,"stroke-width":y.handleStrokeWidth,"shape-rendering":"crispEdges"},s={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(a,"rect",y.handleMinClassName,function(e){e.attr(l)}).attr(s),o.ensureSingle(i,"rect",y.handleMaxClassName,function(e){e.attr(l)}).attr(s);var u={width:y.grabAreaWidth,x:0,y:0,fill:y.grabAreaFill,cursor:t._context.staticPlot?void 0:y.grabAreaCursor};o.ensureSingle(a,"rect",y.grabAreaMinClassName,function(e){e.attr(u)}).attr("height",n._height),o.ensureSingle(i,"rect",y.grabAreaMaxClassName,function(e){e.attr(u)}).attr("height",n._height)}e.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i<r.length;i++){var s=r[i][y.name];s._clipId=s._id+"-"+t._uid}var c=t._infolayer.selectAll("g."+y.containerClassName).data(r,function(e){return e._name});c.exit().each(function(e){var r=e[y.name];t._topdefs.select("#"+r._clipId).remove()}).remove(),0!==r.length&&(c.enter().append("g").classed(y.containerClassName,!0).attr("pointer-events","all"),c.each(function(r){var i=n.select(this),s=r[y.name],c=t[d.id2name(r.anchor)],f=s[d.id2name(r.anchor)];if(s.range){var k,T=o.simpleMap(s.range,r.r2l),M=o.simpleMap(r.range,r.r2l);k=M[0]<M[1]?[Math.min(T[0],M[0]),Math.max(T[1],M[1])]:[Math.max(T[0],M[0]),Math.min(T[1],M[1])],s.range=s._input.range=o.simpleMap(k,r.l2r)}r.cleanRange("rangeslider.range");var A=t._size,S=r.domain;s._width=A.w*(S[1]-S[0]);var L=Math.round(A.l+A.w*S[0]),O=Math.round(A.t+A.h*(1-r._counterDomainMin)+("bottom"===r.side?r._depth:0)+s._offsetShift+y.extraPad);i.attr("transform",l(L,O)),s._rl=o.simpleMap(s.range,r.r2l);var C=s._rl[0],D=s._rl[1],P=D-C;if(s.p2d=function(e){return e/s._width*P+C},s.d2p=function(e){return(e-C)/P*s._width},r.rangebreaks){var E=r.locateBreaks(C,D);if(E.length){var R,I,z=0;for(R=0;R<E.length;R++)z+=(I=E[R]).max-I.min;var N=s._width/(D-C-z),F=[-N*C];for(R=0;R<E.length;R++)I=E[R],F.push(F[F.length-1]-N*(I.max-I.min));for(s.d2p=function(e){for(var t=F[0],r=0;r<E.length;r++){var n=E[r];if(e>=n.max)t=F[r+1];else if(e<n.min)break}return t+N*e},R=0;R<E.length;R++)(I=E[R]).pmin=s.d2p(I.min),I.pmax=s.d2p(I.max);s.p2d=function(e){for(var t=F[0],r=0;r<E.length;r++){var n=E[r];if(e>=n.pmax)t=F[r+1];else if(e<n.pmin)break}return(e-t)/N}}}if("match"!==f.rangemode){var j=c.r2l(f.range[0]),B=c.r2l(f.range[1])-j;s.d2pOppAxis=function(e){return(e-j)/B*s._height}}i.call(g,e,r,s).call(m,e,r,s).call(x,e,r,s).call(b,e,r,s,f).call(_,e,r,s).call(w,e,r,s),function(e,t,r,i){if(t._context.staticPlot)return;var l=e.select("rect."+y.slideBoxClassName).node(),s=e.select("rect."+y.grabAreaMinClassName).node(),c=e.select("rect."+y.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,d=v(u),y=d-e.node().getBoundingClientRect().left,g=i.d2p(r._rl[0]),m=i.d2p(r._rl[1]),x=h.coverSlip();function b(e){var u,h,b,_=v(e),w=+_-d;switch(f){case l:if(b="ew-resize",g+w>r._length||m+w<0)return;u=g+w,h=m+w;break;case s:if(b="col-resize",g+w>r._length)return;u=g+w,h=m;break;case c:if(b="col-resize",m+w<0)return;u=g,h=m+w;break;default:b="ew-resize",u=y,h=y+w}if(h<u){var k=h;h=u,u=k}i._pixelMin=u,i._pixelMax=h,p(n.select(x),b),function(e,t,r,n){function i(e){return r.l2r(o.constrain(e,n._rl[0],n._rl[1]))}var l=i(n.p2d(n._pixelMin)),s=i(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){a.call("_guiRelayout",t,r._name+".range",[l,s])})}(0,t,r,i)}function _(){x.removeEventListener("mousemove",b),x.removeEventListener("mouseup",_),this.removeEventListener("touchmove",b),this.removeEventListener("touchend",_),o.removeElement(x)}this.addEventListener("touchmove",b),this.addEventListener("touchend",_),x.addEventListener("mousemove",b),x.addEventListener("mouseup",_)}e.on("mousedown",u),e.on("touchstart",u)}(i,e,r,s),function(e,t,r,n,a,i){var s=y.handleWidth/2;function c(e){return o.constrain(e,0,n._width)}function u(e){return o.constrain(e,0,n._height)}function f(e){return o.constrain(e,-s,n._width+s)}var d=c(n.d2p(r._rl[0])),h=c(n.d2p(r._rl[1]));if(e.select("rect."+y.slideBoxClassName).attr("x",d).attr("width",h-d),e.select("rect."+y.maskMinClassName).attr("width",d),e.select("rect."+y.maskMaxClassName).attr("x",h).attr("width",n._width-h),"match"!==i.rangemode){var p=n._height-u(n.d2pOppAxis(a._rl[1])),v=n._height-u(n.d2pOppAxis(a._rl[0]));e.select("rect."+y.maskMinOppAxisClassName).attr("x",d).attr("height",p).attr("width",h-d),e.select("rect."+y.maskMaxOppAxisClassName).attr("x",d).attr("y",v).attr("height",n._height-v).attr("width",h-d),e.select("rect."+y.slideBoxClassName).attr("y",p).attr("height",v-p)}var g=Math.round(f(d-s))-.5,m=Math.round(f(h-s))+.5;e.select("g."+y.grabberMinClassName).attr("transform",l(g,.5)),e.select("g."+y.grabberMaxClassName).attr("transform",l(m,.5))}(i,0,r,s,c,f),"bottom"===r.side&&u.draw(e,r._id+"title",{propContainer:r,propName:r._name+".title",placeholder:t._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:O+s._height+s._offsetShift+10+1.5*r.title.font.size,"text-anchor":"middle"}})}))}},97944:function(e,t,r){"use strict";var n=r(79811),a=r(72736),i=r(74636),o=r(84284).LINE_SPACING,l=i.name;function s(e){var t=e&&e[l];return t&&t.visible}t.isVisible=s,t.makeData=function(e){var t=n.list({_fullLayout:e},"x",!0),r=e.margin,a=[];if(!e._has("gl2d"))for(var i=0;i<t.length;i++){var o=t[i];if(s(o)){a.push(o);var c=o[l];c._id=l+o._id,c._height=(e.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}e._rangeSliderData=a},t.autoMarginOpts=function(e,t){var r=e._fullLayout,n=t[l],s=t._id.charAt(0),c=0,u=0;"bottom"===t.side&&(c=t._depth,t.title.text!==r._dfltTitle[s]&&(u=1.5*t.title.font.size+10+n._offsetShift,u+=(t.title.text.match(a.BR_TAG_ALL)||[]).length*t.title.font.size*o));return{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:i.extraPad+2*n._offsetShift}}},49692:function(e,t,r){"use strict";var n=r(3400),a=r(11200),i=r(10936),o=r(97944);e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},a,{yaxis:i})}}},layoutAttributes:r(11200),handleDefaults:r(94040),calcAutorange:r(26652),draw:r(20060),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},10936:function(e){"use strict";e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},93956:function(e,t,r){"use strict";var n=r(13916),a=r(52904).line,i=r(98192).u,o=r(92880).extendFlat,l=r(67824).overrideAll,s=r(31780).templatedArray;r(36208);e.exports=l(s("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:o({},n.xref,{}),yref:o({},n.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:a.color,width:o({},a.width,{min:1,dflt:1}),dash:o({},i,{dflt:"dot"})}}),"arraydraw","from-root")},83280:function(e){"use strict";e.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},74224:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(51272),o=r(93956),l=r(65152);function s(e,t,r){function i(r,a){return n.coerce(e,t,o,r,a)}var s=i("path"),c="path"!==i("type",s?"path":"rect");c&&delete t.path,i("opacity"),i("line.color"),i("line.width"),i("line.dash");for(var u=["x","y"],f=0;f<2;f++){var d,h,p,y=u[f],v={_fullLayout:r},g=a.coerceRef(e,t,v,y);if((d=a.getFromId(v,g))._selectionIndices.push(t._index),p=l.rangeToShapePosition(d),h=l.shapePositionToRange(d),c){var m=y+"0",x=y+"1",b=e[m],_=e[x];e[m]=h(e[m],!0),e[x]=h(e[x],!0),a.coercePosition(t,v,i,g,m),a.coercePosition(t,v,i,g,x);var w=t[m],k=t[x];void 0!==w&&void 0!==k&&(t[m]=p(w),t[x]=p(k),e[m]=b,e[x]=_)}}c&&n.noneOrAll(e,t,["x0","x1","y0","y1"])}e.exports=function(e,t){i(e,t,{name:"selections",handleItemDefaults:s});for(var r=t.selections,n=0;n<r.length;n++){var a=r[n];a&&(void 0===a.path&&(void 0!==a.x0&&void 0!==a.x1&&void 0!==a.y0&&void 0!==a.y1||(t.selections[n]=null)))}}},23640:function(e,t,r){"use strict";var n=r(9856).readPaths,a=r(55496),i=r(1936).clearOutlineControllers,o=r(76308),l=r(43616),s=r(31780).arrayEditor,c=r(65152),u=c.getPathString;function f(e){var t=e._fullLayout;for(var r in i(e),t._selectionLayer.selectAll("path").remove(),t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a<t.selections.length;a++)h(e,a)}function d(e){return e._context.editSelection}function h(e,t){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+t+'"]').remove();var r=c.makeSelectionsOptionsAndPlotinfo(e,t),i=r.options,h=r.plotinfo;i._input&&function(r){var c=u(e,i),v={"data-index":t,"fill-rule":"evenodd",d:c},g=i.opacity,m="rgba(0,0,0,0)",x=i.line.color||o.contrast(e._fullLayout.plot_bgcolor),b=i.line.width,_=i.line.dash;b||(b=5,_="solid");var w=d(e)&&e._fullLayout._activeSelectionIndex===t;w&&(m=e._fullLayout.activeselection.fillcolor,g=e._fullLayout.activeselection.opacity);for(var k=[],T=1;T>=0;T--){var M=r.append("path").attr(v).style("opacity",T?.1:g).call(o.stroke,x).call(o.fill,m).call(l.dashLine,T?"solid":_,T?4+b:b);if(p(M,e,i),w){var A=s(e.layout,"selections",i);M.style({cursor:"move"});var S={element:M.node(),plotinfo:h,gd:e,editHelpers:A,isActiveSelection:!0},L=n(c,e);a(L,M,S)}else M.style("pointer-events",T?"all":"none");k[T]=M}var O=k[0];k[1].node().addEventListener("click",function(){return function(e,t){if(!d(e))return;var r=+t.node().getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeSelectionIndex)return void y(e);e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=y,f(e)}}(e,O)})}(e._fullLayout._selectionLayer)}function p(e,t,r){var n=r.xref+r.yref;l.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function y(e){d(e)&&(e._fullLayout._activeSelectionIndex>=0&&(i(e),delete e._fullLayout._activeSelectionIndex,f(e)))}e.exports={draw:f,drawOne:h,activateLastSelection:function(e){if(!d(e))return;var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=y,f(e)}}},34200:function(e,t,r){"use strict";var n=r(98192).u,a=r(92880).extendFlat;e.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:a({},n,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(e){"use strict";e.exports=function(e,t,r){r("newselection.mode"),r("newselection.line.width")&&(r("newselection.line.color"),r("newselection.line.dash")),r("activeselection.fillcolor"),r("activeselection.opacity")}},5968:function(e,t,r){"use strict";var n=r(72760).selectMode,a=r(1936).clearOutline,i=r(9856),o=i.readPaths,l=i.writePaths,s=i.fixDatesForPaths;e.exports=function(e,t){if(e.length){var r=e[0][0];if(r){var i=r.getAttribute("d"),c=t.gd,u=c._fullLayout.newselection,f=t.plotinfo,d=f.xaxis,h=f.yaxis,p=t.isActiveSelection,y=t.dragmode,v=(c.layout||{}).selections||[];if(!n(y)&&void 0!==p){var g=c._fullLayout._activeSelectionIndex;if(g<v.length)switch(c._fullLayout.selections[g].type){case"rect":y="select";break;case"path":y="lasso"}}var m,x=o(i,c,f,p),b={xref:d._id,yref:h._id,opacity:u.opacity,line:{color:u.line.color,width:u.line.width,dash:u.line.dash}};1===x.length&&(m=x[0]),m&&5===m.length&&"select"===y?(b.type="rect",b.x0=m[0][1],b.y0=m[0][2],b.x1=m[2][1],b.y1=m[2][2]):(b.type="path",d&&h&&s(x,d,h),b.path=l(x),m=null),a(c);for(var _=t.editHelpers,w=(_||{}).modifyItem,k=[],T=0;T<v.length;T++){var M=c._fullLayout.selections[T];if(M){if(k[T]=M._input,void 0!==p&&T===c._fullLayout._activeSelectionIndex){var A=b;switch(M.type){case"rect":w("x0",A.x0),w("x1",A.x1),w("y0",A.y0),w("y1",A.y1);break;case"path":w("path",A.path)}}}else k[T]=M}return void 0===p?(k.push(b),k):_?_.getUpdateObj():{}}}}},5840:function(e,t,r){"use strict";var n=r(3400).strTranslate;function a(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}e.exports={p2r:a,r2p:function(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}},axValue:function(e){var t="y"===e._id.charAt(0)?1:0;return function(r){return a(e,r[t])}},getTransform:function(e){return n(e.xaxis._offset,e.yaxis._offset)}}},22676:function(e,t,r){"use strict";var n=r(23640),a=r(43156);e.exports={moduleType:"component",name:"selections",layoutAttributes:r(93956),supplyLayoutDefaults:r(74224),supplyDrawNewSelectionDefaults:r(81004),includeBasePlot:r(36632)("selections"),draw:n.draw,drawOne:n.drawOne,reselect:a.reselect,prepSelect:a.prepSelect,clearOutline:a.clearOutline,clearSelectionsCache:a.clearSelectionsCache,selectOnClick:a.selectOnClick}},43156:function(e,t,r){"use strict";var n=r(14756),a=r(61456),i=r(24040),o=r(43616).dashStyle,l=r(76308),s=r(93024),c=r(10624).makeEventData,u=r(72760),f=u.freeMode,d=u.rectMode,h=u.drawMode,p=u.openMode,y=u.selectMode,v=r(65152),g=r(85448),m=r(55496),x=r(1936).clearOutline,b=r(9856),_=b.handleEllipse,w=b.readPaths,k=r(93940).newShapes,T=r(5968),M=r(23640).activateLastSelection,A=r(3400),S=A.sorterAsc,L=r(92065),O=r(91200),C=r(79811).getFromId,D=r(73696),P=r(39172).redrawReglTraces,E=r(83280),R=E.MINSELECT,I=L.filter,z=L.tester,N=r(5840),F=N.p2r,j=N.axValue,B=N.getTransform;function H(e){return void 0!==e.subplot}function U(e,t,r,n,a,i,o){var l,s,c,u,f,d,h,y,v,g=t._hoverdata,x=t._fullLayout.clickmode.indexOf("event")>-1,b=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(g)){G(e,t,i);var _=function(e,t){var r,n,a=e[0],i=-1,o=[];for(n=0;n<t.length;n++)if(r=t[n],a.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===a.hoverOnBox)break;void 0!==a.pointNumber?i=a.pointNumber:void 0!==a.binNumber&&(i=a.binNumber,o=a.pointNumbers);break}return{pointNumber:i,pointNumbers:o,searchInfo:r}}(g,l=J(t,r,n,a));if(_.pointNumbers.length>0?function(e,t){var r,n,a,i=[];for(a=0;a<e.length;a++)(r=e[a]).cd[0].trace.selectedpoints&&r.cd[0].trace.selectedpoints.length>0&&i.push(r);if(1===i.length&&i[0]===t.searchInfo&&(n=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(a=0;a<t.pointNumbers.length;a++)if(n.selectedpoints.indexOf(t.pointNumbers[a])<0)return!1;return!0}return!1}(l,_):function(e){var t,r,n,a=0;for(n=0;n<e.length;n++)if(t=e[n],(r=t.cd[0].trace).selectedpoints){if(r.selectedpoints.length>1)return!1;if((a+=r.selectedpoints.length)>1)return!1}return 1===a}(l)&&(d=K(_))){for(o&&o.remove(),v=0;v<l.length;v++)(s=l[v])._module.selectPoints(s,!1);$(t,l),Z(i),x&&de(t)}else{for(h=e.shiftKey&&(void 0!==d?d:K(_)),c=function(e,t,r){return{pointNumber:e,searchInfo:t,subtract:!!r}}(_.pointNumber,_.searchInfo,h),u=V(i.selectionDefs.concat([c])),v=0;v<l.length;v++)if(f=ee(l[v]._module.selectPoints(l[v],u),l[v]),b.length)for(var w=0;w<f.length;w++)b.push(f[w]);else b=f;if($(t,l,y={points:b}),c&&i&&i.selectionDefs.push(c),o){var k=i.mergedPolygons,T=p(i.dragmode);m(te(k,T),o,i)}x&&fe(t,y)}}}function q(e){return"pointNumber"in e&&"searchInfo"in e}function Y(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,r,n,a){var i=e.searchInfo.cd[0].trace._expandedIndex;return a.cd[0].trace._expandedIndex===i&&n===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function V(e){if(e.length){for(var t=[],r=q(e[0])?0:e[0][0][0],n=r,a=q(e[0])?0:e[0][0][1],i=a,o=0;o<e.length;o++)if(q(e[o]))t.push(Y(e[o]));else{var l=z(e[o]);l.subtract=!!e[o].subtract,t.push(l),r=Math.min(r,l.xmin),n=Math.max(n,l.xmax),a=Math.min(a,l.ymin),i=Math.max(i,l.ymax)}return{xmin:r,xmax:n,ymin:a,ymax:i,pts:[],contains:function(e,r,n,a){for(var i=!1,o=0;o<t.length;o++)t[o].contains(e,r,n,a)&&(i=!t[o].subtract);return i},isRect:!1,degenerate:!1}}}function G(e,t,r){var n=t._fullLayout,a=r.plotinfo,i=r.dragmode,o=n._lastSelectedSubplot&&n._lastSelectedSubplot===a.id,l=(e.shiftKey||e.altKey)&&!(h(i)&&p(i));o&&l&&a.selection&&a.selection.selectionDefs&&!r.selectionDefs?(r.selectionDefs=a.selection.selectionDefs,r.mergedPolygons=a.selection.mergedPolygons):l&&a.selection||Z(r),o||(x(t),n._lastSelectedSubplot=a.id)}function Z(e,t){var r=e.dragmode,n=e.plotinfo,a=e.gd;(function(e){return e._fullLayout._activeShapeIndex>=0})(a)&&a._fullLayout._deactivateShape(a),function(e){return e._fullLayout._activeSelectionIndex>=0}(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout._zoomlayer,l=h(r),s=y(r);if(l||s){var c,u,f=o.selectAll(".select-outline-"+n.id);if(f&&a._fullLayout._outlining)l&&(c=k(f,e)),c&&i.call("_guiRelayout",a,{shapes:c}),s&&!H(e)&&(u=T(f,e)),u&&(a._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",a,{selections:u}).then(function(){t&&M(a)})),a._fullLayout._outlining=!1}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function W(e){return e._id}function J(e,t,r,n){if(!e.calcdata)return[];var a,i,o,l=[],s=t.map(W),c=r.map(W);for(o=0;o<e.calcdata.length;o++)if(!0===(i=(a=e.calcdata[o])[0].trace).visible&&i._module&&i._module.selectPoints)if(!H({subplot:n})||i.subplot!==n&&i.geo!==n)if("splom"===i.type){if(i._xaxes[s[0]]&&i._yaxes[c[0]]){var u=X(i._module,a,t[0],r[0]);u.scene=e._fullLayout._splomScenes[i.uid],l.push(u)}}else if("sankey"===i.type){var f=X(i._module,a,t[0],r[0]);l.push(f)}else{if(!(-1!==s.indexOf(i.xaxis)||i._xA&&i._xA.overlaying))continue;if(!(-1!==c.indexOf(i.yaxis)||i._yA&&i._yA.overlaying))continue;l.push(X(i._module,a,C(e,i.xaxis),C(e,i.yaxis)))}else l.push(X(i._module,a,t[0],r[0]));return l}function X(e,t,r,n){return{_module:e,cd:t,xaxis:r,yaxis:n}}function K(e){var t=e.searchInfo.cd[0].trace,r=e.pointNumber,n=e.pointNumbers,a=n.length>0?n[0]:r;return!!t.selectedpoints&&t.selectedpoints.indexOf(a)>-1}function $(e,t,r){var n,a;for(n=0;n<t.length;n++){var o=t[n].cd[0].trace._fullInput,l=e._fullLayout._tracePreGUI[o.uid]||{};void 0===l.selectedpoints&&(l.selectedpoints=o._input.selectedpoints||null)}if(r){var s=r.points||[];for(n=0;n<t.length;n++)(a=t[n].cd[0].trace)._input.selectedpoints=a._fullInput.selectedpoints=[],a._fullInput!==a&&(a.selectedpoints=[]);for(var c=0;c<s.length;c++){var u=s[c],f=u.data,d=u.fullData,h=u.pointIndex,p=u.pointIndices;p?([].push.apply(f.selectedpoints,p),a._fullInput!==a&&[].push.apply(d.selectedpoints,p)):(f.selectedpoints.push(h),a._fullInput!==a&&d.selectedpoints.push(h))}}else for(n=0;n<t.length;n++)delete(a=t[n].cd[0].trace).selectedpoints,delete a._input.selectedpoints,a._fullInput!==a&&delete a._fullInput.selectedpoints;!function(e,t){for(var r=!1,n=0;n<t.length;n++){var a=t[n],o=a.cd;i.traceIs(o[0].trace,"regl")&&(r=!0);var l=a._module,s=l.styleOnSelect||l.style;s&&(s(e,o,o[0].node3),o[0].nodeRangePlot3&&s(e,o,o[0].nodeRangePlot3))}r&&(D(e),P(e))}(e,t)}function Q(e,t,r){for(var a=(r?n.difference:n.union)({regions:e},{regions:[t]}).regions.reverse(),i=0;i<a.length;i++){var o=a[i];o.subtract=le(o,a.slice(0,i))}return a}function ee(e,t){if(Array.isArray(e))for(var r=t.cd,n=t.cd[0].trace,a=0;a<e.length;a++)e[a]=c(e[a],n,r);return e}function te(e,t){for(var r=[],n=0;n<e.length;n++){r[n]=[];for(var a=0;a<e[n].length;a++){r[n][a]=[],r[n][a][0]=a?"L":"M";for(var i=0;i<e[n][a].length;i++)r[n][a].push(e[n][a][i])}t||r[n].push(["Z",r[n][0][1],r[n][0][2]])}return r}function re(e,t){for(var r,n,a=[],i=[],o=0;o<t.length;o++){var l=t[o];n=l._module.selectPoints(l,e),i.push(n),r=ee(n,l),a=a.concat(r)}return a}function ne(e,t,r,n,a){var i,o,l,s=!!n;a&&(i=a.plotinfo,o=a.xaxes[0]._id,l=a.yaxes[0]._id);var c=[],u=[],f=oe(e),d=e._fullLayout;if(i){var p=d._zoomlayer,v=d.dragmode,g=h(v),m=y(v);if(g||m){var x=C(e,o,"x"),b=C(e,l,"y");if(x&&b){var _=p.selectAll(".select-outline-"+i.id);if(_&&e._fullLayout._outlining&&_.length){for(var k=_[0][0].getAttribute("d"),T=w(k,e,i),M=[],A=0;A<T.length;A++){for(var S=T[A],L=[],O=0;O<S.length;O++)L.push([se(x,S[O][1]),se(b,S[O][2])]);L.xref=o,L.yref=l,L.subtract=le(L,M),M.push(L)}f=f.concat(M)}}}}var D=o&&l?[o+l]:d._subplots.cartesian;!function(e){var t=e.calcdata;if(!t)return;for(var r=0;r<t.length;r++){var n=t[r][0],a=n.trace,i=e._fullLayout._splomScenes;if(i){var o=i[a.uid];o&&(o.selectBatch=[])}}}(e);for(var P={},E=0;E<D.length;E++){var R=D[E],I=R.indexOf("y"),z=R.slice(0,I),N=R.slice(I),F=o&&l?r:void 0;if(F=ie(f,z,N,F)){var j=n;if(!s){var B=C(e,z,"x"),H=C(e,N,"y");j=J(e,[B],[H],R);for(var U=0;U<j.length;U++){var q=j[U],Y=q.cd[0],V=Y.trace;if("scattergl"===q._module.name&&!Y.t.xpx){var G=V.x,Z=V.y,W=V._length;Y.t.xpx=[],Y.t.ypx=[];for(var X=0;X<W;X++)Y.t.xpx[X]=B.c2p(G[X]),Y.t.ypx[X]=H.c2p(Z[X])}"splom"===q._module.name&&(P[V.uid]||(P[V.uid]=!0))}}var K=re(F,j);c=c.concat(K),u=u.concat(j)}}var Q={points:c};$(e,u,Q);var ee=d.clickmode.indexOf("event")>-1&&t;if(!i&&t){var te=oe(e,!0);if(te.length){var ne=te[0].xref,he=te[0].yref;if(ne&&he){var pe=ce(te);ue([C(e,ne,"x"),C(e,he,"y")])(Q,pe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ee&&fe(e,Q),d._reselect=!1}if(!i&&d._deselect){var ye=d._deselect;(function(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];if(a.xaxis&&a.xaxis._id===e&&a.yaxis&&a.yaxis._id===t)return!0}return!1})(o=ye.xref,l=ye.yref,u)||ae(e,o,l,n),ee&&(Q.points.length?fe(e,Q):de(e)),d._deselect=!1}return{eventData:Q,selectionTesters:r}}function ae(e,t,r,n){n=J(e,[C(e,t,"x")],[C(e,r,"y")],t+r);for(var a=0;a<n.length;a++){var i=n[a];i._module.selectPoints(i,!1)}$(e,n)}function ie(e,t,r,n){for(var a,i=0;i<e.length;i++){var o=e[i];if(t===o.xref&&r===o.yref)if(a)n=V(a=Q(a,o,!!o.subtract));else a=[o],n=z(o)}return n}function oe(e,t){for(var r=[],n=e._fullLayout,a=n.selections,i=a.length,o=0;o<i;o++)if(!t||o===n._activeSelectionIndex){var l=a[o];if(l){var s,c,u,f,d,h=l.xref,p=l.yref,y=C(e,h,"x"),m=C(e,p,"y");if("rect"===l.type){d=[];var x=se(y,l.x0),b=se(y,l.x1),_=se(m,l.y0),w=se(m,l.y1);d=[[x,_],[x,w],[b,w],[b,_]],s=Math.min(x,b),c=Math.max(x,b),u=Math.min(_,w),f=Math.max(_,w),d.xmin=s,d.xmax=c,d.ymin=u,d.ymax=f,d.xref=h,d.yref=p,d.subtract=!1,d.isRect=!0,r.push(d)}else if("path"===l.type)for(var k=l.path.split("Z"),T=[],M=0;M<k.length;M++){var A=k[M];if(A){A+="Z";var S=v.extractPathCoords(A,g.paramIsX,"raw"),L=v.extractPathCoords(A,g.paramIsY,"raw");s=1/0,c=-1/0,u=1/0,f=-1/0,d=[];for(var O=0;O<S.length;O++){var D=se(y,S[O]),P=se(m,L[O]);d.push([D,P]),s=Math.min(D,s),c=Math.max(D,c),u=Math.min(P,u),f=Math.max(P,f)}d.xmin=s,d.xmax=c,d.ymin=u,d.ymax=f,d.xref=h,d.yref=p,d.subtract=le(d,T),T.push(d),r.push(d)}}}}return r}function le(e,t){for(var r=!1,n=0;n<t.length;n++)for(var i=t[n],o=0;o<e.length;o++)if(a(e[o],i)){r=!r;break}return r}function se(e,t){return"date"===e.type&&(t=t.replace("_"," ")),"log"===e.type?e.c2p(t):e.r2p(t,null,e.calendar)}function ce(e){for(var t=e.length,r=[],n=0;n<t;n++){var a=e[n];r=(r=r.concat(a)).concat([a[0]])}return function(e){e.isRect=5===e.length&&e[0][0]===e[4][0]&&e[0][1]===e[4][1]&&e[0][0]===e[1][0]&&e[2][0]===e[3][0]&&e[0][1]===e[3][1]&&e[1][1]===e[2][1]||e[0][1]===e[1][1]&&e[2][1]===e[3][1]&&e[0][0]===e[3][0]&&e[1][0]===e[2][0],e.isRect&&(e.xmin=Math.min(e[0][0],e[2][0]),e.xmax=Math.max(e[0][0],e[2][0]),e.ymin=Math.min(e[0][1],e[2][1]),e.ymax=Math.max(e[0][1],e[2][1]));return e}(r)}function ue(e){return function(t,r){for(var n,a,i=0;i<e.length;i++){var o=e[i],l=o._id,s=l.charAt(0);if(r.isRect){n||(n={});var c=r[s+"min"],u=r[s+"max"];void 0!==c&&void 0!==u&&(n[l]=[F(o,c),F(o,u)].sort(S))}else a||(a={}),a[l]=r.map(j(o))}n&&(t.range=n),a&&(t.lassoPoints=a)}}function fe(e,t){t&&(t.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",t)}function de(e){e.emit("plotly_deselect",null)}e.exports={reselect:ne,prepSelect:function(e,t,r,n,a){var c=!H(n),u=f(a),v=d(a),g=p(a),x=h(a),b=y(a),w="drawcircle"===a,k="drawline"===a||w,T=n.gd,M=T._fullLayout,S=b&&"immediate"===M.newselection.mode&&c,L=M._zoomlayer,C=n.element.getBoundingClientRect(),D=n.plotinfo,P=B(D),N=t-C.left,F=r-C.top;M._calcInverseTransform(T);var j=A.apply3DTransform(M._invTransform)(N,F);N=j[0],F=j[1];var q,Y,W,X,K,ee,ie,oe=M._invScaleX,le=M._invScaleY,se=N,he=F,pe="M"+N+","+F,ye=n.xaxes[0],ve=n.yaxes[0],ge=ye._length,me=ve._length,xe=e.altKey&&!(h(a)&&g);G(e,T,n),u&&(q=I([[N,F]],E.BENDPX));var be=L.selectAll("path.select-outline-"+D.id).data([1]),_e=x?M.newshape:M.newselection;x&&(n.hasText=_e.label.text||_e.label.texttemplate);var we=x&&!g?_e.fillcolor:"rgba(0,0,0,0)",ke=_e.line.color||(c?l.contrast(T._fullLayout.plot_bgcolor):"#7f7f7f");be.enter().append("path").attr("class","select-outline select-outline-"+D.id).style({opacity:x?_e.opacity/2:1,"stroke-dasharray":o(_e.line.dash,_e.line.width),"stroke-width":_e.line.width+"px","shape-rendering":"crispEdges"}).call(l.stroke,ke).call(l.fill,we).attr("fill-rule","evenodd").classed("cursor-move",!!x).attr("transform",P).attr("d",pe+"Z");var Te=L.append("path").attr("class","zoombox-corners").style({fill:l.background,stroke:l.defaultLine,"stroke-width":1}).attr("transform",P).attr("d","M0,0Z");if(x&&n.hasText){var Me=L.select(".label-temp");Me.empty()&&(Me=L.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ae=M._uid+E.SELECTID,Se=[],Le=J(T,n.xaxes,n.yaxes,n.subplot);S&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(c){var e=ye._id,t=ve._id;ae(T,e,t,Le);for(var r=(T.layout||{}).selections||[],n=[],a=!1,o=0;o<r.length;o++){var l=M.selections[o];l.xref!==e||l.yref!==t?n.push(r[o]):a=!0}a&&(T._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",T,{selections:n}))}});var Oe=function(e){return e.plotinfo.fillRangeItems||ue(e.xaxes.concat(e.yaxes))}(n);n.moveFn=function(e,t){n._clearSubplotSelections&&(n._clearSubplotSelections(),n._clearSubplotSelections=void 0),se=Math.max(0,Math.min(ge,oe*e+N)),he=Math.max(0,Math.min(me,le*t+F));var r=Math.abs(se-N),a=Math.abs(he-F);if(v){var i,o,l;if(b){var s=M.selectdirection;switch(i="any"===s?a<Math.min(.6*r,R)?"h":r<Math.min(.6*a,R)?"v":"d":s){case"h":o=w?me/2:0,l=me;break;case"v":o=w?ge/2:0,l=ge}}if(x)switch(M.newshape.drawdirection){case"vertical":i="h",o=w?me/2:0,l=me;break;case"horizontal":i="v",o=w?ge/2:0,l=ge;break;case"ortho":r<a?(i="h",o=F,l=he):(i="v",o=N,l=se);break;default:i="d"}"h"===i?((X=k?_(w,[se,o],[se,l]):[[N,o],[N,l],[se,l],[se,o]]).xmin=k?se:Math.min(N,se),X.xmax=k?se:Math.max(N,se),X.ymin=Math.min(o,l),X.ymax=Math.max(o,l),Te.attr("d","M"+X.xmin+","+(F-R)+"h-4v"+2*R+"h4ZM"+(X.xmax-1)+","+(F-R)+"h4v"+2*R+"h-4Z")):"v"===i?((X=k?_(w,[o,he],[l,he]):[[o,F],[o,he],[l,he],[l,F]]).xmin=Math.min(o,l),X.xmax=Math.max(o,l),X.ymin=k?he:Math.min(F,he),X.ymax=k?he:Math.max(F,he),Te.attr("d","M"+(N-R)+","+X.ymin+"v-4h"+2*R+"v4ZM"+(N-R)+","+(X.ymax-1)+"v4h"+2*R+"v-4Z")):"d"===i&&((X=k?_(w,[N,F],[se,he]):[[N,F],[N,he],[se,he],[se,F]]).xmin=Math.min(N,se),X.xmax=Math.max(N,se),X.ymin=Math.min(F,he),X.ymax=Math.max(F,he),Te.attr("d","M0,0Z"))}else u&&(q.addPt([se,he]),X=q.filtered);if(n.selectionDefs&&n.selectionDefs.length?(W=Q(n.mergedPolygons,X,xe),X.subtract=xe,Y=V(n.selectionDefs.concat([X]))):(W=[X],Y=z(X)),m(te(W,g),be,n),b){var c,f=ne(T,!1),d=f.eventData?f.eventData.points.slice():[];f=ne(T,!1,Y,Le,n),Y=f.selectionTesters,ie=f.eventData,c=q?q.filtered:ce(W),O.throttle(Ae,E.SELECTDELAY,function(){for(var e=(Se=re(Y,Le)).slice(),t=0;t<d.length;t++){for(var r=d[t],n=!1,a=0;a<e.length;a++)if(e[a].curveNumber===r.curveNumber&&e[a].pointNumber===r.pointNumber){n=!0;break}n||e.push(r)}e.length&&(ie||(ie={}),ie.points=e),Oe(ie,c),function(e,t){e.emit("plotly_selecting",t)}(T,ie)})}},n.clickFn=function(e,t){if(Te.remove(),T._fullLayout._activeShapeIndex>=0)T._fullLayout._deactivateShape(T);else if(!x){var r=M.clickmode;O.done(Ae).then(function(){if(O.clear(Ae),2===e){for(be.remove(),K=0;K<Le.length;K++)(ee=Le[K])._module.selectPoints(ee,!1);if($(T,Le),Z(n),de(T),Le.length){var a=Le[0].xaxis,o=Le[0].yaxis;if(a&&o){for(var l=[],c=T._fullLayout.selections,u=0;u<c.length;u++){var f=c[u];f&&(f.xref===a._id&&f.yref===o._id||l.push(f))}l.length<c.length&&(T._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",T,{selections:l}))}}}else r.indexOf("select")>-1&&U(t,T,n.xaxes,n.yaxes,n.subplot,n,be),"event"===r&&fe(T,void 0);s.click(T,t,D.id)}).catch(A.error)}},n.doneFn=function(){Te.remove(),O.done(Ae).then(function(){O.clear(Ae),!S&&X&&n.selectionDefs&&(X.subtract=xe,n.selectionDefs.push(X),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,W)),(S||x)&&Z(n,S),n.doneFnCompleted&&n.doneFnCompleted(Se),b&&fe(T,ie)}).catch(A.error)}},clearOutline:x,clearSelectionsCache:Z,selectOnClick:U}},46056:function(e,t,r){"use strict";var n=r(13916),a=r(25376),i=r(52904).line,o=r(98192).u,l=r(92880).extendFlat,s=r(31780).templatedArray,c=(r(36208),r(45464)),u=r(21776).ye,f=r(97728);e.exports=s("shape",{visible:l({},c.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:l({},c.legend,{editType:"calc+arraydraw"}),legendgroup:l({},c.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:l({},c.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:a({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:l({},c.legendrank,{editType:"calc+arraydraw"}),legendwidth:l({},c.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:l({},n.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:l({},n.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:l({},i.color,{editType:"arraydraw"}),width:l({},i.width,{editType:"calc+arraydraw"}),dash:l({},o,{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:u({},{keys:Object.keys(f)}),font:a({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},96084:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(85448),o=r(65152);function l(e){return c(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function s(e){return c(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function c(e,t,r,a,l,s){var c=e/2,u=s;if("pixel"===t){var f=l?o.extractPathCoords(l,s?i.paramIsY:i.paramIsX):[r,a],d=n.aggNums(Math.max,null,f),h=n.aggNums(Math.min,null,f),p=h<0?Math.abs(h)+c:c,y=d>0?d+c:c;return{ppad:c,ppadplus:u?p:y,ppadminus:u?y:p}}return{ppad:c}}function u(e,t,r,n,a){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(r)];if(n){var s,c,u,f,d=1/0,h=-1/0,p=n.match(i.segmentRE);for("date"===e.type&&(l=o.decodeDate(l)),s=0;s<p.length;s++)void 0!==(c=a[p[s].charAt(0)].drawn)&&(!(u=p[s].substr(1).match(i.paramRE))||u.length<c||((f=l(u[c]))<d&&(d=f),f>h&&(h=f)));return h>=d?[d,h]:void 0}}e.exports=function(e){var t=e._fullLayout,r=n.filterVisible(t.shapes);if(r.length&&e._fullData.length)for(var o=0;o<r.length;o++){var c,f,d=r[o];d._extremes={};var h=a.getRefType(d.xref),p=a.getRefType(d.yref);if("paper"!==d.xref&&"domain"!==h){var y="pixel"===d.xsizemode?d.xanchor:d.x0,v="pixel"===d.xsizemode?d.xanchor:d.x1;(f=u(c=a.getFromId(e,d.xref),y,v,d.path,i.paramIsX))&&(d._extremes[c._id]=a.findExtremes(c,f,l(d)))}if("paper"!==d.yref&&"domain"!==p){var g="pixel"===d.ysizemode?d.yanchor:d.y0,m="pixel"===d.ysizemode?d.yanchor:d.y1;(f=u(c=a.getFromId(e,d.yref),g,m,d.path,i.paramIsY))&&(d._extremes[c._id]=a.findExtremes(c,f,s(d)))}}}},85448:function(e){"use strict";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},43712:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(51272),o=r(46056),l=r(65152);function s(e,t,r){function i(r,a){return n.coerce(e,t,o,r,a)}if(t._isShape=!0,i("visible")){i("showlegend")&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),n.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var s=i("path"),c=i("type",s?"path":"rect"),u="path"!==c;u&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule"),i("line.width")&&(i("line.color"),i("line.dash"));for(var f=i("xsizemode"),d=i("ysizemode"),h=["x","y"],p=0;p<2;p++){var y,v,g,m=h[p],x=m+"anchor",b="x"===m?f:d,_={_fullLayout:r},w=a.coerceRef(e,t,_,m,void 0,"paper");if("range"===a.getRefType(w)?((y=a.getFromId(_,w))._shapeIndices.push(t._index),g=l.rangeToShapePosition(y),v=l.shapePositionToRange(y)):v=g=n.identity,u){var k=m+"0",T=m+"1",M=e[k],A=e[T];e[k]=v(e[k],!0),e[T]=v(e[T],!0),"pixel"===b?(i(k,0),i(T,10)):(a.coercePosition(t,_,i,w,k,.25),a.coercePosition(t,_,i,w,T,.75)),t[k]=g(t[k]),t[T]=g(t[T]),e[k]=M,e[T]=A}if("pixel"===b){var S=e[x];e[x]=v(e[x],!0),a.coercePosition(t,_,i,w,x,.25),t[x]=g(t[x]),e[x]=S}}u&&n.noneOrAll(e,t,["x0","x1","y0","y1"]);var L,O,C="line"===c;if(u&&(L=i("label.texttemplate")),L||(O=i("label.text")),O||L){i("label.textangle");var D=i("label.textposition",C?"middle":"middle center");i("label.xanchor"),i("label.yanchor",function(e,t){return e?"bottom":-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle"}(C,D)),i("label.padding"),n.coerceFont(i,"label.font",r.font)}}}e.exports=function(e,t){i(e,t,{name:"shapes",handleItemDefaults:s})}},60728:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(72736),o=r(43616),l=r(9856).readPaths,s=r(65152),c=s.getPathString,u=r(97728),f=r(84284).FROM_TL;e.exports=function(e,t,r,d){if(d.selectAll(".shape-label").remove(),r.label.text||r.label.texttemplate){var h;if(r.label.texttemplate){var p={};if("path"!==r.type){var y=a.getFromId(e,r.xref),v=a.getFromId(e,r.yref);for(var g in u){var m=u[g](r,y,v);void 0!==m&&(p[g]=m)}}h=n.texttemplateStringForShapes(r.label.texttemplate,{},e._fullLayout._d3locale,p)}else h=r.label.text;var x,b,_,w,k={"data-index":t},T=r.label.font,M=d.append("g").attr(k).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(h);if(r.path){var A=c(e,r),S=l(A,e);x=1/0,_=1/0,b=-1/0,w=-1/0;for(var L=0;L<S.length;L++)for(var O=0;O<S[L].length;O++)for(var C=S[L][O],D=1;D<C.length;D+=2){var P=C[D],E=C[D+1];x=Math.min(x,P),b=Math.max(b,P),_=Math.min(_,E),w=Math.max(w,E)}}else{var R=a.getFromId(e,r.xref),I=a.getRefType(r.xref),z=a.getFromId(e,r.yref),N=a.getRefType(r.yref),F=s.getDataToPixel(e,R,!1,I),j=s.getDataToPixel(e,z,!0,N);x=F(r.x0),b=F(r.x1),_=j(r.y0),w=j(r.y1)}var B=r.label.textangle;"auto"===B&&(B="line"===r.type?function(e,t,r,n){var a,i;i=Math.abs(r-e),a=r>=e?t-n:n-t;return-180/Math.PI*Math.atan2(a,i)}(x,_,b,w):0),M.call(function(t){return t.call(o.font,T).attr({}),i.convertToTspans(t,e),t});var H=function(e,t,r,n,a,i,o){var l,s,c,u,d=a.label.textposition,h=a.label.textangle,p=a.label.padding,y=a.type,v=Math.PI/180*i,g=Math.sin(v),m=Math.cos(v),x=a.label.xanchor,b=a.label.yanchor;if("line"===y){"start"===d?(l=e,s=t):"end"===d?(l=r,s=n):(l=(e+r)/2,s=(t+n)/2),"auto"===x&&(x="start"===d?"auto"===h?r>e?"left":r<e?"right":"center":r>e?"right":r<e?"left":"center":"end"===d?"auto"===h?r>e?"right":r<e?"left":"center":r>e?"left":r<e?"right":"center":"center");var _={bottom:-1,middle:0,top:1};if("auto"===h){var w=_[b];c=-p*g*w,u=p*m*w}else{var k={left:1,center:0,right:-1}[x],T=_[b];c=p*k,u=p*T}l+=c,s+=u}else c=p+3,-1!==d.indexOf("right")?(l=Math.max(e,r)-c,"auto"===x&&(x="right")):-1!==d.indexOf("left")?(l=Math.min(e,r)+c,"auto"===x&&(x="left")):(l=(e+r)/2,"auto"===x&&(x="center")),s=-1!==d.indexOf("top")?Math.min(t,n):-1!==d.indexOf("bottom")?Math.max(t,n):(t+n)/2,u=p,"bottom"===b?s-=u:"top"===b&&(s+=u);var M=f[b],A=a.label.font.size,S=o.height;return{textx:l+(S*M-A)*g,texty:s+-(S*M-A)*m,xanchor:x}}(x,_,b,w,r,B,o.bBox(M.node())),U=H.textx,q=H.texty,Y=H.xanchor;M.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Y],y:q,x:U,transform:"rotate("+B+","+U+","+q+")"}).call(i.positionText,U,q)}}},55496:function(e,t,r){"use strict";var n=r(3400).strTranslate,a=r(86476),i=r(72760),o=i.drawMode,l=i.selectMode,s=r(24040),c=r(76308),u=r(7e3),f=u.i000,d=u.i090,h=u.i180,p=u.i270,y=r(1936).clearOutlineControllers,v=r(9856),g=v.pointsOnRectangle,m=v.pointsOnEllipse,x=v.writePaths,b=r(93940).newShapes,_=r(93940).createShapeObj,w=r(5968),k=r(60728);function T(e,t){var r,n,a,i=e[t][1],o=e[t][2],l=e.length;return n=e[r=(t+1)%l][1],a=e[r][2],n===i&&a===o&&(n=e[r=(t+2)%l][1],a=e[r][2]),[r,n,a]}e.exports=function e(t,r,i,u){u||(u=0);var v=i.gd;function M(){e(t,r,i,u++),(m(t[0])||i.hasText)&&A({redrawing:!0})}function A(e){var t={};void 0!==i.isActiveShape&&(i.isActiveShape=!1,t=b(r,i)),void 0!==i.isActiveSelection&&(i.isActiveSelection=!1,t=w(r,i),v._fullLayout._reselect=!0),Object.keys(t).length&&s.call((e||{}).redrawing?"relayout":"_guiRelayout",v,t)}var S,L,O,C,D,P=v._fullLayout._zoomlayer,E=i.dragmode,R=o(E),I=l(E);((R||I)&&(v._fullLayout._outlining=!0),y(v),r.attr("d",x(t)),u||!i.isActiveShape&&!i.isActiveSelection)||(D=function(e,t){for(var r=0;r<t.length;r++){var n=t[r];e[r]=[];for(var a=0;a<n.length;a++){e[r][a]=[];for(var i=0;i<n[a].length;i++)e[r][a][i]=n[a][i]}}return e}([],t),function(e){S=[];for(var r=0;r<t.length;r++){var o=t[r],l=g(o),s=!l&&m(o);S[r]=[];for(var u=o.length,y=0;y<u;y++)if("Z"!==o[y][0]&&(!s||y===f||y===d||y===h||y===p)){var x,b=l&&i.isActiveSelection;b&&(x=T(o,y));var _=o[y][1],w=o[y][2],k=e.append(b?"rect":"circle").attr("data-i",r).attr("data-j",y).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(b){var M=x[1]-_,A=x[2]-w,L=A?5:Math.max(Math.min(25,Math.abs(M)-5),5),O=M?5:Math.max(Math.min(25,Math.abs(A)-5),5);k.classed(A?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",L).attr("height",O).attr("x",_-L/2).attr("y",w-O/2).attr("transform",n(M/2,A/2))}else k.classed("cursor-grab",!0).attr("r",5).attr("cx",_).attr("cy",w);S[r][y]={element:k.node(),gd:v,prepFn:F,doneFn:B,clickFn:H},a.init(S[r][y])}}}(P.append("g").attr("class","outline-controllers")),function(){if(L=[],!t.length)return;L[0]={element:r[0][0],gd:v,prepFn:q,doneFn:Y,clickFn:V},a.init(L[0])}());if(R&&i.hasText){var z=P.select(".label-temp"),N=_(r,i,i.dragmode);k(v,"label-temp",N,z)}function F(e){O=+e.srcElement.getAttribute("data-i"),C=+e.srcElement.getAttribute("data-j"),S[O][C].moveFn=j}function j(e,r){if(t.length){var n=D[O][C][1],a=D[O][C][2],o=t[O],l=o.length;if(g(o)){var s=e,c=r;if(i.isActiveSelection)T(o,C)[1]===o[C][1]?c=0:s=0;for(var u=0;u<l;u++)if(u!==C){var f=o[u];f[1]===o[C][1]&&(f[1]=n+s),f[2]===o[C][2]&&(f[2]=a+c)}if(o[C][1]=n+s,o[C][2]=a+c,!g(o))for(var d=0;d<l;d++)for(var h=0;h<o[d].length;h++)o[d][h]=D[O][d][h]}else o[C][1]=n+e,o[C][2]=a+r;M()}}function B(){A()}function H(e,r){if(2===e){O=+r.srcElement.getAttribute("data-i"),C=+r.srcElement.getAttribute("data-j");var n=t[O];g(n)||m(n)||function(){if(t.length&&t[O]&&t[O].length){for(var e=[],r=0;r<t[O].length;r++)r!==C&&e.push(t[O][r]);e.length>1&&(2!==e.length||"Z"!==e[1][0])&&(0===C&&(e[0][0]="M"),t[O]=e,M(),A())}}()}}function U(e,r){!function(e,r){if(t.length)for(var n=0;n<t.length;n++)for(var a=0;a<t[n].length;a++)for(var i=0;i+2<t[n][a].length;i+=2)t[n][a][i+1]=D[n][a][i+1]+e,t[n][a][i+2]=D[n][a][i+2]+r}(e,r),M()}function q(e){(O=+e.srcElement.getAttribute("data-i"))||(O=0),L[O].moveFn=U}function Y(){A()}function V(e){2===e&&function(e){if(!l(e._fullLayout.dragmode))return;y(e);var t=e._fullLayout._activeSelectionIndex,r=(e.layout||{}).selections||[];if(t<r.length){for(var n=[],a=0;a<r.length;a++)a!==t&&n.push(r[a]);delete e._fullLayout._activeSelectionIndex;var i=e._fullLayout.selections[t];e._fullLayout._deselect={xref:i.xref,yref:i.yref},s.call("_guiRelayout",e,{selections:n})}}(v)}}},4016:function(e,t,r){"use strict";var n=r(33428),a=r(24040),i=r(3400),o=r(54460),l=r(9856).readPaths,s=r(55496),c=r(60728),u=r(1936).clearOutlineControllers,f=r(76308),d=r(43616),h=r(31780).arrayEditor,p=r(86476),y=r(93972),v=r(85448),g=r(65152),m=g.getPathString;function x(e){var t=e._fullLayout;for(var r in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove(),t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;a<t.shapes.length;a++)!0===t.shapes[a].visible&&w(e,a)}function b(e){return!!e._fullLayout._outlining}function _(e){return!e._context.edits.shapePosition}function w(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var r=g.makeShapesOptionsAndPlotinfo(e,t),u=r.options,w=r.plotinfo;if(u._input&&!0===u.visible)if("below"!==u.layer)A(e._fullLayout._shapeUpperLayer);else if("paper"===u.xref||"paper"===u.yref)A(e._fullLayout._shapeLowerLayer);else{if(w._hadPlotinfo)A((w.mainplotinfo||w).shapelayer);else A(e._fullLayout._shapeLowerLayer)}function A(r){var A=m(e,u),S={"data-index":t,"fill-rule":u.fillrule,d:A},L=u.opacity,O=u.fillcolor,C=u.line.width?u.line.color:"rgba(0,0,0,0)",D=u.line.width,P=u.line.dash;D||!0!==u.editable||(D=5,P="solid");var E="Z"!==A[A.length-1],R=_(e)&&u.editable&&e._fullLayout._activeShapeIndex===t;R&&(O=E?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,L=e._fullLayout.activeshape.opacity);var I,z=r.append("g").classed("shape-group",!0).attr({"data-index":t}),N=z.append("path").attr(S).style("opacity",L).call(f.stroke,C).call(f.fill,O).call(d.dashLine,P,D);if(k(z,e,u),c(e,t,u,z),(R||e._context.edits.shapePosition)&&(I=h(e.layout,"shapes",u)),R){N.style({cursor:"move"});var F={element:N.node(),plotinfo:w,gd:e,editHelpers:I,hasText:u.label.text||u.label.texttemplate,isActiveShape:!0},j=l(A,e);s(j,N,F)}else e._context.edits.shapePosition?function(e,t,r,l,s,u){var f,h,x,_,w,M,A,S,L,O,C,D,P,E,R,I,z=10,N=10,F="pixel"===r.xsizemode,j="pixel"===r.ysizemode,B="line"===r.type,H="path"===r.type,U=u.modifyItem,q=n.select(t.node().parentNode),Y=o.getFromId(e,r.xref),V=o.getRefType(r.xref),G=o.getFromId(e,r.yref),Z=o.getRefType(r.yref),W=g.getDataToPixel(e,Y,!1,V),J=g.getDataToPixel(e,G,!0,Z),X=g.getPixelToData(e,Y,!1,V),K=g.getPixelToData(e,G,!0,Z),$=B?function(){var e=Math.max(r.line.width,10),n=s.append("g").attr("data-index",l).attr("drag-helper",!0);n.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":e,"stroke-opacity":"0"});var a={"fill-opacity":"0"},i=Math.max(e/2,10);return n.append("circle").attr({"data-line-point":"start-point",cx:F?W(r.xanchor)+r.x0:W(r.x0),cy:j?J(r.yanchor)-r.y0:J(r.y0),r:i}).style(a).classed("cursor-grab",!0),n.append("circle").attr({"data-line-point":"end-point",cx:F?W(r.xanchor)+r.x1:W(r.x1),cy:j?J(r.yanchor)-r.y1:J(r.y1),r:i}).style(a).classed("cursor-grab",!0),n}():t,Q={element:$.node(),gd:e,prepFn:function(n){if(b(e))return;F&&(w=W(r.xanchor));j&&(M=J(r.yanchor));"path"===r.type?R=r.path:(f=F?r.x0:W(r.x0),h=j?r.y0:J(r.y0),x=F?r.x1:W(r.x1),_=j?r.y1:J(r.y1));f<x?(L=f,P="x0",O=x,E="x1"):(L=x,P="x1",O=f,E="x0");!j&&h<_||j&&h>_?(A=h,C="y0",S=_,D="y1"):(A=_,C="y1",S=h,D="y0");ee(n),ne(s,r),function(e,t,r){var n=t.xref,a=t.yref,i=o.getFromId(r,n),l=o.getFromId(r,a),s="";"paper"===n||i.autorange||(s+=n);"paper"===a||l.autorange||(s+=a);d.setClipUrl(e,s?"clip"+r._fullLayout._uid+s:null,r)}(t,r,e),Q.moveFn="move"===I?te:re,Q.altKey=n.altKey},doneFn:function(){if(b(e))return;y(t),ae(s),k(t,e,r),a.call("_guiRelayout",e,u.getUpdateObj())},clickFn:function(){if(b(e))return;ae(s)}};function ee(r){if(b(e))I=null;else if(B)I="path"===r.target.tagName?"move":"start-point"===r.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var n=Q.element.getBoundingClientRect(),a=n.right-n.left,i=n.bottom-n.top,o=r.clientX-n.left,l=r.clientY-n.top,s=!H&&a>z&&i>N&&!r.shiftKey?p.getCursor(o/a,1-l/i):"move";y(t,s),I=s.split("-")[0]}}function te(n,a){if("path"===r.type){var i=function(e){return e},o=i,u=i;F?U("xanchor",r.xanchor=X(w+n)):(o=function(e){return X(W(e)+n)},Y&&"date"===Y.type&&(o=g.encodeDate(o))),j?U("yanchor",r.yanchor=K(M+a)):(u=function(e){return K(J(e)+a)},G&&"date"===G.type&&(u=g.encodeDate(u))),U("path",r.path=T(R,o,u))}else F?U("xanchor",r.xanchor=X(w+n)):(U("x0",r.x0=X(f+n)),U("x1",r.x1=X(x+n))),j?U("yanchor",r.yanchor=K(M+a)):(U("y0",r.y0=K(h+a)),U("y1",r.y1=K(_+a)));t.attr("d",m(e,r)),ne(s,r),c(e,l,r,q)}function re(n,a){if(H){var i=function(e){return e},o=i,u=i;F?U("xanchor",r.xanchor=X(w+n)):(o=function(e){return X(W(e)+n)},Y&&"date"===Y.type&&(o=g.encodeDate(o))),j?U("yanchor",r.yanchor=K(M+a)):(u=function(e){return K(J(e)+a)},G&&"date"===G.type&&(u=g.encodeDate(u))),U("path",r.path=T(R,o,u))}else if(B){if("resize-over-start-point"===I){var d=f+n,p=j?h-a:h+a;U("x0",r.x0=F?d:X(d)),U("y0",r.y0=j?p:K(p))}else if("resize-over-end-point"===I){var y=x+n,v=j?_-a:_+a;U("x1",r.x1=F?y:X(y)),U("y1",r.y1=j?v:K(v))}}else{var b=function(e){return-1!==I.indexOf(e)},k=b("n"),V=b("s"),Z=b("w"),$=b("e"),Q=k?A+a:A,ee=V?S+a:S,te=Z?L+n:L,re=$?O+n:O;j&&(k&&(Q=A-a),V&&(ee=S-a)),(!j&&ee-Q>N||j&&Q-ee>N)&&(U(C,r[C]=j?Q:K(Q)),U(D,r[D]=j?ee:K(ee))),re-te>z&&(U(P,r[P]=F?te:X(te)),U(E,r[E]=F?re:X(re)))}t.attr("d",m(e,r)),ne(s,r),c(e,l,r,q)}function ne(e,t){(F||j)&&function(){var r="path"!==t.type,n=e.selectAll(".visual-cue").data([0]);n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var a=W(F?t.xanchor:i.midRange(r?[t.x0,t.x1]:g.extractPathCoords(t.path,v.paramIsX))),o=J(j?t.yanchor:i.midRange(r?[t.y0,t.y1]:g.extractPathCoords(t.path,v.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,1),o=g.roundPositionForSharpStrokeRendering(o,1),F&&j){var l="M"+(a-1-1)+","+(o-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",l)}else if(F){var s="M"+(a-1-1)+","+(o-9-1)+"v18 h2 v-18 Z";n.attr("d",s)}else{var c="M"+(a-9-1)+","+(o-1-1)+"h18 v2 h-18 Z";n.attr("d",c)}}()}function ae(e){e.selectAll(".visual-cue").remove()}p.init(Q),$.node().onmousemove=ee}(e,N,u,t,r,I):!0===u.editable&&N.style("pointer-events",E||f.opacity(O)*L<=.5?"stroke":"all");N.node().addEventListener("click",function(){return function(e,t){if(!_(e))return;var r=+t.node().getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeShapeIndex)return void M(e);e._fullLayout._activeShapeIndex=r,e._fullLayout._deactivateShape=M,x(e)}}(e,N)})}}function k(e,t,r){var n=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");d.setClipUrl(e,n?"clip"+t._fullLayout._uid+n:null,t)}function T(e,t,r){return e.replace(v.segmentRE,function(e){var n=0,a=e.charAt(0),i=v.paramIsX[a],o=v.paramIsY[a],l=v.numParams[a];return a+e.substr(1).replace(v.paramRE,function(e){return n>=l?e:(i[n]?e=t(e):o[n]&&(e=r(e)),n++,e)})})}function M(e){_(e)&&(e._fullLayout._activeShapeIndex>=0&&(u(e),delete e._fullLayout._activeShapeIndex,x(e)))}e.exports={draw:x,drawOne:w,eraseActiveShape:function(e){if(!_(e))return;u(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t<r.length){for(var n=[],i=0;i<r.length;i++)i!==t&&n.push(r[i]);return delete e._fullLayout._activeShapeIndex,a.call("_guiRelayout",e,{shapes:n})}},drawLabel:c}},92872:function(e,t,r){"use strict";var n=r(67824).overrideAll,a=r(45464),i=r(25376),o=r(98192).u,l=r(92880).extendFlat,s=r(21776).ye,c=r(97728);e.exports=n({newshape:{visible:l({},a.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:l({},a.legend,{}),legendgroup:l({},a.legendgroup,{}),legendgrouptitle:{text:l({},a.legendgrouptitle.text,{}),font:i({})},legendrank:l({},a.legendrank,{}),legendwidth:l({},a.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:l({},o,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:l({},a.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:s({newshape:!0},{keys:Object.keys(c)}),font:i({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")},7000:function(e){"use strict";e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},65144:function(e,t,r){"use strict";var n=r(76308),a=r(3400);e.exports=function(e,t,r){if(r("newshape.visible"),r("newshape.name"),r("newshape.showlegend"),r("newshape.legend"),r("newshape.legendwidth"),r("newshape.legendgroup"),r("newshape.legendgrouptitle.text"),a.coerceFont(r,"newshape.legendgrouptitle.font"),r("newshape.legendrank"),r("newshape.drawdirection"),r("newshape.layer"),r("newshape.fillcolor"),r("newshape.fillrule"),r("newshape.opacity"),r("newshape.line.width")){var i=(e||{}).plot_bgcolor||"#FFF";r("newshape.line.color",n.contrast(i)),r("newshape.line.dash")}var o="drawline"===e.dragmode,l=r("newshape.label.text"),s=r("newshape.label.texttemplate");if(l||s){r("newshape.label.textangle");var c=r("newshape.label.textposition",o?"middle":"middle center");r("newshape.label.xanchor"),r("newshape.label.yanchor",function(e,t){return e?"bottom":-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle"}(o,c)),r("newshape.label.padding"),a.coerceFont(r,"newshape.label.font",t.font)}r("activeshape.fillcolor"),r("activeshape.opacity")}},9856:function(e,t,r){"use strict";var n=r(21984),a=r(7e3),i=a.CIRCLE_SIDES,o=a.SQRT2,l=r(5840),s=l.p2r,c=l.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function d(e,t){return Math.abs(e-t)<=1e-6}function h(e,t){var r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+n*n)}t.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n<t;n++)for(var a=e[n].length,i=0;i<a;i++){var o=e[n][i][0];if("Z"===o)r+="Z";else for(var l=e[n][i].length,s=0;s<l;s++){var c=s;"Q"===o||"S"===o?c=f[s]:"C"===o&&(c=u[s]),r+=e[n][i][c],s>0&&s<l-1&&(r+=",")}}return r},t.readPaths=function(e,t,r,a){var o,l,u,f=n(e),d=[],h=-1,p=0,y=0,v=function(){l=p,u=y};v();for(var g=0;g<f.length;g++){var m,x,b,_,w=[],k=f[g][0],T=k;switch(k){case"M":d[++h]=[],p=+f[g][1],y=+f[g][2],w.push([T,p,y]),v();break;case"Q":case"S":m=+f[g][1],b=+f[g][2],p=+f[g][3],y=+f[g][4],w.push([T,p,y,m,b]);break;case"C":m=+f[g][1],b=+f[g][2],x=+f[g][3],_=+f[g][4],p=+f[g][5],y=+f[g][6],w.push([T,p,y,m,b,x,_]);break;case"T":case"L":p=+f[g][1],y=+f[g][2],w.push([T,p,y]);break;case"H":T="L",p=+f[g][1],w.push([T,p,y]);break;case"V":T="L",y=+f[g][1],w.push([T,p,y]);break;case"A":T="L";var M=+f[g][1],A=+f[g][2];+f[g][4]||(M=-M,A=-A);var S=p-M,L=y;for(o=1;o<=i/2;o++){var O=2*Math.PI*o/i;w.push([T,S+M*Math.cos(O),L+A*Math.sin(O)])}break;case"Z":p===l&&y===u||(p=l,y=u,w.push([T,p,y]))}for(var C=(r||{}).domain,D=t._fullLayout._size,P=r&&"pixel"===r.xsizemode,E=r&&"pixel"===r.ysizemode,R=!1===a,I=0;I<w.length;I++){for(o=0;o+2<7;o+=2){var z=w[I][o+1],N=w[I][o+2];void 0!==z&&void 0!==N&&(p=z,y=N,r&&(r.xaxis&&r.xaxis.p2r?(R&&(z-=r.xaxis._offset),z=P?c(r.xaxis,r.xanchor)+z:s(r.xaxis,z)):(R&&(z-=D.l),C?z=C.x[0]+z/D.w:z/=D.w),r.yaxis&&r.yaxis.p2r?(R&&(N-=r.yaxis._offset),N=E?c(r.yaxis,r.yanchor)-N:s(r.yaxis,N)):(R&&(N-=D.t),N=C?C.y[1]-N/D.h:1-N/D.h)),w[I][o+1]=z,w[I][o+2]=N)}d[h].push(w[I].slice())}}return d},t.pointsOnRectangle=function(e){if(5!==e.length)return!1;for(var t=1;t<3;t++){if(!d(e[0][t]-e[1][t],e[3][t]-e[2][t]))return!1;if(!d(e[0][t]-e[3][t],e[1][t]-e[2][t]))return!1}return!(!d(e[0][1],e[1][1])&&!d(e[0][1],e[3][1]))&&!!(h(e[0],e[1])*h(e[0],e[3]))},t.pointsOnEllipse=function(e){var t=e.length;if(t!==i+1)return!1;t=i;for(var r=0;r<t;r++){var n=(2*t-r)%t,a=(t/2+n)%t,o=(t/2+r)%t;if(!d(h(e[r],e[o]),h(e[n],e[a])))return!1}return!0},t.handleEllipse=function(e,r,n){if(!e)return[r,n];var a=t.ellipseOver({x0:r[0],y0:r[1],x1:n[0],y1:n[1]}),l=(a.x1+a.x0)/2,s=(a.y1+a.y0)/2,c=(a.x1-a.x0)/2,u=(a.y1-a.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],d=0;d<i;d++){var h=2*d*Math.PI/i;f.push([l+c*Math.cos(h),s+u*Math.sin(h)])}return f},t.ellipseOver=function(e){var t=e.x0,r=e.y0,n=e.x1,a=e.y1,i=n-t,l=a-r,s=((t-=i)+n)/2,c=((r-=l)+a)/2;return{x0:s-(i*=o),y0:c-(l*=o),x1:s+i,y1:c+l}},t.fixDatesForPaths=function(e,t,r){var n="date"===t.type,a="date"===r.type;if(!n&&!a)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var l=0;l+2<e[i][o].length;l+=2)n&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),a&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"));return e}},93940:function(e,t,r){"use strict";var n=r(72760),a=n.drawMode,i=n.openMode,o=r(7e3),l=o.i000,s=o.i090,c=o.i180,u=o.i270,f=o.cos45,d=o.sin45,h=r(5840),p=h.p2r,y=h.r2p,v=r(1936).clearOutline,g=r(9856),m=g.readPaths,x=g.writePaths,b=g.ellipseOver,_=g.fixDatesForPaths;function w(e,t,r){var n,a=e[0][0],o=t.gd,h=a.getAttribute("d"),v=o._fullLayout.newshape,g=t.plotinfo,w=t.isActiveShape,k=g.xaxis,T=g.yaxis,M=!!g.domain||!g.xaxis,A=!!g.domain||!g.yaxis,S=i(r),L=m(h,o,g,w),O={editable:!0,visible:v.visible,name:v.name,showlegend:v.showlegend,legend:v.legend,legendwidth:v.legendwidth,legendgroup:v.legendgroup,legendgrouptitle:{text:v.legendgrouptitle.text,font:v.legendgrouptitle.font},legendrank:v.legendrank,label:v.label,xref:M?"paper":k._id,yref:A?"paper":T._id,layer:v.layer,opacity:v.opacity,line:{color:v.line.color,width:v.line.width,dash:v.line.dash}};if(S||(O.fillcolor=v.fillcolor,O.fillrule=v.fillrule),1===L.length&&(n=L[0]),n&&5===n.length&&"drawrect"===r)O.type="rect",O.x0=n[0][1],O.y0=n[0][2],O.x1=n[2][1],O.y1=n[2][2];else if(n&&"drawline"===r)O.type="line",O.x0=n[0][1],O.y0=n[0][2],O.x1=n[1][1],O.y1=n[1][2];else if(n&&"drawcircle"===r){O.type="circle";var C=n[l][1],D=n[s][1],P=n[c][1],E=n[u][1],R=n[l][2],I=n[s][2],z=n[c][2],N=n[u][2],F=g.xaxis&&("date"===g.xaxis.type||"log"===g.xaxis.type),j=g.yaxis&&("date"===g.yaxis.type||"log"===g.yaxis.type);F&&(C=y(g.xaxis,C),D=y(g.xaxis,D),P=y(g.xaxis,P),E=y(g.xaxis,E)),j&&(R=y(g.yaxis,R),I=y(g.yaxis,I),z=y(g.yaxis,z),N=y(g.yaxis,N));var B=(D+E)/2,H=(R+z)/2,U=b({x0:B,y0:H,x1:B+(E-D+P-C)/2*f,y1:H+(N-I+z-R)/2*d});F&&(U.x0=p(g.xaxis,U.x0),U.x1=p(g.xaxis,U.x1)),j&&(U.y0=p(g.yaxis,U.y0),U.y1=p(g.yaxis,U.y1)),O.x0=U.x0,O.y0=U.y0,O.x1=U.x1,O.y1=U.y1}else O.type="path",k&&T&&_(L,k,T),O.path=x(L),n=null;return O}e.exports={newShapes:function(e,t){if(e.length&&e[0][0]){var r=t.gd,n=t.isActiveShape,i=t.dragmode,o=(r.layout||{}).shapes||[];if(!a(i)&&void 0!==n){var l=r._fullLayout._activeShapeIndex;if(l<o.length)switch(r._fullLayout.shapes[l].type){case"rect":i="drawrect";break;case"circle":i="drawcircle";break;case"line":i="drawline";break;case"path":var s=o[l].path||"";i="Z"===s[s.length-1]?"drawclosedpath":"drawopenpath"}}var c=w(e,t,i);v(r);for(var u=t.editHelpers,f=(u||{}).modifyItem,d=[],h=0;h<o.length;h++){var p=r._fullLayout.shapes[h];if(d[h]=p._input,void 0!==n&&h===r._fullLayout._activeShapeIndex){var y=c;switch(p.type){case"line":case"rect":case"circle":f("x0",y.x0),f("x1",y.x1),f("y0",y.y0),f("y1",y.y1);break;case"path":f("path",y.path)}}}return void 0===n?(d.push(c),d):u?u.getUpdateObj():{}}},createShapeObj:w}},1936:function(e){"use strict";e.exports={clearOutlineControllers:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()},clearOutline:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}}},65152:function(e,t,r){"use strict";var n=r(85448),a=r(3400),i=r(54460);t.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},t.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},t.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},t.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},t.extractPathCoords=function(e,t,r){var i=[];return e.match(n.segmentRE).forEach(function(e){var o=t[e.charAt(0)].drawn;if(void 0!==o){var l=e.substr(1).match(n.paramRE);if(l&&!(l.length<o)){var s=l[o],c=r?s:a.cleanNumber(s);i.push(c)}}}),i},t.getDataToPixel=function(e,r,n,a){var i,o=e._fullLayout._size;if(r)if("domain"===a)i=function(e){return r._length*(n?1-e:e)+r._offset};else{var l=t.shapePositionToRange(r);i=function(e){return r._offset+r.r2p(l(e,!0))},"date"===r.type&&(i=t.decodeDate(i))}else i=n?function(e){return o.t+o.h*(1-e)}:function(e){return o.l+o.w*e};return i},t.getPixelToData=function(e,r,n,a){var i,o=e._fullLayout._size;if(r)if("domain"===a)i=function(e){var t=(e-r._offset)/r._length;return n?1-t:t};else{var l=t.rangeToShapePosition(r);i=function(e){return l(r.p2r(e-r._offset))}}else i=n?function(e){return 1-(e-o.t)/o.h}:function(e){return(e-o.l)/o.w};return i},t.roundPositionForSharpStrokeRendering=function(e,t){var r=1===Math.round(t%2),n=Math.round(e);return r?n+.5:n},t.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},n=e._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&&"paper"!==r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&"paper"!==r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}},t.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},n=e._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:n}},t.getPathString=function(e,r){var o,l,s,c,u,f,d,h,p=r.type,y=i.getRefType(r.xref),v=i.getRefType(r.yref),g=i.getFromId(e,r.xref),m=i.getFromId(e,r.yref),x=e._fullLayout._size;if(g?"domain"===y?l=function(e){return g._offset+g._length*e}:(o=t.shapePositionToRange(g),l=function(e){return g._offset+g.r2p(o(e,!0))}):l=function(e){return x.l+x.w*e},m?"domain"===v?c=function(e){return m._offset+m._length*(1-e)}:(s=t.shapePositionToRange(m),c=function(e){return m._offset+m.r2p(s(e,!0))}):c=function(e){return x.t+x.h*(1-e)},"path"===p)return g&&"date"===g.type&&(l=t.decodeDate(l)),m&&"date"===m.type&&(c=t.decodeDate(c)),function(e,t,r){var i=e.path,o=e.xsizemode,l=e.ysizemode,s=e.xanchor,c=e.yanchor;return i.replace(n.segmentRE,function(e){var i=0,u=e.charAt(0),f=n.paramIsX[u],d=n.paramIsY[u],h=n.numParams[u],p=e.substr(1).replace(n.paramRE,function(e){return f[i]?e="pixel"===o?t(s)+Number(e):t(e):d[i]&&(e="pixel"===l?r(c)-Number(e):r(e)),++i>h&&(e="X"),e});return i>h&&(p=p.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),u+p})}(r,l,c);if("pixel"===r.xsizemode){var b=l(r.xanchor);u=b+r.x0,f=b+r.x1}else u=l(r.x0),f=l(r.x1);if("pixel"===r.ysizemode){var _=c(r.yanchor);d=_-r.y0,h=_-r.y1}else d=c(r.y0),h=c(r.y1);if("line"===p)return"M"+u+","+d+"L"+f+","+h;if("rect"===p)return"M"+u+","+d+"H"+f+"V"+h+"H"+u+"Z";var w=(u+f)/2,k=(d+h)/2,T=Math.abs(w-u),M=Math.abs(k-d),A="A"+T+","+M,S=w+T+","+k;return"M"+S+A+" 0 1,1 "+(w+","+(k-M))+A+" 0 0,1 "+S+"Z"}},41592:function(e,t,r){"use strict";var n=r(4016);e.exports={moduleType:"component",name:"shapes",layoutAttributes:r(46056),supplyLayoutDefaults:r(43712),supplyDrawNewShapeDefaults:r(65144),includeBasePlot:r(36632)("shapes"),calcAutorange:r(96084),draw:n.draw,drawOne:n.drawOne}},97728:function(e){"use strict";function t(e,t){return t?t.d2l(e):e}function r(e,t){return t?t.l2d(e):e}function n(e,r){return t(e.x1,r)-t(e.x0,r)}function a(e,r,n){return t(e.y1,n)-t(e.y0,n)}e.exports={x0:function(e){return e.x0},x1:function(e){return e.x1},y0:function(e){return e.y0},y1:function(e){return e.y1},slope:function(e,t,r){return"line"!==e.type?void 0:a(e,0,r)/n(e,t)},dx:n,dy:a,width:function(e,t){return Math.abs(n(e,t))},height:function(e,t,r){return Math.abs(a(e,0,r))},length:function(e,t,r){return"line"!==e.type?void 0:Math.sqrt(Math.pow(n(e,t),2)+Math.pow(a(e,0,r),2))},xcenter:function(e,n){return r((t(e.x1,n)+t(e.x0,n))/2,n)},ycenter:function(e,n,a){return r((t(e.y1,a)+t(e.y0,a))/2,a)}}},89861:function(e,t,r){"use strict";var n=r(25376),a=r(66741),i=r(92880).extendDeepAll,o=r(67824).overrideAll,l=r(85656),s=r(31780).templatedArray,c=r(60876),u=s("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}});e.exports=o(s("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:u,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:i(a({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:l.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:n({})},font:n({}),activebgcolor:{valType:"color",dflt:c.gripBgActiveColor},bgcolor:{valType:"color",dflt:c.railBgColor},bordercolor:{valType:"color",dflt:c.railBorderColor},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth},ticklen:{valType:"number",min:0,dflt:c.tickLength},tickcolor:{valType:"color",dflt:c.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength}}),"arraydraw","from-root")},60876:function(e){"use strict";e.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(e,t,r){"use strict";var n=r(3400),a=r(51272),i=r(89861),o=r(60876).name,l=i.steps;function s(e,t,r){function o(r,a){return n.coerce(e,t,i,r,a)}for(var l=a(e,t,{name:"steps",handleItemDefaults:c}),s=0,u=0;u<l.length;u++)l[u].visible&&s++;if(s<2?t.visible=!1:o("visible")){t._stepCount=s;var f=t._visibleSteps=n.filterVisible(l);(l[o("active")]||{}).visible||(t.active=f[0]._index),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("len"),o("lenmode"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("currentvalue.visible")&&(o("currentvalue.xanchor"),o("currentvalue.prefix"),o("currentvalue.suffix"),o("currentvalue.offset"),n.coerceFont(o,"currentvalue.font",t.font)),o("transition.duration"),o("transition.easing"),o("bgcolor"),o("activebgcolor"),o("bordercolor"),o("borderwidth"),o("ticklen"),o("tickwidth"),o("tickcolor"),o("minorticklen")}}function c(e,t){function r(r,a){return n.coerce(e,t,l,r,a)}if("skip"===e.method||Array.isArray(e.args)?r("visible"):t.visible=!1){r("method"),r("args");var a=r("label","step-"+t._index);r("value",a),r("execute")}}e.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},79664:function(e,t,r){"use strict";var n=r(33428),a=r(7316),i=r(76308),o=r(43616),l=r(3400),s=l.strTranslate,c=r(72736),u=r(31780).arrayEditor,f=r(60876),d=r(84284),h=d.LINE_SPACING,p=d.FROM_TL,y=d.FROM_BR;function v(e){return f.autoMarginIdRoot+e._index}function g(e){return e._index}function m(e,t){var r=o.tester.selectAll("g."+f.labelGroupClass).data(t._visibleSteps);r.enter().append("g").classed(f.labelGroupClass,!0);var i=0,s=0;r.each(function(e){var r=_(n.select(this),{step:e},t).node();if(r){var a=o.bBox(r);s=Math.max(s,a.height),i=Math.max(i,a.width)}}),r.remove();var u=t._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var d=e._fullLayout._size;u.lx=d.l+d.w*t.x,u.ly=d.t+d.h*(1-t.y),"fraction"===t.lenmode?u.outerLength=Math.round(d.w*t.len):u.outerLength=t.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-t.pad.l-t.pad.r);var h=(u.inputAreaLength-2*f.stepInset)/(t._stepCount-1),g=i+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(g/h)),u.labelHeight=s,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,t.currentvalue.visible){var m=o.tester.append("g");r.each(function(e){var r=x(m,t,e.label),n=r.node()&&o.bBox(r.node())||{width:0,height:0},a=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,a)}),u.currentValueTotalHeight=u.currentValueHeight+t.currentvalue.offset,m.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+t.ticklen+f.labelOffset+u.labelHeight+t.pad.t+t.pad.b;var b="left";l.isRightAnchor(t)&&(u.lx-=u.outerLength,b="right"),l.isCenterAnchor(t)&&(u.lx-=u.outerLength/2,b="center");var w="top";l.isBottomAnchor(t)&&(u.ly-=u.height,w="bottom"),l.isMiddleAnchor(t)&&(u.ly-=u.height/2,w="middle"),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var k={y:t.y,b:u.height*y[w],t:u.height*p[w]};"fraction"===t.lenmode?(k.l=0,k.xl=t.x-t.len*p[b],k.r=0,k.xr=t.x+t.len*y[b]):(k.x=t.x,k.l=u.outerLength*p[b],k.r=u.outerLength*y[b]),a.autoMargin(e,v(t),k)}function x(e,t,r){if(t.currentvalue.visible){var n,a,i=t._dims;switch(t.currentvalue.xanchor){case"right":n=i.inputAreaLength-f.currentValueInset-i.currentValueMaxWidth,a="left";break;case"center":n=.5*i.inputAreaLength,a="middle";break;default:n=f.currentValueInset,a="left"}var s=l.ensureSingle(e,"text",f.labelClass,function(e){e.attr({"text-anchor":a,"data-notex":1})}),u=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"==typeof r)u+=r;else{var d=t.steps[t.active].label,p=t._gd._fullLayout._meta;p&&(d=l.templateString(d,p)),u+=d}t.currentvalue.suffix&&(u+=t.currentvalue.suffix),s.call(o.font,t.currentvalue.font).text(u).call(c.convertToTspans,t._gd);var y=c.lineCount(s),v=(i.currentValueMaxLines+1-y)*t.currentvalue.font.size*h;return c.positionText(s,n,v),s}}function b(e,t,r){l.ensureSingle(e,"rect",f.gripRectClass,function(n){n.call(M,t,e,r).style("pointer-events","all")}).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(i.stroke,r.bordercolor).call(i.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function _(e,t,r){var n=l.ensureSingle(e,"text",f.labelClass,function(e){e.attr({"text-anchor":"middle","data-notex":1})}),a=t.step.label,i=r._gd._fullLayout._meta;return i&&(a=l.templateString(a,i)),n.call(o.font,r.font).text(a).call(c.convertToTspans,r._gd),n}function w(e,t){var r=l.ensureSingle(e,"g",f.labelsClass),a=t._dims,i=r.selectAll("g."+f.labelGroupClass).data(a.labelSteps);i.enter().append("g").classed(f.labelGroupClass,!0),i.exit().remove(),i.each(function(e){var r=n.select(this);r.call(_,e,t),o.setTranslate(r,L(t,e.fraction),f.tickOffset+t.ticklen+t.font.size*h+f.labelOffset+a.currentValueTotalHeight)})}function k(e,t,r,n,a){var i=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[i]._index;o!==r.active&&T(e,t,r,o,!0,a)}function T(e,t,r,n,i,o){var l=r.active;r.active=n,u(e.layout,f.name,r).applyUpdate("active",n);var s=r.steps[r.active];t.call(S,r,o),t.call(x,r),e.emit("plotly_sliderchange",{slider:r,step:r.steps[r.active],interaction:i,previousActive:l}),s&&s.method&&i&&(t._nextMethod?(t._nextMethod.step=s,t._nextMethod.doCallback=i,t._nextMethod.doTransition=o):(t._nextMethod={step:s,doCallback:i,doTransition:o},t._nextMethodRaf=window.requestAnimationFrame(function(){var r=t._nextMethod.step;r.method&&(r.execute&&a.executeAPICommand(e,r.method,r.args),t._nextMethod=null,t._nextMethodRaf=null)})))}function M(e,t,r){if(!t._context.staticPlot){var a=r.node(),o=n.select(t);e.on("mousedown",s),e.on("touchstart",s)}function l(){return r.data()[0]}function s(){var e=l();t.emit("plotly_sliderstart",{slider:e});var s=r.select("."+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),s.call(i.fill,e.activebgcolor);var c=O(e,n.mouse(a)[0]);function u(){var e=l(),i=O(e,n.mouse(a)[0]);k(t,r,e,i,!1)}function d(){var e=l();e._dragging=!1,s.call(i.fill,e.bgcolor),o.on("mouseup",null),o.on("mousemove",null),o.on("touchend",null),o.on("touchmove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}k(t,r,e,c,!0),e._dragging=!0,o.on("mousemove",u),o.on("touchmove",u),o.on("mouseup",d),o.on("touchend",d)}}function A(e,t){var r=e.selectAll("rect."+f.tickRectClass).data(t._visibleSteps),a=t._dims;r.enter().append("rect").classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),r.each(function(e,r){var l=r%a.labelStride==0,s=n.select(this);s.attr({height:l?t.ticklen:t.minorticklen}).call(i.fill,t.tickcolor),o.setTranslate(s,L(t,r/(t._stepCount-1))-.5*t.tickwidth,(l?f.tickOffset:f.minorTickOffset)+a.currentValueTotalHeight)})}function S(e,t,r){for(var n=e.select("rect."+f.gripRectClass),a=0,i=0;i<t._stepCount;i++)if(t._visibleSteps[i]._index===t.active){a=i;break}var o=L(t,a/(t._stepCount-1));if(!t._invokingCommand){var l=n;r&&t.transition.duration>0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform",s(o-.5*f.gripWidth,t._dims.currentValueTotalHeight))}}function L(e,t){var r=e._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,t))}function O(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function C(e,t,r){var n=r._dims,a=l.ensureSingle(e,"rect",f.railTouchRectClass,function(n){n.call(M,t,e,r).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(i.fill,r.bgcolor).attr("opacity",0),o.setTranslate(a,0,n.currentValueTotalHeight)}function D(e,t){var r=t._dims,n=r.inputAreaLength-2*f.railInset,a=l.ensureSingle(e,"rect",f.railRectClass);a.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),o.setTranslate(a,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(e){var t=e._context.staticPlot,r=e._fullLayout,i=function(e,t){for(var r=e[f.name],n=[],a=0;a<r.length;a++){var i=r[a];i.visible&&(i._gd=t,n.push(i))}return n}(r,e),l=r._infolayer.selectAll("g."+f.containerClassName).data(i.length>0?[0]:[]);function s(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),a.autoMargin(e,v(t))}if(l.enter().append("g").classed(f.containerClassName,!0).style("cursor",t?null:"ew-resize"),l.exit().each(function(){n.select(this).selectAll("g."+f.groupClassName).each(s)}).remove(),0!==i.length){var c=l.selectAll("g."+f.groupClassName).data(i,g);c.enter().append("g").classed(f.groupClassName,!0),c.exit().each(s).remove();for(var u=0;u<i.length;u++){var d=i[u];m(e,d)}c.each(function(t){var r=n.select(this);!function(e){var t=e._dims;t.labelSteps=[];for(var r=e._stepCount,n=0;n<r;n+=t.labelStride)t.labelSteps.push({fraction:n/(r-1),step:e._visibleSteps[n]})}(t),a.manageCommandObserver(e,t,t._visibleSteps,function(t){var n=r.data()[0];n.active!==t.index&&(n._dragging||T(e,r,n,t.index,!1,!0))}),function(e,t,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);t.call(x,r).call(D,r).call(w,r).call(A,r).call(C,e,r).call(b,e,r);var n=r._dims;o.setTranslate(t,n.lx+r.pad.l,n.ly+r.pad.t),t.call(S,r,!1),t.call(x,r)}(e,n.select(this),t)})}}},97544:function(e,t,r){"use strict";var n=r(60876);e.exports={moduleType:"component",name:n.name,layoutAttributes:r(89861),supplyLayoutDefaults:r(8132),draw:r(79664)}},81668:function(e,t,r){"use strict";var n=r(33428),a=r(38248),i=r(7316),o=r(24040),l=r(3400),s=l.strTranslate,c=r(43616),u=r(76308),f=r(72736),d=r(13448),h=r(84284).OPPOSITE_SIDE,p=/ [XY][0-9]* /;e.exports={draw:function(e,t,r){var y,v=r.propContainer,g=r.propName,m=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,k=r.containerGroup,T=e._fullLayout,M=1,A=!1,S=v.title,L=(S&&S.text?S.text:"").trim(),O=S&&S.font?S.font:{},C=O.family,D=O.size,P=O.color;"title.text"===g?y="titleText":-1!==g.indexOf("axis")?y="axisTitleText":g.indexOf(!0)&&(y="colorbarTitleText");var E=e._context.edits[y];""===L?M=0:L.replace(p," % ")===m.replace(p," % ")&&(M=.2,A=!0,E||(L="")),r._meta?L=l.templateString(L,r._meta):T._meta&&(L=l.templateString(L,T._meta));var R,I=L||E;k||(k=l.ensureSingle(T._infolayer,"g","g-"+t),R=T._hColorbarMoveTitle);var z=k.selectAll("text").data(I?[0]:[]);if(z.enter().append("text"),z.text(L).attr("class",t),z.exit().remove(),!I)return k;function N(e){l.syncOrAsync([F,j],e)}function F(t){var r;return!w&&R&&(w={}),w?(r="",w.rotate&&(r+="rotate("+[w.rotate,_.x,_.y]+")"),(w.offset||R)&&(r+=s(0,(w.offset||0)-(R||0)))):r=null,t.attr("transform",r),t.style({"font-family":C,"font-size":n.round(D,2)+"px",fill:u.rgb(P),opacity:M*u.opacity(P),"font-weight":i.fontWeight}).attr(_).call(f.convertToTspans,e),i.previousPromises(e)}function j(t){var r=n.select(t.node().parentNode);if(b&&b.selection&&b.side&&L){r.attr("transform",null);var i=h[b.side],o="left"===b.side||"top"===b.side?-1:1,u=a(b.pad)?b.pad:2,f=c.bBox(r.node()),d={t:0,b:0,l:0,r:0},p=e._fullLayout._reservedMargin;for(var y in p)for(var g in p[y]){var m=p[y][g];d[g]=Math.max(d[g],m)}var x={left:d.l,top:d.t,right:T.width-d.r,bottom:T.height-d.b},_=b.maxShift||o*(x[b.side]-f[b.side]),w=0;if(_<0)w=_;else{var k=b.offsetLeft||0,M=b.offsetTop||0;f.left-=k,f.right-=k,f.top-=M,f.bottom-=M,b.selection.each(function(){var e=c.bBox(this);l.bBoxIntersect(f,e,u)&&(w=Math.max(w,o*(e[b.side]-f[i])+u))}),w=Math.min(_,w),v._titleScoot=Math.abs(w)}if(w>0||_<0){var A={left:[-w,0],right:[w,0],top:[0,-w],bottom:[0,w]}[b.side];r.attr("transform",s(A[0],A[1]))}}}return z.call(N),E&&(L?z.on(".opacity",null):(M=0,A=!0,z.text(m).on("mouseover.opacity",function(){n.select(this).transition().duration(d.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){n.select(this).transition().duration(d.HIDE_PLACEHOLDER).style("opacity",0)})),z.call(f.makeEditable,{gd:e}).on("edit",function(t){void 0!==x?o.call("_guiRestyle",e,g,t,x):o.call("_guiRelayout",e,g,t)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(N)}).on("input",function(e){this.text(e||" ").call(f.positionText,_.x,_.y)})),z.classed("js-placeholder",A),k}}},88444:function(e,t,r){"use strict";var n=r(25376),a=r(22548),i=r(92880).extendFlat,o=r(67824).overrideAll,l=r(66741),s=r(31780).templatedArray,c=s("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}});e.exports=o(s("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:c,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:i(l({editType:"arraydraw"}),{}),font:n({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:a.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(e){"use strict";e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(e,t,r){"use strict";var n=r(3400),a=r(51272),i=r(88444),o=r(73712).name,l=i.buttons;function s(e,t,r){function o(r,a){return n.coerce(e,t,i,r,a)}o("visible",a(e,t,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(e,t){function r(r,a){return n.coerce(e,t,l,r,a)}r("visible","skip"===e.method||Array.isArray(e.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}e.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},14420:function(e,t,r){"use strict";var n=r(33428),a=r(7316),i=r(76308),o=r(43616),l=r(3400),s=r(72736),c=r(31780).arrayEditor,u=r(84284).LINE_SPACING,f=r(73712),d=r(37400);function h(e){return e._index}function p(e,t){return+e.attr(f.menuIndexAttrName)===t._index}function y(e,t,r,n,a,i,o,l){t.active=o,c(e.layout,f.name,t).applyUpdate("active",o),"buttons"===t.type?g(e,n,null,null,t):"dropdown"===t.type&&(a.attr(f.menuIndexAttrName,"-1"),v(e,n,a,i,t),l||g(e,n,a,i,t))}function v(e,t,r,n,a){var i=l.ensureSingle(t,"g",f.headerClassName,function(e){e.style("pointer-events","all")}),s=a._dims,c=a.active,u=a.buttons[c]||f.blankHeaderOpts,d={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},h={width:s.headerWidth,height:s.headerHeight};i.call(m,a,u,e).call(A,a,d,h),l.ensureSingle(t,"text",f.headerArrowClassName,function(e){e.attr("text-anchor","end").call(o.font,a.font).text(f.arrowSymbol[a.direction])}).attr({x:s.headerWidth-f.arrowOffsetX+a.pad.l,y:s.headerHeight/2+f.textOffsetY+a.pad.t}),i.on("click",function(){r.call(S,String(p(r,a)?-1:a._index)),g(e,t,r,n,a)}),i.on("mouseover",function(){i.call(w)}),i.on("mouseout",function(){i.call(k,a)}),o.setTranslate(t,s.lx,s.ly)}function g(e,t,r,i,o){r||(r=t).attr("pointer-events","all");var s=function(e){return-1==+e.attr(f.menuIndexAttrName)}(r)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll("g."+c).data(l.filterVisible(s)),d=u.enter().append("g").classed(c,!0),h=u.exit();"dropdown"===o.type?(d.attr("opacity","0").transition().attr("opacity","1"),h.transition().attr("opacity","0").remove()):h.remove();var p=0,v=0,g=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?v=g.headerHeight+f.gapButtonHeader:p=g.headerWidth+f.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(v=-f.gapButtonHeader+f.gapButton-g.openHeight),"dropdown"===o.type&&"left"===o.direction&&(p=-f.gapButtonHeader+f.gapButton-g.openWidth);var b={x:g.lx+p+o.pad.l,y:g.ly+v+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},T={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each(function(l,s){var c=n.select(this);c.call(m,o,l,e).call(A,o,b),c.on("click",function(){n.event.defaultPrevented||(l.execute&&(l.args2&&o.active===s?(y(e,o,0,t,r,i,-1),a.executeAPICommand(e,l.method,l.args2)):(y(e,o,0,t,r,i,s),a.executeAPICommand(e,l.method,l.args))),e.emit("plotly_buttonclicked",{menu:o,button:l,active:o.active}))}),c.on("mouseover",function(){c.call(w)}),c.on("mouseout",function(){c.call(k,o),u.call(_,o)})}),u.call(_,o),x?(T.w=Math.max(g.openWidth,g.headerWidth),T.h=b.y-T.t):(T.w=b.x-T.l,T.h=Math.max(g.openHeight,g.headerHeight)),T.direction=o.direction,i&&(u.size()?function(e,t,r,n,a,i){var o,l,s,c=a.direction,u="up"===c||"down"===c,d=a._dims,h=a.active;if(u)for(l=0,s=0;s<h;s++)l+=d.heights[s]+f.gapButton;else for(o=0,s=0;s<h;s++)o+=d.widths[s]+f.gapButton;n.enable(i,o,l),n.hbar&&n.hbar.attr("opacity","0").transition().attr("opacity","1");n.vbar&&n.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,i,o,T):function(e){var t=!!e.hbar,r=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",function(){t=!1,r||e.disable()});r&&e.vbar.transition().attr("opacity","0").each("end",function(){r=!1,t||e.disable()})}(i))}function m(e,t,r,n){e.call(x,t).call(b,t,r,n)}function x(e,t){l.ensureSingle(e,"rect",f.itemRectClassName,function(e){e.attr({rx:f.rx,ry:f.ry,"shape-rendering":"crispEdges"})}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function b(e,t,r,n){var a=l.ensureSingle(e,"text",f.itemTextClassName,function(e){e.attr({"text-anchor":"start","data-notex":1})}),i=r.label,c=n._fullLayout._meta;c&&(i=l.templateString(i,c)),a.call(o.font,t.font).text(i).call(s.convertToTspans,n)}function _(e,t){var r=t.active;e.each(function(e,a){var o=n.select(this);a===r&&t.showactive&&o.select("rect."+f.itemRectClassName).call(i.fill,f.activeColor)})}function w(e){e.select("rect."+f.itemRectClassName).call(i.fill,f.hoverColor)}function k(e,t){e.select("rect."+f.itemRectClassName).call(i.fill,t.bgcolor)}function T(e,t){var r=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},i=o.tester.selectAll("g."+f.dropdownButtonClassName).data(l.filterVisible(t.buttons));i.enter().append("g").classed(f.dropdownButtonClassName,!0);var c=-1!==["up","down"].indexOf(t.direction);i.each(function(a,i){var l=n.select(this);l.call(m,t,a,e);var d=l.select("."+f.itemTextClassName),h=d.node()&&o.bBox(d.node()).width,p=Math.max(h+f.textPadX,f.minWidth),y=t.font.size*u,v=s.lineCount(d),g=Math.max(y*v,f.minHeight)+f.textOffsetY;g=Math.ceil(g),p=Math.ceil(p),r.widths[i]=p,r.heights[i]=g,r.height1=Math.max(r.height1,g),r.width1=Math.max(r.width1,p),c?(r.totalWidth=Math.max(r.totalWidth,p),r.openWidth=r.totalWidth,r.totalHeight+=g+f.gapButton,r.openHeight+=g+f.gapButton):(r.totalWidth+=p+f.gapButton,r.openWidth+=p+f.gapButton,r.totalHeight=Math.max(r.totalHeight,g),r.openHeight=r.totalHeight)}),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,"dropdown"===t.type&&(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),i.remove();var d=r.totalWidth+t.pad.l+t.pad.r,h=r.totalHeight+t.pad.t+t.pad.b,p=e._fullLayout._size;r.lx=p.l+p.w*t.x,r.ly=p.t+p.h*(1-t.y);var y="left";l.isRightAnchor(t)&&(r.lx-=d,y="right"),l.isCenterAnchor(t)&&(r.lx-=d/2,y="center");var v="top";l.isBottomAnchor(t)&&(r.ly-=h,v="bottom"),l.isMiddleAnchor(t)&&(r.ly-=h/2,v="middle"),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),a.autoMargin(e,M(t),{x:t.x,y:t.y,l:d*({right:1,center:.5}[y]||0),r:d*({left:1,center:.5}[y]||0),b:h*({top:1,middle:.5}[v]||0),t:h*({bottom:1,middle:.5}[v]||0)})}function M(e){return f.autoMarginIdRoot+e._index}function A(e,t,r,n){n=n||{};var a=e.select("."+f.itemRectClassName),i=e.select("."+f.itemTextClassName),l=t.borderwidth,c=r.index,d=t._dims;o.setTranslate(e,l+r.x,l+r.y);var h=-1!==["up","down"].indexOf(t.direction),p=n.height||(h?d.heights[c]:d.height1);a.attr({x:0,y:0,width:n.width||(h?d.width1:d.widths[c]),height:p});var y=t.font.size*u,v=(s.lineCount(i)-1)*y/2;s.positionText(i,f.textOffsetX,p/2-v+f.textOffsetY),h?r.y+=d.heights[c]+r.yPad:r.x+=d.widths[c]+r.xPad,r.index++}function S(e,t){e.attr(f.menuIndexAttrName,t||"-1").selectAll("g."+f.dropdownButtonClassName).remove()}e.exports=function(e){var t=e._fullLayout,r=l.filterVisible(t[f.name]);function i(t){a.autoMargin(e,M(t))}var o=t._menulayer.selectAll("g."+f.containerClassName).data(r.length>0?[0]:[]);if(o.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){n.select(this).selectAll("g."+f.headerGroupClassName).each(i)}).remove(),0!==r.length){var s=o.selectAll("g."+f.headerGroupClassName).data(r,h);s.enter().append("g").classed(f.headerGroupClassName,!0);for(var c=l.ensureSingle(o,"g",f.dropdownButtonGroupClassName,function(e){e.style("pointer-events","all")}),u=0;u<r.length;u++){var m=r[u];T(e,m)}var x="updatemenus"+t._uid,b=new d(e,c,x);s.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(S)),s.exit().each(function(e){c.call(S),i(e)}).remove(),s.each(function(t){var r=n.select(this),i="dropdown"===t.type?c:null;a.manageCommandObserver(e,t,t.buttons,function(n){y(e,t,t.buttons[n.index],r,i,b,n.index,!0)}),"dropdown"===t.type?(v(e,r,c,b,t),p(c,t)&&g(e,r,c,b,t)):g(e,r,null,null,t)})}}},76908:function(e,t,r){"use strict";var n=r(73712);e.exports={moduleType:"component",name:n.name,layoutAttributes:r(88444),supplyLayoutDefaults:r(91384),draw:r(14420)}},37400:function(e,t,r){"use strict";e.exports=l;var n=r(33428),a=r(76308),i=r(43616),o=r(3400);function l(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}l.barWidth=2,l.barLength=20,l.barRadius=2,l.barPad=1,l.barColor="#808BA4",l.prototype.enable=function(e,t,r){var o=this.gd._fullLayout,s=o.width,c=o.height;this.position=e;var u,f,d,h,p=this.position.l,y=this.position.w,v=this.position.t,g=this.position.h,m=this.position.direction,x="down"===m,b="left"===m,_="up"===m,w=y,k=g;x||b||"right"===m||_||(this.position.direction="down",x=!0),x||_?(f=(u=p)+w,x?(d=v,k=(h=Math.min(d+k,c))-d):k=(h=v+k)-(d=Math.max(h-k,0))):(h=(d=v)+k,b?w=(f=p+w)-(u=Math.max(f-w,0)):(u=p,w=(f=Math.min(u+w,s))-u)),this._box={l:u,t:d,w:w,h:k};var T=y>w,M=l.barLength+2*l.barPad,A=l.barWidth+2*l.barPad,S=p,L=v+g;L+A>c&&(L=c-A);var O=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,l.barColor),T?(this.hbar=O.attr({rx:l.barRadius,ry:l.barRadius,x:S,y:L,width:M,height:A}),this._hbarXMin=S+M/2,this._hbarTranslateMax=w-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var C=g>k,D=l.barWidth+2*l.barPad,P=l.barLength+2*l.barPad,E=p+y,R=v;E+D>s&&(E=s-D);var I=this.container.selectAll("rect.scrollbar-vertical").data(C?[0]:[]);I.exit().on(".drag",null).remove(),I.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,l.barColor),C?(this.vbar=I.attr({rx:l.barRadius,ry:l.barRadius,x:E,y:R,width:D,height:P}),this._vbarYMin=R+P/2,this._vbarTranslateMax=k-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var z=this.id,N=u-.5,F=C?f+D+.5:f+.5,j=d-.5,B=T?h+A+.5:h+.5,H=o._topdefs.selectAll("#"+z).data(T||C?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",z).append("rect"),T||C?(this._clipRect=H.select("rect").attr({x:Math.floor(N),y:Math.floor(j),width:Math.ceil(F)-Math.floor(N),height:Math.ceil(B)-Math.floor(j)}),this.container.call(i.setClipUrl,z,this.gd),this.bg.attr({x:p,y:v,width:y,height:g})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),T||C){var U=n.behavior.drag().on("dragstart",function(){n.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(U);var q=n.behavior.drag().on("dragstart",function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(q),C&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,r)},l.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.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)},l.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=n.event.dx),this.vbar&&(t-=n.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=n.event.deltaY),this.vbar&&(t+=n.event.deltaY),this.setTranslate(e,t)},l.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var r=e+this._hbarXMin,a=r+this._hbarTranslateMax;e=(o.constrain(n.event.x,r,a)-r)/(a-r)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,l=i+this._vbarTranslateMax;t=(o.constrain(n.event.y,i,l)-i)/(l-i)*(this.position.h-this._box.h)}this.setTranslate(e,t)},l.prototype.setTranslate=function(e,t){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(e=o.constrain(e||0,0,r),t=o.constrain(t||0,0,n),this.translateX=e,this.translateY=t,this.container.call(i.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var a=e/r;this.hbar.call(i.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(i.setTranslate,e,t+l*this._vbarTranslateMax)}}},84284:function(e){"use strict";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(e){"use strict";e.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}},26880:function(e){"use strict";e.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(e){"use strict";e.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},13448:function(e){"use strict";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(e){"use strict";e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(e,t){"use strict";t.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],t.STYLE=t.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},9616:function(e,t){"use strict";t.xmlns="http://www.w3.org/2000/xmlns/",t.svg="http://www.w3.org/2000/svg",t.xlink="http://www.w3.org/1999/xlink",t.svgAttrs={xmlns:t.svg,"xmlns:xlink":t.xlink}},64884:function(e,t,r){"use strict";t.version=r(25788).version,r(88324),r(79288);for(var n=r(24040),a=t.register=n.register,i=r(22448),o=Object.keys(i),l=0;l<o.length;l++){var s=o[l];"_"!==s.charAt(0)&&(t[s]=i[s]),a({moduleType:"apiMethod",name:s,fn:i[s]})}a(r(65875)),a([r(79180),r(56864),r(22676),r(41592),r(7402),r(76908),r(97544),r(49692),r(41152),r(12704),r(64968),r(8932),r(55080),r(2780),r(93024),r(45460)]),a([r(6580),r(11680)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(a(window.PlotlyLocales),delete window.PlotlyLocales),t.Icons=r(9224);var c=r(93024),u=r(7316);t.Plots={resize:u.resize,graphJson:u.graphJson,sendDataToCloud:u.sendDataToCloud},t.Fx={hover:c.hover,unhover:c.unhover,loneHover:c.loneHover,loneUnhover:c.loneUnhover},t.Snapshot=r(78904),t.PlotSchema=r(73060)},9224:function(e){"use strict";e.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>","<defs>"," <style>"," .cls-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect class='cls-0' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle class='cls-5' cx='102' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='54' r='6'/>"," <circle class='cls-3' cx='54' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='54' r='6'/>"," <path class='cls-1' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path class='cls-1' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path class='cls-1' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path class='cls-1' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}},98308:function(e,t){"use strict";t.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},t.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},11864:function(e,t,r){"use strict";var n=r(20435),a=n.mod,i=n.modHalf,o=Math.PI,l=2*o;function s(e){return Math.abs(e[1]-e[0])>l-1e-14}function c(e,t){return i(t-e,l)}function u(e,t){if(s(t))return!0;var r,n;t[0]<t[1]?(r=t[0],n=t[1]):(r=t[1],n=t[0]),(r=a(r,l))>(n=a(n,l))&&(n+=l);var i=a(e,l),o=i+l;return i>=r&&i<=n||o>=r&&o<=n}function f(e,t,r,n,a,i,c){a=a||0,i=i||0;var u,f,d,h,p,y=s([r,n]);function v(e,t){return[e*Math.cos(t)+a,i-e*Math.sin(t)]}y?(u=0,f=o,d=l):r<n?(u=r,d=n):(u=n,d=r),e<t?(h=e,p=t):(h=t,p=e);var g,m=Math.abs(d-u)<=o?0:1;function x(e,t,r){return"A"+[e,e]+" "+[0,m,r]+" "+v(e,t)}return y?g=null===h?"M"+v(p,u)+x(p,f,0)+x(p,d,0)+"Z":"M"+v(h,u)+x(h,f,0)+x(h,d,0)+"ZM"+v(p,u)+x(p,f,1)+x(p,d,1)+"Z":null===h?(g="M"+v(p,u)+x(p,d,0),c&&(g+="L0,0Z")):g="M"+v(h,u)+"L"+v(p,u)+x(p,d,0)+"L"+v(h,d)+x(h,u,1)+"Z",g}e.exports={deg2rad:function(e){return e/180*o},rad2deg:function(e){return e/o*180},angleDelta:c,angleDist:function(e,t){return Math.abs(c(e,t))},isFullCircle:s,isAngleInsideSector:u,isPtInsideSector:function(e,t,r,n){return!!u(t,n)&&(r[0]<r[1]?(a=r[0],i=r[1]):(a=r[1],i=r[0]),e>=a&&e<=i);var a,i},pathArc:function(e,t,r,n,a){return f(null,e,t,r,n,a,0)},pathSector:function(e,t,r,n,a){return f(null,e,t,r,n,a,1)},pathAnnulus:function(e,t,r,n,a,i){return f(e,t,r,n,a,i,1)}}},38116:function(e,t,r){"use strict";var n=r(83160).decode,a=r(63620),i=Array.isArray,o=ArrayBuffer,l=DataView;function s(e){return o.isView(e)&&!(e instanceof l)}function c(e){return i(e)||s(e)}t.isTypedArray=s,t.isArrayOrTypedArray=c,t.isArray1D=function(e){return!c(e[0])},t.ensureArray=function(e,t){return i(e)||(e=[]),e.length=t,e};var u={u1c:"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,i1:"undefined"==typeof Int8Array?void 0:Int8Array,u1:"undefined"==typeof Uint8Array?void 0:Uint8Array,i2:"undefined"==typeof Int16Array?void 0:Int16Array,u2:"undefined"==typeof Uint16Array?void 0:Uint16Array,i4:"undefined"==typeof Int32Array?void 0:Int32Array,u4:"undefined"==typeof Uint32Array?void 0:Uint32Array,f4:"undefined"==typeof Float32Array?void 0:Float32Array,f8:"undefined"==typeof Float64Array?void 0:Float64Array};function f(e){return e.constructor===ArrayBuffer}function d(e,t,r){if(c(e)){if(c(e[0])){for(var n=r,a=0;a<e.length;a++)n=t(n,e[a].length);return n}return e.length}return 0}u.uint8c=u.u1c,u.uint8=u.u1,u.int8=u.i1,u.uint16=u.u2,u.int16=u.i2,u.uint32=u.u4,u.int32=u.i4,u.float32=u.f4,u.float64=u.f8,t.isArrayBuffer=f,t.decodeTypedArraySpec=function(e){var t=[],r=function(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}(e),a=r.dtype,i=u[a];if(!i)throw new Error('Error in dtype: "'+a+'"');var o=i.BYTES_PER_ELEMENT,l=r.bdata;f(l)||(l=n(l));var s=void 0===r.shape?[l.byteLength/o]:(""+r.shape).split(",");s.reverse();var c,d,h=s.length,p=+s[0],y=o*p,v=0;if(1===h)t=new i(l);else if(2===h)for(c=+s[1],d=0;d<c;d++)t[d]=new i(l,v,p),v+=y;else{if(3!==h)throw new Error("ndim: "+h+'is not supported with the shape:"'+r.shape+'"');c=+s[1];for(var g=+s[2],m=0;m<g;m++)for(t[m]=[],d=0;d<c;d++)t[m][d]=new i(l,v,p),v+=y}return t.bdata=r.bdata,t.dtype=r.dtype,t.shape=s.reverse().join(","),e._inputArray=t,t},t.isTypedArraySpec=function(e){return a(e)&&e.hasOwnProperty("dtype")&&"string"==typeof e.dtype&&e.hasOwnProperty("bdata")&&("string"==typeof e.bdata||f(e.bdata))&&(void 0===e.shape||e.hasOwnProperty("shape")&&("string"==typeof e.shape||"number"==typeof e.shape))},t.concat=function(){var e,t,r,n,a,o,l,s,c=[],u=!0,f=0;for(r=0;r<arguments.length;r++)(o=(n=arguments[r]).length)&&(t?c.push(n):(t=n,a=o),i(n)?e=!1:(u=!1,f?e!==n.constructor&&(e=!1):e=n.constructor),f+=o);if(!f)return[];if(!c.length)return t;if(u)return t.concat.apply(t,c);if(e){for((l=new e(f)).set(t),r=0;r<c.length;r++)n=c[r],l.set(n,a),a+=n.length;return l}for(l=new Array(f),s=0;s<t.length;s++)l[s]=t[s];for(r=0;r<c.length;r++){for(n=c[r],s=0;s<n.length;s++)l[a+s]=n[s];a+=s}return l},t.maxRowLength=function(e){return d(e,Math.max,0)},t.minRowLength=function(e){return d(e,Math.min,1/0)}},54037:function(e,t,r){"use strict";var n=r(38248),a=r(39032).BADNUM,i=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;e.exports=function(e){return"string"==typeof e&&(e=e.replace(i,"")),n(e)?Number(e):a}},73696:function(e){"use strict";e.exports=function(e){var t=e._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(e){e.regl&&e.regl.clear({color:!0,depth:!0})})}},75352:function(e){"use strict";e.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}},63064:function(e,t,r){"use strict";var n=r(38248),a=r(49760),i=r(45464),o=r(88304),l=r(76308),s=r(13448).DESELECTDIM,c=r(22296),u=r(53756).counter,f=r(20435).modHalf,d=r(38116).isArrayOrTypedArray,h=r(38116).isTypedArraySpec,p=r(38116).decodeTypedArraySpec;function y(e,r){var n=t.valObjectMeta[r.valType];if(r.arrayOk&&d(e))return!0;if(n.validateFunction)return n.validateFunction(e,r);var a={},i=a,o={set:function(e){i=e}};return n.coerceFunction(e,o,a,r),i!==a}t.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(d(e)?e:h(e)?p(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),-1===n.values.indexOf(e)?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;n<r.length;n++){var a=String(r[n]);if("/"===a.charAt(0)&&"/"===a.charAt(a.length-1)){if(new RegExp(a.substr(1,a.length-2)).test(e))return!0}else if(e===r[n])return!0}return!1}},boolean:{coerceFunction:function(e,t,r){!0===e||!1===e?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,a){!n(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,a){e%1||!n(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if("string"!=typeof e){var a="number"==typeof e;!0!==n.strict&&a?t.set(String(e)):t.set(r)}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){a(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){Array.isArray(e)&&e.length&&e.every(function(e){return a(e).isValid()})?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(o.get(e,r))}},angle:{coerceFunction:function(e,t,r){"auto"===e?t.set("auto"):n(e)?t.set(f(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var a=n.regex||u(r);"string"==typeof e&&a.test(e)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r||"string"==typeof e&&!!u(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if(-1===(n.extras||[]).indexOf(e))if("string"==typeof e){for(var a=e.split("+"),i=0;i<a.length;){var o=a[i];-1===n.flags.indexOf(o)||a.indexOf(o)<i?a.splice(i,1):i++}a.length?t.set(a.join("+")):t.set(r)}else t.set(r);else t.set(e)}},any:{coerceFunction:function(e,t,r){void 0===e?t.set(r):t.set(h(e)?p(e):e)}},info_array:{coerceFunction:function(e,r,n,a){function i(e,r,n){var a,i={set:function(e){a=e}};return void 0===n&&(n=r.dflt),t.valObjectMeta[r.valType].coerceFunction(e,i,n,r),a}if(h(e)&&(e=p(e)),d(e)){var o,l,s,c,u,f,y=2===a.dimensions||"1-2"===a.dimensions&&Array.isArray(e)&&d(e[0]),v=a.items,g=[],m=Array.isArray(v),x=m&&y&&d(v[0]),b=y&&m&&!x,_=m&&!b?v.length:e.length;if(n=Array.isArray(n)?n:[],y)for(o=0;o<_;o++)for(g[o]=[],s=d(e[o])?e[o]:[],u=b?v.length:m?v[o].length:s.length,l=0;l<u;l++)c=b?v[l]:m?v[o][l]:v,void 0!==(f=i(s[l],c,(n[o]||[])[l]))&&(g[o][l]=f);else for(o=0;o<_;o++)void 0!==(f=i(e[o],m?v[o]:v,n[o]))&&(g[o]=f);r.set(g)}else r.set(n)},validateFunction:function(e,t){if(!d(e))return!1;var r=t.items,n=Array.isArray(r),a=2===t.dimensions;if(!t.freeLength&&e.length!==r.length)return!1;for(var i=0;i<e.length;i++)if(a){if(!d(e[i])||!t.freeLength&&e[i].length!==r[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!y(e[i][o],n?r[i][o]:r))return!1}else if(!y(e[i],n?r[i]:r))return!1;return!0}}},t.coerce=function(e,r,n,a,i){var o=c(n,a).get(),l=c(e,a),s=c(r,a),u=l.get(),f=r._template;if(void 0===u&&f&&(u=c(f,a).get(),f=0),void 0===i&&(i=o.dflt),o.arrayOk){if(d(u))return s.set(u),u;if(h(u))return u=p(u),s.set(u),u}var v=t.valObjectMeta[o.valType].coerceFunction;v(u,s,i,o);var g=s.get();return f&&g===i&&!y(u,o)&&(v(u=c(f,a).get(),s,i,o),g=s.get()),g},t.coerce2=function(e,r,n,a,i){var o=c(e,a),l=t.coerce(e,r,n,a,i),s=o.get();return null!=s&&l},t.coerceFont=function(e,t,r){var n={};return r=r||{},n.family=e(t+".family",r.family),n.size=e(t+".size",r.size),n.color=e(t+".color",r.color),n},t.coercePattern=function(e,t,r,n){if(e(t+".shape")){e(t+".solidity"),e(t+".size");var a="overlay"===e(t+".fillmode");if(!n){var i=e(t+".bgcolor",a?r:void 0);e(t+".fgcolor",a?l.contrast(i):r)}e(t+".fgopacity",a?.5:1)}},t.coerceHoverinfo=function(e,r,n){var a,o=r._module.attributes,l=o.hoverinfo?o:i,s=l.hoverinfo;if(1===n._dataLength){var c="all"===s.dflt?s.flags.slice():s.dflt.split("+");c.splice(c.indexOf("name"),1),a=c.join("+")}return t.coerce(e,r,l,"hoverinfo",a)},t.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var r,n,a=e.marker.opacity;if(void 0!==a)d(a)||e.selected||e.unselected||(r=a,n=s*a),t("selected.marker.opacity",r),t("unselected.marker.opacity",n)}},t.validate=y},67555:function(e,t,r){"use strict";var n,a,i=r(94336).Yn,o=r(38248),l=r(24248),s=r(20435).mod,c=r(39032),u=c.BADNUM,f=c.ONEDAY,d=c.ONEHOUR,h=c.ONEMIN,p=c.ONESEC,y=c.EPOCHJD,v=r(24040),g=r(94336).E9,m=/^\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,x=/^\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,b=(new Date).getFullYear()-70;function _(e){return e&&v.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function w(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,r){var n=function(e,t){return _(e)?t?v.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:v.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}(e,!!r);if(r<2)return n;var a=t.dateTime2ms(n,e);return a+=f*(r-1),t.ms2DateTime(a,0,e)},t.dfltRange=function(e){return _(e)?v.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},t.isJSDate=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.getTime},t.dateTime2ms=function(e,r){if(t.isJSDate(e)){var i=e.getTimezoneOffset()*h,o=(e.getUTCMinutes()-e.getMinutes())*h+(e.getUTCSeconds()-e.getSeconds())*p+(e.getUTCMilliseconds()-e.getMilliseconds());if(o){var l=3*h;i=i-l/2+s(o-i+l/2,l)}return(e=Number(e)-i)>=n&&e<=a?e:u}if("string"!=typeof e&&"number"!=typeof e)return u;e=String(e);var c=_(r),g=e.charAt(0);!c||"G"!==g&&"g"!==g||(e=e.substr(1),r="");var w=c&&"chinese"===r.substr(0,7),k=e.match(w?x:m);if(!k)return u;var T=k[1],M=k[3]||"1",A=Number(k[5]||1),S=Number(k[7]||0),L=Number(k[9]||0),O=Number(k[11]||0);if(c){if(2===T.length)return u;var C;T=Number(T);try{var D=v.getComponentMethod("calendars","getCal")(r);if(w){var P="i"===M.charAt(M.length-1);M=parseInt(M,10),C=D.newDate(T,D.toMonthIndex(T,M,P),A)}else C=D.newDate(T,Number(M),A)}catch(e){return u}return C?(C.toJD()-y)*f+S*d+L*h+O*p:u}T=2===T.length?(Number(T)+2e3-b)%100+b:Number(T),M-=1;var E=new Date(Date.UTC(2e3,M,A,S,L));return E.setUTCFullYear(T),E.getUTCMonth()!==M?u:E.getUTCDate()!==A?u:E.getTime()+O*p},n=t.MIN_MS=t.dateTime2ms("-9999"),a=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,r){return t.dateTime2ms(e,r)!==u};var k=90*f,T=3*d,M=5*h;function A(e,t,r,n,a){if((t||r||n||a)&&(e+=" "+w(t,2)+":"+w(r,2),(n||a)&&(e+=":"+w(n,2),a))){for(var i=4;a%10==0;)i-=1,a/=10;e+="."+w(a,i)}return e}t.ms2DateTime=function(e,t,r){if("number"!=typeof e||!(e>=n&&e<=a))return u;t||(t=0);var i,o,l,c,m,x,b=Math.floor(10*s(e+.05,1)),w=Math.round(e-b/10);if(_(r)){var S=Math.floor(w/f)+y,L=Math.floor(s(e,f));try{i=v.getComponentMethod("calendars","getCal")(r).fromJD(S).formatDate("yyyy-mm-dd")}catch(e){i=g("G%Y-%m-%d")(new Date(w))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=t<k?Math.floor(L/d):0,l=t<k?Math.floor(L%d/h):0,c=t<T?Math.floor(L%h/p):0,m=t<M?L%p*10+b:0}else x=new Date(w),i=g("%Y-%m-%d")(x),o=t<k?x.getUTCHours():0,l=t<k?x.getUTCMinutes():0,c=t<T?x.getUTCSeconds():0,m=t<M?10*x.getUTCMilliseconds()+b:0;return A(i,o,l,c,m)},t.ms2DateTimeLocal=function(e){if(!(e>=n+f&&e<=a-f))return u;var t=Math.floor(10*s(e+.05,1)),r=new Date(Math.round(e-t/10));return A(i("%Y-%m-%d")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+t)},t.cleanDate=function(e,r,n){if(e===u)return r;if(t.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(_(n))return l.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==r)return r}else if(!t.isDateTime(e,n))return l.error("unrecognized date",e),r;return e};var S=/%\d?f/g,L=/%h/g,O={1:"1",2:"1",3:"2",4:"2"};function C(e,t,r,n){e=e.replace(S,function(e){var r=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,"")||"0"});var a=new Date(Math.floor(t+.05));if(e=e.replace(L,function(){return O[r("%q")(a)]}),_(n))try{e=v.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return r(e)(a)}var D=[59,59.9,59.99,59.999,59.9999];t.formatDate=function(e,t,r,n,a,i){if(a=_(a)&&a,!t)if("y"===r)t=i.year;else if("m"===r)t=i.month;else{if("d"!==r)return function(e,t){var r=s(e+.05,f),n=w(Math.floor(r/d),2)+":"+w(s(Math.floor(r/h),60),2);if("M"!==t){o(t)||(t=0);var a=(100+Math.min(s(e/p,60),D[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}(e,r)+"\n"+C(i.dayMonthYear,e,n,a);t=i.dayMonth+"\n"+i.year}return C(t,e,n,a)};var P=3*f;t.incrementMonth=function(e,t,r){r=_(r)&&r;var n=s(e,f);if(e=Math.round(e-n),r)try{var a=Math.round(e/f)+y,i=v.getComponentMethod("calendars","getCal")(r),o=i.fromJD(a);return t%12?i.add(o,t,"m"):i.add(o,t/12,"y"),(o.toJD()-y)*f+n}catch(t){l.error("invalid ms "+e+" in calendar "+r)}var c=new Date(e+P);return c.setUTCMonth(c.getUTCMonth()+t)+n-P},t.findExactDates=function(e,t){for(var r,n,a=0,i=0,l=0,s=0,c=_(t)&&v.getComponentMethod("calendars","getCal")(t),u=0;u<e.length;u++)if(n=e[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+y)).day()?1===r.month()?a++:i++:l++}catch(e){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?a++:i++:l++}else s++;l+=i+=a;var d=e.length-s;return{exactYears:a/d,exactMonths:i/d,exactDays:l/d}}},52200:function(e,t,r){"use strict";var n=r(33428),a=r(24248),i=r(52248),o=r(36524);function l(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function s(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);i||((i=document.createElement("style")).setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var o=i.sheet;o.insertRule?o.insertRule(t+"{"+r+"}",0):o.addRule?o.addRule(t,r,0):a.warn("addStyleRule failed")}function c(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return"none"===r?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(e){return+e})}function u(e){for(var t=[];f(e);)t.push(e),e=e.parentNode;return t}function f(e){return e&&(e instanceof Element||e instanceof HTMLElement)}e.exports={getGraphDiv:function(e){var t;if("string"==typeof e){if(null===(t=document.getElementById(e)))throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null==e)throw new Error("DOM element provided is null or undefined");return e},isPlotDiv:function(e){var t=n.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")},removeElement:l,addStyleRule:function(e,t){s("global",e,t)},addRelatedStyleRule:s,deleteRelatedStyleRule:function(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&l(r)},getFullTransformMatrix:function(e){var t=u(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(e){var t=c(e);if(t){var n=i.convertCssMatrix(t);r=o.multiply(r,r,n)}}),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}}},95924:function(e,t,r){"use strict";var n=r(61252).EventEmitter,a={init:function(e){if(e._ev instanceof n)return e;var t=new n,r=new n;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,a){"undefined"!=typeof jQuery&&jQuery(e).trigger(n,a),t.emit(n,a),r.emit(n,a)},e},triggerHandler:function(e,t,r){var n,a;"undefined"!=typeof jQuery&&(n=jQuery(e).triggerHandler(t,r));var i=e._ev;if(!i)return n;var o,l=i._events[t];if(!l)return n;function s(e){return e.listener?(i.removeListener(t,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(i,[r]))):e.apply(i,[r])}for(l=Array.isArray(l)?l:[l],o=0;o<l.length-1;o++)s(l[o]);return a=s(l[o]),void 0!==n?n:a},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};e.exports=a},92880:function(e,t,r){"use strict";var n=r(63620),a=Array.isArray;function i(e,t,r,o){var l,s,c,u,f,d,h=e[0],p=e.length;if(2===p&&a(h)&&a(e[1])&&0===h.length){if(function(e,t){var r,n;for(r=0;r<e.length;r++){if(null!==(n=e[r])&&"object"==typeof n)return!1;void 0!==n&&(t[r]=n)}return!0}(e[1],h))return h;h.splice(0,h.length)}for(var y=1;y<p;y++)for(s in l=e[y])c=h[s],u=l[s],o&&a(u)?h[s]=u:t&&u&&(n(u)||(f=a(u)))?(f?(f=!1,d=c&&a(c)?c:[]):d=c&&n(c)?c:{},h[s]=i([d,u],t,r,o)):(void 0!==u||r)&&(h[s]=u);return h}t.extendFlat=function(){return i(arguments,!1,!1,!1)},t.extendDeep=function(){return i(arguments,!0,!1,!1)},t.extendDeepAll=function(){return i(arguments,!0,!0,!1)},t.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},68944:function(e){"use strict";e.exports=function(e){for(var t={},r=[],n=0,a=0;a<e.length;a++){var i=e[a];1!==t[i]&&(t[i]=1,r[n++]=i)}return r}},43880:function(e){"use strict";function t(e){return!0===e.visible}function r(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}e.exports=function(e){for(var n,a=(n=e,Array.isArray(n)&&Array.isArray(n[0])&&n[0][0]&&n[0][0].trace?r:t),i=[],o=0;o<e.length;o++){var l=e[o];a(l)&&i.push(l)}return i}},92348:function(e,t,r){"use strict";var n,a,i,o=r(20435).mod;function l(e,t,r,n,a,i,o,l){var s=r-e,c=a-e,u=o-a,f=n-t,d=i-t,h=l-i,p=s*h-u*f;if(0===p)return null;var y=(c*h-u*d)/p,v=(c*f-s*d)/p;return v<0||v>1||y<0||y>1?null:{x:e+s*y,y:t+f*y}}function s(e,t,r,n,a){var i=n*e+a*t;if(i<0)return n*n+a*a;if(i>r){var o=n-e,l=a-t;return o*o+l*l}var s=n*t-a*e;return s*s/r}t.segmentsIntersect=l,t.segmentDistance=function(e,t,r,n,a,i,o,c){if(l(e,t,r,n,a,i,o,c))return 0;var u=r-e,f=n-t,d=o-a,h=c-i,p=u*u+f*f,y=d*d+h*h,v=Math.min(s(u,f,p,a-e,i-t),s(u,f,p,o-e,c-t),s(d,h,y,e-a,t-i),s(d,h,y,r-a,n-i));return Math.sqrt(v)},t.getTextLocation=function(e,t,r,l){if(e===a&&l===i||(n={},a=e,i=l),n[r])return n[r];var s=e.getPointAtLength(o(r-l/2,t)),c=e.getPointAtLength(o(r+l/2,t)),u=Math.atan((c.y-s.y)/(c.x-s.x)),f=e.getPointAtLength(o(r,t)),d={x:(4*f.x+s.x+c.x)/6,y:(4*f.y+s.y+c.y)/6,theta:u};return n[r]=d,d},t.clearLocationCache=function(){a=null},t.getVisibleSegment=function(e,t,r){var n,a,i=t.left,o=t.right,l=t.top,s=t.bottom,c=0,u=e.getTotalLength(),f=u;function d(t){var r=e.getPointAtLength(t);0===t?n=r:t===u&&(a=r);var c=r.x<i?i-r.x:r.x>o?r.x-o:0,f=r.y<l?l-r.y:r.y>s?r.y-s:0;return Math.sqrt(c*c+f*f)}for(var h=d(c);h;){if((c+=h+r)>f)return;h=d(c)}for(h=d(f);h;){if(c>(f-=h+r))return;h=d(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&&f===u&&Math.abs(n.x-a.x)<.1&&Math.abs(n.y-a.y)<.1}},t.findPointOnPath=function(e,t,r,n){for(var a,i,o,l=(n=n||{}).pathLength||e.getTotalLength(),s=n.tolerance||.001,c=n.iterationLimit||30,u=e.getPointAtLength(0)[r]>e.getPointAtLength(l)[r]?-1:1,f=0,d=0,h=l;f<c;){if(a=(d+h)/2,o=(i=e.getPointAtLength(a))[r]-t,Math.abs(o)<s)return i;u*o>0?h=a:d=a,f++}return i}},35536:function(e){"use strict";e.exports=function(e){return e}},1396:function(e){"use strict";e.exports=function(e,t){if(!t)return e;var r=1/Math.abs(t),n=r>1?(r*e+r*t)/r:e+t,a=String(n).length;if(a>16){var i=String(t).length;if(a>=String(e).length+i){var o=parseFloat(n).toPrecision(12);-1===o.indexOf("e+")&&(n=+o)}}return n}},3400:function(e,t,r){"use strict";var n=r(33428),a=r(94336).E9,i=r(57624).E9,o=r(38248),l=r(39032),s=l.FP_SAFE,c=-s,u=l.BADNUM,f=e.exports={};f.adjustFormat=function(e){return!e||/^\d[.]\df/.test(e)||/[.]\d%/.test(e)?e:"0.f"===e?"~f":/^\d%/.test(e)?"~%":/^\ds/.test(e)?"~s":!/^[~,.0$]/.test(e)&&/[&fps]/.test(e)?"~"+e:e};var d={};f.warnBadFormat=function(e){var t=String(e);d[t]||(d[t]=1,f.warn('encountered bad format: "'+t+'"'))},f.noFormat=function(e){return String(e)},f.numberFormat=function(e){var t;try{t=i(f.adjustFormat(e))}catch(t){return f.warnBadFormat(e),f.noFormat}return t},f.nestedProperty=r(22296),f.keyedContainer=r(37804),f.relativeAttr=r(23193),f.isPlainObject=r(63620),f.toLogRange=r(36896),f.relinkPrivateKeys=r(51528);var h=r(38116);f.isArrayBuffer=h.isArrayBuffer,f.isTypedArray=h.isTypedArray,f.isArrayOrTypedArray=h.isArrayOrTypedArray,f.isArray1D=h.isArray1D,f.ensureArray=h.ensureArray,f.concat=h.concat,f.maxRowLength=h.maxRowLength,f.minRowLength=h.minRowLength;var p=r(20435);f.mod=p.mod,f.modHalf=p.modHalf;var y=r(63064);f.valObjectMeta=y.valObjectMeta,f.coerce=y.coerce,f.coerce2=y.coerce2,f.coerceFont=y.coerceFont,f.coercePattern=y.coercePattern,f.coerceHoverinfo=y.coerceHoverinfo,f.coerceSelectionMarkerOpacity=y.coerceSelectionMarkerOpacity,f.validate=y.validate;var v=r(67555);f.dateTime2ms=v.dateTime2ms,f.isDateTime=v.isDateTime,f.ms2DateTime=v.ms2DateTime,f.ms2DateTimeLocal=v.ms2DateTimeLocal,f.cleanDate=v.cleanDate,f.isJSDate=v.isJSDate,f.formatDate=v.formatDate,f.incrementMonth=v.incrementMonth,f.dateTick0=v.dateTick0,f.dfltRange=v.dfltRange,f.findExactDates=v.findExactDates,f.MIN_MS=v.MIN_MS,f.MAX_MS=v.MAX_MS;var g=r(14952);f.findBin=g.findBin,f.sorterAsc=g.sorterAsc,f.sorterDes=g.sorterDes,f.distinctVals=g.distinctVals,f.roundUp=g.roundUp,f.sort=g.sort,f.findIndexOfMin=g.findIndexOfMin,f.sortObjectKeys=r(95376);var m=r(63084);f.aggNums=m.aggNums,f.len=m.len,f.mean=m.mean,f.median=m.median,f.midRange=m.midRange,f.variance=m.variance,f.stdev=m.stdev,f.interp=m.interp;var x=r(52248);f.init2dArray=x.init2dArray,f.transposeRagged=x.transposeRagged,f.dot=x.dot,f.translationMatrix=x.translationMatrix,f.rotationMatrix=x.rotationMatrix,f.rotationXYMatrix=x.rotationXYMatrix,f.apply3DTransform=x.apply3DTransform,f.apply2DTransform=x.apply2DTransform,f.apply2DTransform2=x.apply2DTransform2,f.convertCssMatrix=x.convertCssMatrix,f.inverseTransformMatrix=x.inverseTransformMatrix;var b=r(11864);f.deg2rad=b.deg2rad,f.rad2deg=b.rad2deg,f.angleDelta=b.angleDelta,f.angleDist=b.angleDist,f.isFullCircle=b.isFullCircle,f.isAngleInsideSector=b.isAngleInsideSector,f.isPtInsideSector=b.isPtInsideSector,f.pathArc=b.pathArc,f.pathSector=b.pathSector,f.pathAnnulus=b.pathAnnulus;var _=r(98308);f.isLeftAnchor=_.isLeftAnchor,f.isCenterAnchor=_.isCenterAnchor,f.isRightAnchor=_.isRightAnchor,f.isTopAnchor=_.isTopAnchor,f.isMiddleAnchor=_.isMiddleAnchor,f.isBottomAnchor=_.isBottomAnchor;var w=r(92348);f.segmentsIntersect=w.segmentsIntersect,f.segmentDistance=w.segmentDistance,f.getTextLocation=w.getTextLocation,f.clearLocationCache=w.clearLocationCache,f.getVisibleSegment=w.getVisibleSegment,f.findPointOnPath=w.findPointOnPath;var k=r(92880);f.extendFlat=k.extendFlat,f.extendDeep=k.extendDeep,f.extendDeepAll=k.extendDeepAll,f.extendDeepNoArrays=k.extendDeepNoArrays;var T=r(24248);f.log=T.log,f.warn=T.warn,f.error=T.error;var M=r(53756);f.counterRegex=M.counter;var A=r(91200);f.throttle=A.throttle,f.throttleDone=A.done,f.clearThrottle=A.clear;var S=r(52200);function L(e){var t={};for(var r in e)for(var n=e[r],a=0;a<n.length;a++)t[n[a]]=+r;return t}f.getGraphDiv=S.getGraphDiv,f.isPlotDiv=S.isPlotDiv,f.removeElement=S.removeElement,f.addStyleRule=S.addStyleRule,f.addRelatedStyleRule=S.addRelatedStyleRule,f.deleteRelatedStyleRule=S.deleteRelatedStyleRule,f.getFullTransformMatrix=S.getFullTransformMatrix,f.getElementTransformMatrix=S.getElementTransformMatrix,f.getElementAndAncestors=S.getElementAndAncestors,f.equalDomRects=S.equalDomRects,f.clearResponsive=r(75352),f.preserveDrawingBuffer=r(34296),f.makeTraceGroups=r(30988),f._=r(98356),f.notifier=r(41792),f.filterUnique=r(68944),f.filterVisible=r(43880),f.pushUnique=r(52416),f.increment=r(1396),f.cleanNumber=r(54037),f.ensureNumber=function(e){return o(e)?(e=Number(e))>s||e<c?u:e:u},f.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(o(e)&&e>=0&&e%1==0)},f.noop=r(16628),f.identity=r(35536),f.repeat=function(e,t){for(var r=new Array(t),n=0;n<t;n++)r[n]=e;return r},f.swapAttrs=function(e,t,r,n){r||(r="x"),n||(n="y");for(var a=0;a<t.length;a++){var i=t[a],o=f.nestedProperty(e,i.replace("?",r)),l=f.nestedProperty(e,i.replace("?",n)),s=o.get();o.set(l.get()),l.set(s)}},f.raiseToTop=function(e){e.parentNode.appendChild(e)},f.cancelTransition=function(e){return e.transition().duration(0)},f.constrain=function(e,t,r){return t>r?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))},f.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r},f.simpleMap=function(e,t,r,n,a){for(var i=e.length,o=new Array(i),l=0;l<i;l++)o[l]=t(e[l],r,n,a);return o},f.randstr=function e(t,r,n,a){if(n||(n=16),void 0===r&&(r=24),r<=0)return"0";var i,o,l=Math.log(Math.pow(2,r))/Math.log(n),s="";for(i=2;l===1/0;i*=2)l=Math.log(Math.pow(2,r/i))/Math.log(n)*i;var c=l-Math.floor(l);for(i=0;i<Math.floor(l);i++)s=Math.floor(Math.random()*n).toString(n)+s;c&&(o=Math.pow(n,c),s=Math.floor(Math.random()*o).toString(n)+s);var u=parseInt(s,n);return t&&t[s]||u!==1/0&&u>=Math.pow(2,r)?a>10?(f.warn("randstr failed uniqueness"),s):e(t,r,n,(a||0)+1):s},f.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={optionList:[],_newoption:function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)}};return r["_"+t]=e,r},f.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var r,n,a,i,o=e.length,l=2*o,s=2*t-1,c=new Array(s),u=new Array(o);for(r=0;r<s;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/t))/(2*t);for(r=0;r<o;r++){for(i=0,n=0;n<s;n++)(a=r+n+1-t)<-o?a-=l*Math.round(a/l):a>=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=o&&(a=l-1-a),i+=e[a]*c[n];u[r]=i}return u},f.syncOrAsync=function(e,t,r){var n;function a(){return f.syncOrAsync(e,t,r)}for(;e.length;)if((n=(0,e.splice(0,1)[0])(t))&&n.then)return n.then(a);return r&&r(t)},f.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},f.noneOrAll=function(e,t,r){if(e){var n,a=!1,i=!0;for(n=0;n<r.length;n++)null!=e[r[n]]?a=!0:i=!1;if(a&&!i)for(n=0;n<r.length;n++)e[r[n]]=t[r[n]]}},f.mergeArray=function(e,t,r,n){var a="function"==typeof n;if(f.isArrayOrTypedArray(e))for(var i=Math.min(e.length,t.length),o=0;o<i;o++){var l=e[o];t[o][r]=a?n(l):l}},f.mergeArrayCastPositive=function(e,t,r){return f.mergeArray(e,t,r,function(e){var t=+e;return isFinite(t)&&t>0?t:0})},f.fillArray=function(e,t,r,n){if(n=n||f.identity,f.isArrayOrTypedArray(e))for(var a=0;a<t.length;a++)t[a][r]=n(e[a])},f.castOption=function(e,t,r,n){n=n||f.identity;var a=f.nestedProperty(e,r).get();return f.isArrayOrTypedArray(a)?Array.isArray(t)&&f.isArrayOrTypedArray(a[t[0]])?n(a[t[0]][t[1]]):n(a[t]):a},f.extractOption=function(e,t,r,n){if(r in e)return e[r];var a=f.nestedProperty(t,n).get();return Array.isArray(a)?void 0:a},f.tagSelected=function(e,t,r){var n,a,i=t.selectedpoints,o=t._indexToPoints;o&&(n=L(o));for(var l=0;l<i.length;l++){var s=i[l];if(f.isIndex(s)||f.isArrayOrTypedArray(s)&&f.isIndex(s[0])&&f.isIndex(s[1])){var c=n?n[s]:s,u=r?r[c]:c;void 0!==(a=u)&&a<e.length&&(e[u].selected=1)}}},f.selIndices2selPoints=function(e){var t=e.selectedpoints,r=e._indexToPoints;if(r){for(var n=L(r),a=[],i=0;i<t.length;i++){var o=t[i];if(f.isIndex(o)){var l=n[o];f.isIndex(l)&&a.push(l)}}return a}return t},f.getTargetArray=function(e,t){var r=t.target;if("string"==typeof r&&r){var n=f.nestedProperty(e,r).get();return!!f.isArrayOrTypedArray(n)&&n}return!!f.isArrayOrTypedArray(r)&&r},f.minExtend=function e(t,r,n){var a={};"object"!=typeof r&&(r={});var i,o,l,s="pieLike"===n?-1:3,c=Object.keys(t);for(i=0;i<c.length;i++)l=t[o=c[i]],"_"!==o.charAt(0)&&"function"!=typeof l&&("module"===o?a[o]=l:Array.isArray(l)?a[o]="colorscale"===o||-1===s?l.slice():l.slice(0,s):f.isTypedArray(l)?a[o]=-1===s?l.subarray():l.subarray(0,s):a[o]=l&&"object"==typeof l?e(t[o],r[o],n):l);for(c=Object.keys(r),i=0;i<c.length;i++)"object"==typeof(l=r[o=c[i]])&&o in a&&"object"==typeof a[o]||(a[o]=l);return a},f.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},f.containsAny=function(e,t){for(var r=0;r<t.length;r++)if(-1!==e.indexOf(t[r]))return!0;return!1},f.isIE=function(){return void 0!==window.navigator.msSaveBlob};var O=/Version\/[\d\.]+.*Safari/;f.isSafari=function(){return O.test(window.navigator.userAgent)};var C=/iPad|iPhone|iPod/;f.isIOS=function(){return C.test(window.navigator.userAgent)};var D=/Firefox\/(\d+)\.\d+/;f.getFirefoxVersion=function(){var e=D.exec(window.navigator.userAgent);if(e&&2===e.length){var t=parseInt(e[1]);if(!isNaN(t))return t}return null},f.isD3Selection=function(e){return e instanceof n.selection},f.ensureSingle=function(e,t,r,n){var a=e.select(t+(r?"."+r:""));if(a.size())return a;var i=e.append(t);return r&&i.classed(r,!0),n&&i.call(n),i},f.ensureSingleById=function(e,t,r,n){var a=e.select(t+"#"+r);if(a.size())return a;var i=e.append(t).attr("id",r);return n&&i.call(n),i},f.objectFromPath=function(e,t){for(var r,n=e.split("."),a=r={},i=0;i<n.length;i++){var o=n[i],l=null,s=n[i].match(/(.*)\[([0-9]+)\]/);s?(o=s[1],l=s[2],r=r[o]=[],i===n.length-1?r[l]=t:r[l]={},r=r[l]):(i===n.length-1?r[o]=t:r[o]={},r=r[o])}return a};var P=/^([^\[\.]+)\.(.+)?/,E=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function R(e){return"__"===e.slice(0,2)}f.expandObjectPaths=function(e){var t,r,n,a,i,o,l;if("object"==typeof e&&!Array.isArray(e))for(r in e)if(e.hasOwnProperty(r))if(t=r.match(P)){if(a=e[r],R(n=t[1]))continue;delete e[r],e[n]=f.extendDeepNoArrays(e[n]||{},f.objectFromPath(r,f.expandObjectPaths(a))[n])}else if(t=r.match(E)){if(a=e[r],R(n=t[1]))continue;if(i=parseInt(t[2]),delete e[r],e[n]=e[n]||[],"."===t[3])l=t[4],o=e[n][i]=e[n][i]||{},f.extendDeepNoArrays(o,f.objectFromPath(l,f.expandObjectPaths(a)));else{if(R(n))continue;e[n][i]=f.expandObjectPaths(a)}}else{if(R(r))continue;e[r]=f.expandObjectPaths(e[r])}return e},f.numSeparate=function(e,t,r){if(r||(r=!1),"string"!=typeof t||0===t.length)throw new Error("Separator string required for formatting!");"number"==typeof e&&(e=String(e));var n=/(\d+)(\d{3})/,a=t.charAt(0),i=t.charAt(1),o=e.split("."),l=o[0],s=o.length>1?a+o[1]:"";if(i&&(o.length>1||l.length>4||r))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s},f.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var I=/^\w*$/;f.templateString=function(e,t){var r={};return e.replace(f.TEMPLATE_STRING_REGEX,function(e,n){var a;return I.test(n)?a=t[n]:(r[n]=r[n]||f.nestedProperty(t,n).get,a=r[n]()),f.isValidTextValue(a)?a:""})};var z={max:10,count:0,name:"hovertemplate"};f.hovertemplateString=function(){return H.apply(z,arguments)};var N={max:10,count:0,name:"texttemplate"};f.texttemplateString=function(){return H.apply(N,arguments)};var F=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;var j={max:10,count:0,name:"texttemplate",parseMultDiv:!0};f.texttemplateStringForShapes=function(){return H.apply(j,arguments)};var B=/^[:|\|]/;function H(e,t,r){var n=this,i=arguments;t||(t={});var o={};return e.replace(f.TEMPLATE_STRING_REGEX,function(e,l,s){var c="_xother"===l||"_yother"===l,u="_xother_"===l||"_yother_"===l,d="xother_"===l||"yother_"===l,h="xother"===l||"yother"===l||c||d||u,p=l;(c||u)&&(p=p.substring(1)),(d||u)&&(p=p.substring(0,p.length-1));var y,v,g,m=null,x=null;if(n.parseMultDiv){var b=function(e){var t=e.match(F);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}(p);p=b.key,m=b.op,x=b.number}if(h){if(void 0===(y=t[p]))return""}else for(g=3;g<i.length;g++)if(v=i[g]){if(v.hasOwnProperty(p)){y=v[p];break}if(I.test(p)||(y=f.nestedProperty(v,p).get(),(y=o[p]||f.nestedProperty(v,p).get())&&(o[p]=y)),void 0!==y)break}if(void 0!==y&&("*"===m&&(y*=x),"/"===m&&(y/=x)),void 0===y&&n)return n.count<n.max&&(f.warn("Variable '"+p+"' in "+n.name+" could not be found!"),y=e),n.count===n.max&&f.warn("Too many "+n.name+" warnings - additional warnings will be suppressed"),n.count++,e;if(s){var _;if(":"===s[0]&&(y=(_=r?r.numberFormat:f.numberFormat)(s.replace(B,""))(y)),"|"===s[0]){_=r?r.timeFormat:a;var w=f.dateTime2ms(y);y=f.formatDate(w,s.replace(B,""),!1,_)}}else{var k=p+"Label";t.hasOwnProperty(k)&&(y=t[k])}return h&&(y="("+y+")",(c||u)&&(y=" "+y),(d||u)&&(y+=" ")),y})}f.subplotSort=function(e,t){for(var r=Math.min(e.length,t.length)+1,n=0,a=0,i=0;i<r;i++){var o=e.charCodeAt(i)||0,l=t.charCodeAt(i)||0,s=o>=48&&o<=57,c=l>=48&&l<=57;if(s&&(n=10*n+o-48),c&&(a=10*a+l-48),!s||!c){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var U=2e9;f.seedPseudoRandom=function(){U=2e9},f.pseudoRandom=function(){var e=U;return U=(69069*U+1)%4294967296,Math.abs(U-e)<429496729?f.pseudoRandom():U/4294967296},f.fillText=function(e,t,r){var n=Array.isArray(r)?function(e){r.push(e)}:function(e){r.text=e},a=f.extractOption(e,t,"htx","hovertext");if(f.isValidTextValue(a))return n(a);var i=f.extractOption(e,t,"tx","text");return f.isValidTextValue(i)?n(i):void 0},f.isValidTextValue=function(e){return e||0===e},f.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n<t;n++)-1!==r.indexOf(".")&&(r=(r=r.replace("0%","%")).replace(".%","%"));return r},f.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||"none"===t},f.strTranslate=function(e,t){return e||t?"translate("+e+","+t+")":""},f.strRotate=function(e){return e?"rotate("+e+")":""},f.strScale=function(e){return 1!==e?"scale("+e+")":""},f.getTextTransform=function(e){var t=e.noCenter,r=e.textX,n=e.textY,a=e.targetX,i=e.targetY,o=e.anchorX||0,l=e.anchorY||0,s=e.rotate,c=e.scale;return c?c>1&&(c=1):c=0,f.strTranslate(a-c*(r+o),i-c*(n+l))+f.strScale(c)+(s?"rotate("+s+(t?"":" "+r+" "+n)+")":"")},f.setTransormAndDisplay=function(e,t){e.attr("transform",f.getTextTransform(t)),e.style("display",t.scale?null:"none")},f.ensureUniformFontSize=function(e,t){var r=f.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r},f.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)},f.bigFont=function(e){return Math.round(1.2*e)};var q=f.getFirefoxVersion(),Y=null!==q&&q<86;f.getPositionFromD3Event=function(){return Y?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},63620:function(e){"use strict";e.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")}},37804:function(e,t,r){"use strict";var n=r(22296),a=/^\w*$/;e.exports=function(e,t,r,i){var o,l,s;r=r||"name",i=i||"value";var c={};t&&t.length?(s=n(e,t),l=s.get()):l=e,t=t||"";var u={};if(l)for(o=0;o<l.length;o++)u[l[o][r]]=o;var f=a.test(i),d={set:function(e,t){var a=null===t?4:0;if(!l){if(!s||4===a)return;l=[],s.set(l)}var o=u[e];if(void 0===o){if(4===a)return;a|=3,o=l.length,u[e]=o}else t!==(f?l[o][i]:n(l[o],i).get())&&(a|=2);var h=l[o]=l[o]||{};return h[r]=e,f?h[i]=t:n(h,i).set(t),null!==t&&(a&=-5),c[o]=c[o]|a,d},get:function(e){if(l){var t=u[e];return void 0===t?void 0:f?l[t][i]:n(l[t],i).get()}},rename:function(e,t){var n=u[e];return void 0===n?d:(c[n]=1|c[n],u[t]=n,delete u[e],l[n][r]=t,d)},remove:function(e){var t=u[e];if(void 0===t)return d;var a=l[t];if(Object.keys(a).length>2)return c[t]=2|c[t],d.set(e,null);if(f){for(o=t;o<l.length;o++)c[o]=3|c[o];for(o=t;o<l.length;o++)u[l[o][r]]--;l.splice(t,1),delete u[e]}else n(a,i).set(null),c[t]=6|c[t];return d},constructUpdate:function(){for(var e,a,o={},s=Object.keys(c),u=0;u<s.length;u++)a=s[u],e=t+"["+a+"]",l[a]?(1&c[a]&&(o[e+"."+r]=l[a][r]),2&c[a]&&(o[e+"."+i]=f?4&c[a]?null:l[a][i]:4&c[a]?null:n(l[a],i).get())):o[e]=null;return o}};return d}},98356:function(e,t,r){"use strict";var n=r(24040);e.exports=function(e,t){for(var r=e._context.locale,a=0;a<2;a++){for(var i=e._context.locales,o=0;o<2;o++){var l=(i[r]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=n.localeRegistry}var c=r.split("-")[0];if(c===r)break;r=c}return t}},24248:function(e,t,r){"use strict";var n=r(20556).dfltConfig,a=r(41792),i=e.exports={};i.log=function(){var e;if(n.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(n.notifyOnLogging>1){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);a(r.join("<br>"),"long")}},i.warn=function(){var e;if(n.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(n.notifyOnLogging>0){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);a(r.join("<br>"),"stick")}},i.error=function(){var e;if(n.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.error.apply(console,t)}if(n.notifyOnLogging>0){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);a(r.join("<br>"),"stick")}}},30988:function(e,t,r){"use strict";var n=r(33428);e.exports=function(e,t,r){var a=e.selectAll("g."+r.replace(/\s/g,".")).data(t,function(e){return e[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",r),a.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(e){e[0][i]=n.select(this)}),a}},52248:function(e,t,r){"use strict";var n=r(36524);t.init2dArray=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=new Array(t);return r},t.transposeRagged=function(e){var t,r,n=0,a=e.length;for(t=0;t<a;t++)n=Math.max(n,e[t].length);var i=new Array(n);for(t=0;t<n;t++)for(i[t]=new Array(a),r=0;r<a;r++)i[t][r]=e[r][t];return i},t.dot=function(e,r){if(!e.length||!r.length||e.length!==r.length)return null;var n,a,i=e.length;if(e[0].length)for(n=new Array(i),a=0;a<i;a++)n[a]=t.dot(e[a],r);else if(r[0].length){var o=t.transposeRagged(r);for(n=new Array(o.length),a=0;a<o.length;a++)n[a]=t.dot(e,o[a])}else for(n=0,a=0;a<i;a++)n+=e[a]*r[a];return n},t.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},t.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]},t.rotationXYMatrix=function(e,r,n){return t.dot(t.dot(t.translationMatrix(r,n),t.rotationMatrix(e)),t.translationMatrix(-r,-n))},t.apply3DTransform=function(e){return function(){var r=arguments,n=1===arguments.length?r[0]:[r[0],r[1],r[2]||0];return t.dot(e,[n[0],n[1],n[2],1]).slice(0,3)}},t.apply2DTransform=function(e){return function(){var r=arguments;3===r.length&&(r=r[0]);var n=1===arguments.length?r[0]:[r[0],r[1]];return t.dot(e,[n[0],n[1],1]).slice(0,2)}},t.apply2DTransform2=function(e){var r=t.apply2DTransform(e);return function(e){return r(e.slice(0,2)).concat(r(e.slice(2,4)))}},t.convertCssMatrix=function(e){if(e){var t=e.length;if(16===t)return e;if(6===t)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},t.inverseTransformMatrix=function(e){var t=[];return n.invert(t,e),[[t[0],t[1],t[2],t[3]],[t[4],t[5],t[6],t[7]],[t[8],t[9],t[10],t[11]],[t[12],t[13],t[14],t[15]]]}},20435:function(e){"use strict";e.exports={mod:function(e,t){var r=e%t;return r<0?r+t:r},modHalf:function(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}}},22296:function(e,t,r){"use strict";var n=r(38248),a=r(38116).isArrayOrTypedArray;function i(e,t){return function(){var r,n,o,l,s,c=e;for(l=0;l<t.length-1;l++){if(-1===(r=t[l])){for(n=!0,o=[],s=0;s<c.length;s++)o[s]=i(c[s],t.slice(l+1))(),o[s]!==o[0]&&(n=!1);return n?o[0]:o}if("number"==typeof r&&!a(c))return;if("object"!=typeof(c=c[r])||null===c)return}if("object"==typeof c&&null!==c&&null!==(o=c[t[l]]))return o}}e.exports=function(e,t){if(n(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";var r,a,o,l,c=t.split(".");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(r=String(c[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[l]=r[1];else{if(0!==l)throw"bad property string";c.splice(0,1)}for(a=r[2].substr(1,r[2].length-2).split("]["),o=0;o<a.length;o++)l++,c.splice(l,0,Number(a[o]))}l++}return"object"!=typeof e?function(e,t,r){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:r,obj:e}}(e,t,c):{set:s(e,c,t),get:i(e,c),astr:t,parts:c,obj:e}};var o=/(^|\.)args\[/;function l(e,t){return void 0===e||null===e&&!t.match(o)}function s(e,t,r){return function(n){var i,o,s=e,d="",h=[[e,d]],p=l(n,r);for(o=0;o<t.length-1;o++){if("number"==typeof(i=t[o])&&!a(s))throw"array index but container is not an array";if(-1===i){if(p=!u(s,t.slice(o+1),n,r))break;return}if(!f(s,i,t[o+1],p))break;if("object"!=typeof(s=s[i])||null===s)throw"container is not an object";d=c(d,i),h.push([s,d])}if(p){if(o===t.length-1&&(delete s[t[o]],Array.isArray(s)&&+t[o]==s.length-1))for(;s.length&&void 0===s[s.length-1];)s.pop()}else s[t[o]]=n}}function c(e,t){var r=t;return n(t)?r="["+t+"]":e&&(r="."+t),e+r}function u(e,t,r,n){var i,o=a(r),c=!0,u=r,d=n.replace("-1",0),h=!o&&l(r,d),p=t[0];for(i=0;i<e.length;i++)d=n.replace("-1",i),o&&(h=l(u=r[i%r.length],d)),h&&(c=!1),f(e,i,p,h)&&s(e[i],t,n.replace("-1",i))(u);return c}function f(e,t,r,n){if(void 0===e[t]){if(n)return!1;e[t]="number"==typeof r?[]:{}}return!0}},16628:function(e){"use strict";e.exports=function(){}},41792:function(e,t,r){"use strict";var n=r(33428),a=r(38248),i=[];e.exports=function(e,t){if(-1===i.indexOf(e)){i.push(e);var r=1e3;a(t)?r=t:"long"===t&&(r=3e3);var o=n.select("body").selectAll(".plotly-notifier").data([0]);o.enter().append("div").classed("plotly-notifier",!0),o.selectAll(".notifier-note").data(i).enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(e){var a=n.select(this);a.append("button").classed("notifier-close",!0).html("×").on("click",function(){a.transition().call(l)});for(var i=a.append("p"),o=e.split(/<br\s*\/?>/g),s=0;s<o.length;s++)s&&i.append("br"),i.append("span").text(o[s]);"stick"===t?a.transition().duration(350).style("opacity",1):a.transition().duration(700).style("opacity",1).transition().delay(r).call(l)})}function l(e){e.duration(700).style("opacity",0).each("end",function(e){var t=i.indexOf(e);-1!==t&&i.splice(t,1),n.select(this).remove()})}}},72213:function(e,t,r){"use strict";var n=r(93972),a="data-savedcursor";e.exports=function(e,t){var r=e.attr(a);if(t){if(!r){for(var i=(e.attr("class")||"").split(" "),o=0;o<i.length;o++){var l=i[o];0===l.indexOf("cursor-")&&e.attr(a,l.substr(7)).classed(l,!1)}e.attr(a)||e.attr(a,"!!")}n(e,t)}else r&&(e.attr(a,null),"!!"===r?n(e):n(e,r))}},92065:function(e,t,r){"use strict";var n=r(52248).dot,a=r(39032).BADNUM,i=e.exports={};i.tester=function(e){var t,r=e.slice(),n=r[0][0],i=n,o=r[0][1],l=o;for(r[r.length-1][0]===r[0][0]&&r[r.length-1][1]===r[0][1]||r.push(r[0]),t=1;t<r.length;t++)n=Math.min(n,r[t][0]),i=Math.max(i,r[t][0]),o=Math.min(o,r[t][1]),l=Math.max(l,r[t][1]);var s,c=!1;5===r.length&&(r[0][0]===r[1][0]?r[2][0]===r[3][0]&&r[0][1]===r[3][1]&&r[1][1]===r[2][1]&&(c=!0,s=function(e){return e[0]===r[0][0]}):r[0][1]===r[1][1]&&r[2][1]===r[3][1]&&r[0][0]===r[3][0]&&r[1][0]===r[2][0]&&(c=!0,s=function(e){return e[1]===r[0][1]}));var u=!0,f=r[0];for(t=1;t<r.length;t++)if(f[0]!==r[t][0]||f[1]!==r[t][1]){u=!1;break}return{xmin:n,xmax:i,ymin:o,ymax:l,pts:r,contains:c?function(e,t){var r=e[0],c=e[1];return!(r===a||r<n||r>i||c===a||c<o||c>l||t&&s(e))}:function(e,t){var s=e[0],c=e[1];if(s===a||s<n||s>i||c===a||c<o||c>l)return!1;var u,f,d,h,p,y=r.length,v=r[0][0],g=r[0][1],m=0;for(u=1;u<y;u++)if(f=v,d=g,v=r[u][0],g=r[u][1],!(s<(h=Math.min(f,v))||s>Math.max(f,v)||c>Math.max(d,g)))if(c<Math.min(d,g))s!==h&&m++;else{if(c===(p=v===f?c:d+(s-f)*(g-d)/(v-f)))return 1!==u||!t;c<=p&&s!==h&&m++}return m%2==1},isRect:c,degenerate:u}},i.isSegmentBent=function(e,t,r,a){var i,o,l,s=e[t],c=[e[r][0]-s[0],e[r][1]-s[1]],u=n(c,c),f=Math.sqrt(u),d=[-c[1]/f,c[0]/f];for(i=t+1;i<r;i++)if(o=[e[i][0]-s[0],e[i][1]-s[1]],(l=n(o,c))<0||l>u||Math.abs(n(o,d))>a)return!0;return!1},i.filter=function(e,t){var r=[e[0]],n=0,a=0;function o(o){e.push(o);var l=r.length,s=n;r.splice(a+1);for(var c=s+1;c<e.length;c++)(c===e.length-1||i.isSegmentBent(e,s,c+1,t))&&(r.push(e[c]),r.length<l-2&&(n=c,a=r.length-1),s=c)}e.length>1&&o(e.pop());return{addPt:o,raw:e,filtered:r}}},34296:function(e,t,r){"use strict";var n=r(38248),a=r(25928);e.exports=function(e){var t;if("string"!=typeof(t=e&&e.hasOwnProperty("userAgent")?e.userAgent:function(){var e;"undefined"!=typeof navigator&&(e=navigator.userAgent);e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]);return e}()))return!0;var r=a({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!r)for(var i=t.split(" "),o=1;o<i.length;o++){if(-1!==i[o].indexOf("Safari"))for(var l=o-1;l>-1;l--){var s=i[l];if("Version/"===s.substr(0,8)){var c=s.substr(8).split(".")[0];if(n(c)&&(c=+c),c>=13)return!0}}}return r}},52416:function(e){"use strict";e.exports=function(e,t){if(t instanceof RegExp){for(var r=t.toString(),n=0;n<e.length;n++)if(e[n]instanceof RegExp&&e[n].toString()===r)return e;e.push(t)}else!t&&0!==t||-1!==e.indexOf(t)||e.push(t);return e}},94552:function(e,t,r){"use strict";var n=r(3400),a=r(20556).dfltConfig;var i={add:function(e,t,r,n,i){var o,l;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},l=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(l,e.undoQueue.queue.length-l,o),e.undoQueue.index+=1):o=e.undoQueue.queue[l-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(t),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(i)),e.undoQueue.queue.length>a.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,r;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r<t.undo.calls.length;r++)i.plotDo(e,t.undo.calls[r],t.undo.args[r]);e.undoQueue.inSequence=!1,e.autoplay=!1}},redo:function(e){var t,r;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index>=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r<t.redo.calls.length;r++)i.plotDo(e,t.redo.calls[r],t.redo.args[r]);e.undoQueue.inSequence=!1,e.autoplay=!1,e.undoQueue.index++}}};i.plotDo=function(e,t,r){e.autoplay=!0,r=function(e,t){for(var r,a=[],i=0;i<t.length;i++)r=t[i],a[i]=r===e?r:"object"==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return a}(e,r),t.apply(null,r)},e.exports=i},53756:function(e,t){"use strict";t.counter=function(e,t,r,n){var a=(t||"")+(r?"":"$"),i=!1===n?"":"^";return"xy"===e?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}},23193:function(e){"use strict";var t=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,r=/^[^\.\[\]]+$/;e.exports=function(e,n){for(;n;){var a=e.match(t);if(a)e=a[1];else{if(!e.match(r))throw new Error("bad relativeAttr call:"+[e,n]);e=""}if("^"!==n.charAt(0))break;n=n.slice(1)}return e&&"["!==n.charAt(0)?e+"."+n:e+n}},51528:function(e,t,r){"use strict";var n=r(38116).isArrayOrTypedArray,a=r(63620);e.exports=function e(t,r){for(var i in r){var o=r[i],l=t[i];if(l!==o)if("_"===i.charAt(0)||"function"==typeof o){if(i in t)continue;t[i]=o}else if(n(o)&&n(l)&&a(o[0])){if("customdata"===i||"ids"===i)continue;for(var s=Math.min(o.length,l.length),c=0;c<s;c++)l[c]!==o[c]&&a(o[c])&&a(l[c])&&e(l[c],o[c])}else a(o)&&a(l)&&(e(l,o),Object.keys(l).length||delete t[i])}}},14952:function(e,t,r){"use strict";var n=r(38248),a=r(24248),i=r(35536),o=r(39032).BADNUM;function l(e,t){return e<t}function s(e,t){return e<=t}function c(e,t){return e>t}function u(e,t){return e>=t}t.findBin=function(e,t,r){if(n(t.start))return r?Math.ceil((e-t.start)/t.size-1e-9)-1:Math.floor((e-t.start)/t.size+1e-9);var i,o,f=0,d=t.length,h=0,p=d>1?(t[d-1]-t[0])/(d-1):1;for(o=p>=0?r?l:s:r?u:c,e+=1e-9*p*(r?-1:1)*(p>=0?1:-1);f<d&&h++<100;)o(t[i=Math.floor((f+d)/2)],e)?f=i+1:d=i;return h>90&&a.log("Long binary search..."),f-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e){var r,n=e.slice();for(n.sort(t.sorterAsc),r=n.length-1;r>-1&&n[r]===o;r--);for(var a,i=n[r]-n[0]||1,l=i/(r||1)/1e4,s=[],c=0;c<=r;c++){var u=n[c],f=u-a;void 0===a?(s.push(u),a=u):f>l&&(i=Math.min(i,f),s.push(u),a=u)}return{vals:s,minDiff:i}},t.roundUp=function(e,t,r){for(var n,a=0,i=t.length-1,o=0,l=r?0:1,s=r?1:0,c=r?Math.ceil:Math.floor;a<i&&o++<100;)t[n=c((a+i)/2)]<=e?a=n+l:i=n-s;return t[a]},t.sort=function(e,t){for(var r=0,n=0,a=1;a<e.length;a++){var i=t(e[a],e[a-1]);if(i<0?r=1:i>0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()},t.findIndexOfMin=function(e,t){t=t||i;for(var r,n=1/0,a=0;a<e.length;a++){var o=t(e[a]);o<n&&(n=o,r=a)}return r}},93972:function(e){"use strict";e.exports=function(e,t){(e.attr("class")||"").split(" ").forEach(function(t){0===t.indexOf("cursor-")&&e.classed(t,!1)}),t&&e.classed("cursor-"+t,!0)}},95376:function(e){"use strict";e.exports=function(e){return Object.keys(e).sort()}},63084:function(e,t,r){"use strict";var n=r(38248),a=r(38116).isArrayOrTypedArray;t.aggNums=function(e,r,i,o){var l,s;if((!o||o>i.length)&&(o=i.length),n(r)||(r=!1),a(i[0])){for(s=new Array(o),l=0;l<o;l++)s[l]=t.aggNums(e,r,i[l]);i=s}for(l=0;l<o;l++)n(r)?n(i[l])&&(r=e(+r,+i[l])):r=i[l];return r},t.len=function(e){return t.aggNums(function(e){return e+1},0,e)},t.mean=function(e,r){return r||(r=t.len(e)),t.aggNums(function(e,t){return e+t},0,e)/r},t.midRange=function(e){if(void 0!==e&&0!==e.length)return(t.aggNums(Math.max,null,e)+t.aggNums(Math.min,null,e))/2},t.variance=function(e,r,a){return r||(r=t.len(e)),n(a)||(a=t.mean(e,r)),t.aggNums(function(e,t){return e+Math.pow(t-a,2)},0,e)/r},t.stdev=function(e,r,n){return Math.sqrt(t.variance(e,r,n))},t.median=function(e){var r=e.slice().sort();return t.interp(r,.5)},t.interp=function(e,t){if(!n(t))throw"n should be a finite number";if((t=t*e.length-.5)<0)return e[0];if(t>e.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}},9188:function(e,t,r){"use strict";var n=r(2264),a=r(43616),i=r(3400),o=null;e.exports=function(){if(null!==o)return o;o=!1;var e=i.isIE()||i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(n.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if("function"==typeof r)o=t.some(function(e){return r.apply(null,e)});else{var l=a.tester.append("image").attr("style",n.STYLE),s=window.getComputedStyle(l.node()).imageRendering;o=t.some(function(e){var t=e[1];return s===t||s===t.toLowerCase()}),l.remove()}}return o}},72736:function(e,t,r){"use strict";var n=r(33428),a=r(3400),i=a.strTranslate,o=r(9616),l=r(84284).LINE_SPACING,s=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,r,v){var S=e.text(),L=!e.attr("data-notex")&&r&&r._context.typesetMath&&"undefined"!=typeof MathJax&&S.match(s),D=n.select(e.node().parentNode);if(!D.empty()){var P=e.attr("class")?e.attr("class").split(" ")[0]:"text";return P+="-math",D.selectAll("svg."+P).remove(),D.selectAll("g."+P+"-group").remove(),e.style("display",null).attr({"data-unformatted":S,"data-math":"N"}),L?(r&&r._promises||[]).push(new Promise(function(t){e.style("display","none");var r=parseInt(e.node().style.fontSize,10),o={fontSize:r};!function(e,t,r){var i,o,l,s,d=parseInt((MathJax.version||"").split(".")[0]);if(2!==d&&3!==d)return void a.warn("No MathJax version:",MathJax.version);var h=function(){var r="math-output-"+a.randstr({},64),i=(s=n.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(e.replace(c,"\\lt ").replace(u,"\\gt "))).node();return 2===d?MathJax.Hub.Typeset(i):MathJax.typeset([i])},p=function(){var t=s.select(2===d?".MathJax_SVG":".MathJax"),i=!t.empty()&&s.select("svg").node();if(i){var o,l=i.getBoundingClientRect();o=2===d?n.select("body").select("#MathJax_SVG_glyphs"):t.select("defs"),r(t,o,l)}else a.log("There was an error in the tex syntax.",e),r();s.remove()};2===d?MathJax.Hub.Queue(function(){o=a.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0);return MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:f},displayAlign:"left"})},function(){if("SVG"!==(i=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")},h,p,function(){if("SVG"!==i)return MathJax.Hub.setRenderer(i)},function(){void 0!==l&&(MathJax.Hub.processSectionDelay=l);return MathJax.Hub.Config(o)}):3===d&&(!function(){o=a.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={});MathJax.config.tex.inlineMath=f}(),"svg"!==(i=MathJax.config.startup.output)&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),p(),"svg"!==i&&(MathJax.config.startup.output=i),MathJax.config=o}))}(L[2],o,function(n,a,o){D.selectAll("svg."+P).remove(),D.selectAll("g."+P+"-group").remove();var l=n&&n.select("svg");if(!l||!l.node())return E(),void t();var s=D.append("g").classed(P+"-group",!0).attr({"pointer-events":"none","data-unformatted":S,"data-math":"Y"});s.node().appendChild(l.node()),a&&a.node()&&l.node().insertBefore(a.node().cloneNode(!0),l.node().firstChild);var c=o.width,u=o.height;l.attr({class:P,height:u,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var f=e.node().style.fill||"black",d=l.select("g");d.attr({fill:f,stroke:f});var h=d.node().getBoundingClientRect(),p=h.width,y=h.height;(p>c||y>u)&&(l.style("overflow","hidden"),p=(h=l.node().getBoundingClientRect()).width,y=h.height);var g=+e.attr("x"),m=+e.attr("y"),x=-(r||e.node().getBoundingClientRect().height)/4;if("y"===P[0])s.attr({transform:"rotate("+[-90,g,m]+")"+i(-p/2,x-y/2)});else if("l"===P[0])m=x-y/2;else if("a"===P[0]&&0!==P.indexOf("atitle"))g=0,m=x;else{var b=e.attr("text-anchor");g-=p*("middle"===b?.5:"end"===b?1:0),m=m+x-y/2}l.attr({x:g,y:m}),v&&v.call(e,s),t(s)})})):E(),e}function E(){D.empty()||(P=e.attr("class")+"-math",D.select("svg."+P).remove()),e.text("").style("white-space","pre"),function(e,t){t=t.replace(g," ");var r,i=!1,s=[],c=-1;function u(){c++;var t=document.createElementNS(o.svg,"tspan");n.select(t).attr({class:"line",dy:c*l+"em"}),e.appendChild(t),r=t;var a=s;if(s=[{node:t}],a.length>1)for(var i=1;i<a.length;i++)f(a[i])}function f(e){var t,a=e.type,i={};if("a"===a){t="a";var l=e.target,c=e.href,u=e.popup;c&&(i={"xlink:xlink:show":"_blank"===l||"_"!==l.charAt(0)?"new":"replace",target:l,"xlink:xlink:href":c},u&&(i.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+u+'");return false;'))}else t="tspan";e.style&&(i.style=e.style);var f=document.createElementNS(o.svg,t);if("sup"===a||"sub"===a){v(r,y),r.appendChild(f);var d=document.createElementNS(o.svg,"tspan");v(d,y),n.select(d).attr("dy",p[a]),i.dy=h[a],r.appendChild(f),r.appendChild(d)}else r.appendChild(f);n.select(f).attr(i),r=e.node=f,s.push(e)}function v(e,t){e.appendChild(document.createTextNode(t))}function S(e){if(1!==s.length){var n=s.pop();e!==n.type&&a.log("Start tag <"+n.type+"> doesnt match end tag <"+e+">. Pretending it did match.",t),r=s[s.length-1].node}else a.log("Ignoring unexpected end tag </"+e+">.",t)}b.test(t)?u():(r=e,s=[{node:e}]);for(var L=t.split(m),D=0;D<L.length;D++){var P=L[D],E=P.match(x),R=E&&E[2].toLowerCase(),I=d[R];if("br"===R)u();else if(void 0===I)v(r,O(P));else if(E[1])S(R);else{var z=E[4],N={type:R},F=M(z,_);if(F?(F=F.replace(A,"$1 fill:"),I&&(F+=";"+I)):I&&(F=I),F&&(N.style=F),"a"===R){i=!0;var j=M(z,w);if(j){var B=C(j);B&&(N.href=B,N.target=M(z,k)||"_blank",N.popup=M(z,T))}}f(N)}}return i}(e.node(),S)&&e.style("pointer-events","all"),t.positionText(e),v&&v.call(e)}};var c=/(<|<|<)/g,u=/(>|>|>)/g;var f=[["$","$"],["\\(","\\)"]];var d={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},h={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},y="",v=["http:","https:","mailto:","",void 0,":"],g=t.NEWLINES=/(\r\n?|\n)/g,m=/(<[^<>]*>)/,x=/<(\/?)([^ >]*)(\s+(.*))?>/i,b=/<br(\s+.*)?>/i;t.BR_TAG_ALL=/<br(\s+.*)?>/gi;var _=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,w=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,k=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,T=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function M(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&O(n)}var A=/(^|;)\s*color:/;t.plainText=function(e,t){for(var r=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,n=void 0!==t.allowedTags?t.allowedTags:["br"],a="...".length,i=e.split(m),o=[],l="",s=0,c=0;c<i.length;c++){var u=i[c],f=u.match(x),d=f&&f[2].toLowerCase();if(d)-1!==n.indexOf(d)&&(o.push(u),l=d);else{var h=u.length;if(s+h<r)o.push(u),s+=h;else if(s<r){var p=r-s;l&&("br"!==l||p<=a||h<=a)&&o.pop(),r>a?o.push(u.substr(0,p-a)+"..."):o.push(u.substr(0,p));break}l=""}}return o.join("")};var S={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},L=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function O(e){return e.replace(L,function(e,t){return("#"===t.charAt(0)?function(e){if(e>1114111)return;var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r(55232+(e>>10),e%1024+56320)}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):S[t])||e})}function C(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),n=document.createElement("a");r.href=e,n.href=t;var a=r.protocol,i=n.protocol;return-1!==v.indexOf(a)&&-1!==v.indexOf(i)?t:""}function D(e,t,r){var n,i,o,l=r.horizontalAlign,s=r.verticalAlign||"top",c=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===s?function(){return c.bottom-n.height}:"middle"===s?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o="right"===l?function(){return c.right-n.width}:"center"===l?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var e=o()-u.left,t=i()-u.top,l=r.gd||{};if(r.gd){l._fullLayout._calcInverseTransform(l);var s=a.apply3DTransform(l._fullLayout._invTransform)(e,t);e=s[0],t=s[1]}return this.style({top:t+"px",left:e+"px","z-index":1e3}),this}}t.convertEntities=O,t.sanitizeHTML=function(e){e=e.replace(g," ");for(var t=document.createElement("p"),r=t,a=[],i=e.split(m),o=0;o<i.length;o++){var l=i[o],s=l.match(x),c=s&&s[2].toLowerCase();if(c in d)if(s[1])a.length&&(r=a.pop());else{var u=s[4],f=M(u,_),h=f?{style:f}:{};if("a"===c){var p=M(u,w);if(p){var y=C(p);if(y){h.href=y;var v=M(u,k);v&&(h.target=v)}}}var b=document.createElement(c);r.appendChild(b),n.select(b).attr(h),r=b,a.push(b)}else r.appendChild(document.createTextNode(O(l)))}return t.innerHTML},t.lineCount=function(e){return e.selectAll("tspan.line").size()||1},t.positionText=function(e,t,r){return e.each(function(){var e=n.select(this);function a(t,r){return void 0===r?null===(r=e.attr(t))&&(e.attr(t,0),r=0):e.attr(t,r),r}var i=a("x",t),o=a("y",r);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:i,y:o})})};t.makeTextShadow=function(e){var t="1px ",r="1px ",n="1px ";return t+r+n+e+", -"+t+"-"+r+n+e+", "+t+"-"+r+n+e+", -"+t+r+n+e},t.makeEditable=function(e,t){var r=t.gd,a=t.delegate,i=n.dispatch("edit","input","cancel"),o=a||e;if(e.style({"pointer-events":a?"none":"all"}),1!==e.size())throw new Error("boo");function l(){!function(){var a=n.select(r).select(".svg-container"),o=a.append("div"),l=e.node().style,c=parseFloat(l.fontSize||12),u=t.text;void 0===u&&(u=e.attr("data-unformatted"));o.classed("plugin-editable editable",!0).style({position:"absolute","font-family":l.fontFamily||"Arial","font-size":c,color:t.fill||l.fill||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-c/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(u).call(D(e,a,t)).on("blur",function(){r._editing=!1,e.text(this.textContent).style({opacity:1});var t,a=n.select(this).attr("class");(t=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]")&&n.select(e.node().parentNode).select(t).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on("mouseup",null),i.edit.call(e,o)}).on("focus",function(){var e=this;r._editing=!0,n.select(document).on("mouseup",function(){if(n.event.target===e)return!1;document.activeElement===o.node()&&o.node().blur()})}).on("keyup",function(){27===n.event.which?(r._editing=!1,e.style({opacity:1}),n.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),n.select(this).call(D(e,a,t)))}).on("keydown",function(){13===n.event.which&&this.blur()}).call(s)}(),e.style({opacity:0});var a,l=o.attr("class");(a=l?"."+l.split(" ")[0]+"-math-group":"[class*=-math-group]")&&n.select(e.node().parentNode).select(a).style({opacity:0})}function s(e){var t=e.node(),r=document.createRange();r.selectNodeContents(t);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),t.focus()}return t.immediate?l():o.on("click",l),n.rebind(e,i,"on")}},91200:function(e,t){"use strict";var r={};function n(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}t.throttle=function(e,t,a){var i=r[e],o=Date.now();if(!i){for(var l in r)r[l].ts<o-6e4&&delete r[l];i=r[e]={ts:0,timer:null}}function s(){a(),i.ts=Date.now(),i.onDone&&(i.onDone(),i.onDone=null)}n(i),o>i.ts+t?s():i.timer=setTimeout(function(){s(),i.timer=null},t)},t.done=function(e){var t=r[e];return t&&t.timer?new Promise(function(e){var r=t.onDone;t.onDone=function(){r&&r(),e(),t.onDone=null}}):Promise.resolve()},t.clear=function(e){if(e)n(r[e]),delete r[e];else for(var a in r)t.clear(a)}},36896:function(e,t,r){"use strict";var n=r(38248);e.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var r=Math.log(Math.min(t[0],t[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),r}},11680:function(e){"use strict";e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(e){"use strict";e.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(e,t,r){"use strict";var n=r(24040);e.exports=function(e){for(var t,r,a=n.layoutArrayContainers,i=n.layoutArrayRegexes,o=e.split("[")[0],l=0;l<i.length;l++)if((r=e.match(i[l]))&&0===r.index){t=r[0];break}if(t||(t=a[a.indexOf(o)]),!t)return!1;var s=e.substr(t.length);return s?!!(r=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:t,index:Number(r[1]),property:r[3]||""}:{array:t,index:"",property:""}}},67824:function(e,t,r){"use strict";var n=r(92880).extendFlat,a=r(63620),i={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},o={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},l=i.flags.slice().concat(["fullReplot"]),s=o.flags.slice().concat("layoutReplot");function c(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!1;return t}function u(e,t,r){var i=n({},e);for(var o in i){var l=i[o];a(l)&&(i[o]=f(l,t,r,o))}return"from-root"===r&&(i.editType=t),i}function f(e,t,r,a){if(e.valType){var i=n({},e);if(i.editType=t,Array.isArray(e.items)){i.items=new Array(e.items.length);for(var o=0;o<e.items.length;o++)i.items[o]=f(e.items[o],t,"from-root")}return i}return u(e,t,"_"===a.charAt(0)?"nested":"from-root")}e.exports={traces:i,layout:o,traceFlags:function(){return c(l)},layoutFlags:function(){return c(s)},update:function(e,t){var r=t.editType;if(r&&"none"!==r)for(var n=r.split("+"),a=0;a<n.length;a++)e[n[a]]=!0},overrideAll:u}},93404:function(e,t,r){"use strict";var n=r(38248),a=r(61784),i=r(24040),o=r(3400),l=r(7316),s=r(79811),c=r(76308),u=s.cleanId,f=s.getFromTrace,d=i.traceIs;function h(e,t){var r=e[t],n=t.charAt(0);r&&"paper"!==r&&(e[t]=u(r,n,!0))}function p(e){function t(t,r){var n=e[t],a=e.title&&e.title[r];n&&!a&&(e.title||(e.title={}),e.title[r]=e[t],delete e[t])}e&&("string"!=typeof e.title&&"number"!=typeof e.title||(e.title={text:e.title}),t("titlefont","font"),t("titleposition","position"),t("titleside","side"),t("titleoffset","offset"))}function y(e){if(!o.isPlainObject(e))return!1;var t=e.name;return delete e.name,delete e.showlegend,("string"==typeof t||"number"==typeof t)&&String(t)}function v(e,t,r,n){if(r&&!n)return e;if(n&&!r)return t;if(!e.trim())return t;if(!t.trim())return e;var a,i=Math.min(e.length,t.length);for(a=0;a<i&&e.charAt(a)===t.charAt(a);a++);return e.substr(0,a).trim()}function g(e){var t="middle",r="center";return"string"==typeof e&&(-1!==e.indexOf("top")?t="top":-1!==e.indexOf("bottom")&&(t="bottom"),-1!==e.indexOf("left")?r="left":-1!==e.indexOf("right")&&(r="right")),t+" "+r}function m(e,t){return t in e&&"object"==typeof e[t]&&0===Object.keys(e[t]).length}t.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&o.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var r,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(l.subplotsRegistry.cartesian||{}).attrRegex,s=(l.subplotsRegistry.polar||{}).attrRegex,f=(l.subplotsRegistry.ternary||{}).attrRegex,d=(l.subplotsRegistry.gl3d||{}).attrRegex,y=Object.keys(e);for(r=0;r<y.length;r++){var v=y[r];if(i&&i.test(v)){var g=e[v];g.anchor&&"free"!==g.anchor&&(g.anchor=u(g.anchor)),g.overlaying&&(g.overlaying=u(g.overlaying)),g.type||(g.isdate?g.type="date":g.islog?g.type="log":!1===g.isdate&&!1===g.islog&&(g.type="linear")),"withzero"!==g.autorange&&"tozero"!==g.autorange||(g.autorange=!0,g.rangemode="tozero"),g.insiderange&&delete g.range,delete g.islog,delete g.isdate,delete g.categories,m(g,"domain")&&delete g.domain,void 0!==g.autotick&&(void 0===g.tickmode&&(g.tickmode=g.autotick?"auto":"linear"),delete g.autotick),p(g)}else if(s&&s.test(v)){p(e[v].radialaxis)}else if(f&&f.test(v)){var x=e[v];p(x.aaxis),p(x.baxis),p(x.caxis)}else if(d&&d.test(v)){var b=e[v],_=b.cameraposition;if(Array.isArray(_)&&4===_[0].length){var w=_[0],k=_[1],T=_[2],M=a([],w),A=[];for(n=0;n<3;++n)A[n]=k[n]+T*M[2+4*n];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:k[0],y:k[1],z:k[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}p(b.xaxis),p(b.yaxis),p(b.zaxis)}}var S=Array.isArray(e.annotations)?e.annotations.length:0;for(r=0;r<S;r++){var L=e.annotations[r];o.isPlainObject(L)&&(L.ref&&("paper"===L.ref?(L.xref="paper",L.yref="paper"):"data"===L.ref&&(L.xref="x",L.yref="y"),delete L.ref),h(L,"xref"),h(L,"yref"))}var O=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<O;r++){var C=e.shapes[r];o.isPlainObject(C)&&(h(C,"xref"),h(C,"yref"))}var D=Array.isArray(e.images)?e.images.length:0;for(r=0;r<D;r++){var P=e.images[r];o.isPlainObject(P)&&(h(P,"xref"),h(P,"yref"))}var E=e.legend;return E&&(E.x>3?(E.x=1.02,E.xanchor="left"):E.x<-2&&(E.x=-.02,E.xanchor="right"),E.y>3?(E.y=1.02,E.yanchor="bottom"):E.y<-2&&(E.y=-.02,E.yanchor="top")),p(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),c.clean(e),e.template&&e.template.layout&&t.cleanLayout(e.template.layout),e},t.cleanData=function(e){for(var r=0;r<e.length;r++){var n,a=e[r];if("histogramy"===a.type&&"xbins"in a&&!("ybins"in a)&&(a.ybins=a.xbins,delete a.xbins),a.error_y&&"opacity"in a.error_y){var s=c.defaults,f=a.error_y.color||(d(a,"bar")?c.defaultLine:s[r%s.length]);a.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*a.error_y.opacity),delete a.error_y.opacity}if("bardir"in a&&("h"!==a.bardir||!d(a,"bar")&&"histogram"!==a.type.substr(0,9)||(a.orientation="h",t.swapXYData(a)),delete a.bardir),"histogramy"===a.type&&t.swapXYData(a),"histogramx"!==a.type&&"histogramy"!==a.type||(a.type="histogram"),"scl"in a&&!("colorscale"in a)&&(a.colorscale=a.scl,delete a.scl),"reversescl"in a&&!("reversescale"in a)&&(a.reversescale=a.reversescl,delete a.reversescl),a.xaxis&&(a.xaxis=u(a.xaxis,"x")),a.yaxis&&(a.yaxis=u(a.yaxis,"y")),d(a,"gl3d")&&a.scene&&(a.scene=l.subplotsRegistry.gl3d.cleanId(a.scene)),!d(a,"pie-like")&&!d(a,"bar-like"))if(Array.isArray(a.textposition))for(n=0;n<a.textposition.length;n++)a.textposition[n]=g(a.textposition[n]);else a.textposition&&(a.textposition=g(a.textposition));var h=i.getModule(a);if(h&&h.colorbar){var x=h.colorbar.container,b=x?a[x]:a;b&&b.colorscale&&("YIGnBu"===b.colorscale&&(b.colorscale="YlGnBu"),"YIOrRd"===b.colorscale&&(b.colorscale="YlOrRd"))}if("surface"===a.type&&o.isPlainObject(a.contours)){var _=["x","y","z"];for(n=0;n<_.length;n++){var w=a.contours[_[n]];o.isPlainObject(w)&&(w.highlightColor&&(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&&(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if("candlestick"===a.type||"ohlc"===a.type){var k=!1!==(a.increasing||{}).showlegend,T=!1!==(a.decreasing||{}).showlegend,M=y(a.increasing),A=y(a.decreasing);if(!1!==M&&!1!==A){var S=v(M,A,k,T);S&&(a.name=S)}else!M&&!A||a.name||(a.name=M||A)}if(Array.isArray(a.transforms)){var L=a.transforms;for(n=0;n<L.length;n++){var O=L[n];if(o.isPlainObject(O))switch(O.type){case"filter":O.filtersrc&&(O.target=O.filtersrc,delete O.filtersrc),O.calendar&&(O.valuecalendar||(O.valuecalendar=O.calendar),delete O.calendar);break;case"groupby":if(O.styles=O.styles||O.style,O.styles&&!Array.isArray(O.styles)){var C=O.styles,D=Object.keys(C);O.styles=[];for(var P=0;P<D.length;P++)O.styles.push({target:D[P],value:C[D[P]]})}}}}m(a,"line")&&delete a.line,"marker"in a&&(m(a.marker,"line")&&delete a.marker.line,m(a,"marker")&&delete a.marker),c.clean(a),a.autobinx&&(delete a.autobinx,delete a.xbins),a.autobiny&&(delete a.autobiny,delete a.ybins),p(a),a.colorbar&&p(a.colorbar),a.marker&&a.marker.colorbar&&p(a.marker.colorbar),a.line&&a.line.colorbar&&p(a.line.colorbar),a.aaxis&&p(a.aaxis),a.baxis&&p(a.baxis)}},t.swapXYData=function(e){var t;if(o.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var r=e.error_y,n="copy_ystyle"in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(e,["error_?.copy_ystyle"]),n&&o.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if("string"==typeof e.hoverinfo){var a=e.hoverinfo.split("+");for(t=0;t<a.length;t++)"x"===a[t]?a[t]="y":"y"===a[t]&&(a[t]="x");e.hoverinfo=a.join("+")}},t.coerceTraceIndices=function(e,t){if(n(t))return[t];if(!Array.isArray(t)||!t.length)return e.data.map(function(e,t){return t});if(Array.isArray(t)){for(var r=[],a=0;a<t.length;a++)o.isIndex(t[a],e.data.length)?r.push(t[a]):o.warn("trace index (",t[a],") is not a number or is out of bounds");return r}return t},t.manageArrayContainers=function(e,t,r){var a=e.obj,i=e.parts,l=i.length,s=i[l-1],c=n(s);if(c&&null===t){var u=i.slice(0,l-1).join(".");o.nestedProperty(a,u).get().splice(s,1)}else c&&void 0===e.get()?(void 0===e.get()&&(r[e.astr]=null),e.set(t)):e.set(t)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(e){var t=e.search(x);if(t>0)return e.substr(0,t)}t.hasParent=function(e,t){for(var r=b(t);r;){if(r in e)return!0;r=b(r)}return!1};var _=["x","y","z"];t.clearAxisTypes=function(e,t,r){for(var n=0;n<t.length;n++)for(var a=e._fullData[n],i=0;i<3;i++){var l=f(e,a,_[i]);if(l&&"log"!==l.type){var s=l._name,c=l._id.substr(1);if("scene"===c.substr(0,5)){if(void 0!==r[c])continue;s=c+"."+s}var u=s+".type";void 0===r[s]&&void 0===r[u]&&o.nestedProperty(e.layout,u).set(null)}}}},22448:function(e,t,r){"use strict";var n=r(36424);t._doPlot=n._doPlot,t.newPlot=n.newPlot,t.restyle=n.restyle,t.relayout=n.relayout,t.redraw=n.redraw,t.update=n.update,t._guiRestyle=n._guiRestyle,t._guiRelayout=n._guiRelayout,t._guiUpdate=n._guiUpdate,t._storeDirectGUIEdit=n._storeDirectGUIEdit,t.react=n.react,t.extendTraces=n.extendTraces,t.prependTraces=n.prependTraces,t.addTraces=n.addTraces,t.deleteTraces=n.deleteTraces,t.moveTraces=n.moveTraces,t.purge=n.purge,t.addFrames=n.addFrames,t.deleteFrames=n.deleteFrames,t.animate=n.animate,t.setPlotConfig=n.setPlotConfig;var a=r(52200).getGraphDiv,i=r(4016).eraseActiveShape;t.deleteActiveShape=function(e){return i(a(e))},t.toImage=r(67024),t.validate=r(21480),t.downloadImage=r(39792);var o=r(94828);t.makeTemplate=o.makeTemplate,t.validateTemplate=o.validateTemplate},17680:function(e,t,r){"use strict";var n=r(63620),a=r(16628),i=r(24248),o=r(14952).sorterAsc,l=r(24040);t.containerArrayMatch=r(69820);var s=t.isAddVal=function(e){return"add"===e||n(e)},c=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,r,n,u){var f=t.astr,d=l.getComponentMethod(f,"supplyLayoutDefaults"),h=l.getComponentMethod(f,"draw"),p=l.getComponentMethod(f,"drawOne"),y=n.replot||n.recalc||d===a||h===a,v=e.layout,g=e._fullLayout;if(r[""]){Object.keys(r).length>1&&i.warn("Full array edits are incompatible with other edits",f);var m=r[""][""];if(c(m))t.set(null);else{if(!Array.isArray(m))return i.warn("Unrecognized full array edit value",f,m),!0;t.set(m)}return!y&&(d(v,g),h(e),!0)}var x,b,_,w,k,T,M,A,S=Object.keys(r).map(Number).sort(o),L=t.get(),O=L||[],C=u(g,f).get(),D=[],P=-1,E=O.length;for(x=0;x<S.length;x++)if(w=r[_=S[x]],k=Object.keys(w),T=w[""],M=s(T),_<0||_>O.length-(M?0:1))i.warn("index out of range",f,_);else if(void 0!==T)k.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",f,_),c(T)?D.push(_):M?("add"===T&&(T={}),O.splice(_,0,T),C&&C.splice(_,0,{})):i.warn("Unrecognized full object edit value",f,_,T),-1===P&&(P=_);else for(b=0;b<k.length;b++)A=f+"["+_+"].",u(O[_],k[b],A).set(w[k[b]]);for(x=D.length-1;x>=0;x--)O.splice(D[x],1),C&&C.splice(D[x],1);if(O.length?L||t.set(O):t.set(null),y)return!1;if(d(v,g),p!==a){var R;if(-1===P)R=S;else{for(E=Math.max(O.length,E),R=[],x=0;x<S.length&&!((_=S[x])>=P);x++)R.push(_);for(x=P;x<E;x++)R.push(x)}for(x=0;x<R.length;x++)p(e,R[x])}else h(e);return!0}},36424:function(e,t,r){"use strict";var n=r(33428),a=r(38248),i=r(52264),o=r(3400),l=o.nestedProperty,s=r(95924),c=r(94552),u=r(24040),f=r(73060),d=r(7316),h=r(54460),p=r(96312),y=r(94724),v=r(43616),g=r(76308),m=r(42464).initInteractions,x=r(9616),b=r(22676).clearOutline,_=r(20556).dfltConfig,w=r(17680),k=r(93404),T=r(39172),M=r(67824),A=r(33816).AX_NAME_PATTERN,S=0,L=5;function O(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function C(e,t){try{e._fullLayout._paper.style("background",t)}catch(e){o.error(e)}}function D(e,t){C(e,g.combine(t,"white"))}function P(e,t){if(!e._context){e._context=o.extendDeep({},_);var r=n.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var a,l,s,c=e._context;if(t){for(l=Object.keys(t),a=0;a<l.length;a++)"editable"!==(s=l[a])&&"edits"!==s&&s in c&&("setBackground"===s&&"opaque"===t[s]?c[s]=D:c[s]=t[s]);t.plot3dPixelRatio&&!c.plotGlPixelRatio&&(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=t.editable;if(void 0!==u)for(c.editable=u,l=Object.keys(c.edits),a=0;a<l.length;a++)c.edits[l[a]]=u;if(t.edits)for(l=Object.keys(t.edits),a=0;a<l.length;a++)(s=l[a])in c.edits&&(c.edits[s]=t.edits[s]);c._exportedPlot=t._exportedPlot}c.staticPlot&&(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),"hover"!==c.displayModeBar||i||(c.displayModeBar=!0),"transparent"!==c.setBackground&&"function"==typeof c.setBackground||(c.setBackground=C),c._hasZeroHeight=c._hasZeroHeight||0===e.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===e.clientWidth;var f=c.scrollZoom,d=c._scrollZoom={};if(!0===f)d.cartesian=1,d.gl3d=1,d.geo=1,d.mapbox=1;else if("string"==typeof f){var h=f.split("+");for(a=0;a<h.length;a++)d[h[a]]=1}else!1!==f&&(d.gl3d=1,d.geo=1,d.mapbox=1)}function E(e,t){var r,n,a=t+1,i=[];for(r=0;r<e.length;r++)(n=e[r])<0?i.push(a+n):i.push(n);return i}function R(e,t,r){var n,a;for(n=0;n<t.length;n++){if((a=t[n])!==parseInt(a,10))throw new Error("all values in "+r+" must be integers");if(a>=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,n+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function I(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),R(e,t,"currentIndices"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&R(e,r,"newIndices"),void 0!==r&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function z(e,t,r,n,i){!function(e,t,r,n){var a=o.isPlainObject(n);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===r)throw new Error("indices must be an integer or array of integers");for(var i in R(e,r,"indices"),t){if(!Array.isArray(t[i])||t[i].length!==r.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(a&&(!(i in n)||!Array.isArray(n[i])||n[i].length!==t[i].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,r,n);for(var s=function(e,t,r,n){var i,s,c,u,f,d=o.isPlainObject(n),h=[];for(var p in Array.isArray(r)||(r=[r]),r=E(r,e.data.length-1),t)for(var y=0;y<r.length;y++){if(i=e.data[r[y]],s=(c=l(i,p)).get(),u=t[p][y],!o.isArrayOrTypedArray(u))throw new Error("attribute: "+p+" index: "+y+" must be an array");if(!o.isArrayOrTypedArray(s))throw new Error("cannot extend missing or non-array attribute: "+p);if(s.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+p);f=d?n[p][y]:n,a(f)||(f=-1),h.push({prop:c,target:s,insert:u,maxp:Math.floor(f)})}return h}(e,t,r,n),c={},u={},f=0;f<s.length;f++){var d=s[f].prop,h=s[f].maxp,p=i(s[f].target,s[f].insert,h);d.set(p[0]),Array.isArray(c[d.astr])||(c[d.astr]=[]),c[d.astr].push(p[1]),Array.isArray(u[d.astr])||(u[d.astr]=[]),u[d.astr].push(s[f].target.length)}return{update:c,maxPoints:u}}function N(e,t){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}function F(e,r,n,a){e=o.getGraphDiv(e),k.clearPromiseQueue(e);var i={};if("string"==typeof r)i[r]=n;else{if(!o.isPlainObject(r))return o.warn("Restyle fail.",r,n,a),Promise.reject();i=o.extendFlat({},r),void 0===a&&(a=n)}Object.keys(i).length&&(e.changed=!0);var l=k.coerceTraceIndices(e,a),s=U(e,i,l),u=s.flags;u.calc&&(e.calcdata=void 0),u.clearAxisTypes&&k.clearAxisTypes(e,l,{});var f=[];u.fullReplot?f.push(t._doPlot):(f.push(d.previousPromises),d.supplyDefaults(e),u.markerSize&&(d.doCalcdata(e),G(f)),u.style&&f.push(T.doTraceStyle),u.colorbars&&f.push(T.doColorBars),f.push(O)),f.push(d.rehover,d.redrag,d.reselect),c.add(e,F,[e,s.undoit,s.traces],F,[e,s.redoit,s.traces]);var h=o.syncOrAsync(f,e);return h&&h.then||(h=Promise.resolve()),h.then(function(){return e.emit("plotly_restyle",s.eventData),e})}function j(e){return void 0===e?null:e}function B(e,t){return t?function(t,r,n){var a=l(t,r),i=a.set;return a.set=function(t){H((n||"")+r,a.get(),t,e),i(t)},a}:l}function H(e,t,r,n){if(Array.isArray(t)||Array.isArray(r))for(var a=Array.isArray(t)?t:[],i=Array.isArray(r)?r:[],l=Math.max(a.length,i.length),s=0;s<l;s++)H(e+"["+s+"]",a[s],i[s],n);else if(o.isPlainObject(t)||o.isPlainObject(r)){var c=o.isPlainObject(t)?t:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var d in f)H(e+"."+d,c[d],u[d],n)}else void 0===n[e]&&(n[e]=j(t))}function U(e,t,r){var n,a=e._fullLayout,i=e._fullData,s=e.data,c=a._guiEditing,p=B(a._preGUI,c),y=o.extendDeepAll({},t);q(t);var v,g=M.traceFlags(),m={},x={};function b(){return r.map(function(){})}function _(e){var t=h.id2name(e);-1===v.indexOf(t)&&v.push(t)}function w(e){return"LAYOUT"+e+".autorange"}function T(e){return"LAYOUT"+e+".range"}function A(e){for(var t=e;t<i.length;t++)if(i[t]._input===s[e])return i[t]}function S(n,i,o){if(Array.isArray(n))n.forEach(function(e){S(e,i,o)});else if(!(n in t||k.hasParent(t,n))){var l;if("LAYOUT"===n.substr(0,6))l=p(e.layout,n.replace("LAYOUT",""));else{var u=r[o];l=B(a._tracePreGUI[A(u)._fullInput.uid],c)(s[u],n)}n in x||(x[n]=b()),void 0===x[n][o]&&(x[n][o]=j(l.get())),void 0!==i&&l.set(i)}}function L(e){return function(t){return i[t][e]}}function O(e){return function(t,n){return!1===t?i[r[n]][e]:null}}for(var C in t){if(k.hasParent(t,C))throw new Error("cannot set "+C+" and a parent attribute simultaneously");var D,P,E,R,I,z,N=t[C];if("autobinx"!==C&&"autobiny"!==C||(C=C.charAt(C.length-1)+"bins",N=Array.isArray(N)?N.map(O(C)):!1===N?r.map(L(C)):null),m[C]=N,"LAYOUT"!==C.substr(0,6)){for(x[C]=b(),n=0;n<r.length;n++){if(D=s[r[n]],P=A(r[n]),R=(E=B(a._tracePreGUI[P._fullInput.uid],c)(D,C)).get(),void 0!==(I=Array.isArray(N)?N[n%N.length]:N)){var F=E.parts[E.parts.length-1],H=C.substr(0,C.length-F.length-1),U=H?H+".":"",Y=H?l(P,H).get():P;if((z=f.getTraceValObject(P,E.parts))&&z.impliedEdits&&null!==I)for(var V in z.impliedEdits)S(o.relativeAttr(C,V),z.impliedEdits[V],n);else if("thicknessmode"!==F&&"lenmode"!==F||R===I||"fraction"!==I&&"pixels"!==I||!Y){if("type"===C&&("pie"===I!=("pie"===R)||"funnelarea"===I!=("funnelarea"===R))){var G="x",Z="y";"bar"!==I&&"bar"!==R||"h"!==D.orientation||(G="y",Z="x"),o.swapAttrs(D,["?","?src"],"labels",G),o.swapAttrs(D,["d?","?0"],"label",G),o.swapAttrs(D,["?","?src"],"values",Z),"pie"===R||"funnelarea"===R?(l(D,"marker.color").set(l(D,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):u.traceIs(D,"cartesian")&&l(D,"marker.colors").set(l(D,"marker.color").get())}}else{var W=a._size,J=Y.orient,X="top"===J||"bottom"===J;if("thicknessmode"===F){var K=X?W.h:W.w;S(U+"thickness",Y.thickness*("fraction"===I?1/K:K),n)}else{var $=X?W.w:W.h;S(U+"len",Y.len*("fraction"===I?1/$:$),n)}}x[C][n]=j(R);if(-1!==["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(C)){if("orientation"===C){E.set(I);var Q=D.x&&!D.y?"h":"v";if((E.get()||Q)===P.orientation)continue}else"orientationaxes"===C&&(D.orientation={v:"h",h:"v"}[P.orientation]);k.swapXYData(D),g.calc=g.clearAxisTypes=!0}else-1!==d.dataArrayContainers.indexOf(E.parts[0])?(k.manageArrayContainers(E,I,x),g.calc=!0):(z?z.arrayOk&&!u.traceIs(P,"regl")&&(o.isArrayOrTypedArray(I)||o.isArrayOrTypedArray(R))?g.calc=!0:M.update(g,z):g.calc=!0,E.set(I))}}if(-1!==["swapxyaxes","orientationaxes"].indexOf(C)&&h.swap(e,r),"orientationaxes"===C){var ee=l(e.layout,"hovermode"),te=ee.get();"x"===te?ee.set("y"):"y"===te?ee.set("x"):"x unified"===te?ee.set("y unified"):"y unified"===te&&ee.set("x unified")}if(-1!==["orientation","type"].indexOf(C)){for(v=[],n=0;n<r.length;n++){var re=s[r[n]];u.traceIs(re,"cartesian")&&(_(re.xaxis||"x"),_(re.yaxis||"y"))}S(v.map(w),!0,0),S(v.map(T),[0,1],0)}}else E=p(e.layout,C.replace("LAYOUT","")),x[C]=[j(E.get())],E.set(Array.isArray(N)?N[0]:N),g.calc=!0}return(g.calc||g.plot)&&(g.fullReplot=!0),{flags:g,undoit:x,redoit:m,traces:r,eventData:o.extendDeepNoArrays([],[y,r])}}function q(e){var t,r,n,a=o.counterRegex("axis",".title",!1,!1),i=/colorbar\.title$/,l=Object.keys(e);for(t=0;t<l.length;t++)r=l[t],n=e[r],"title"!==r&&!a.test(r)&&!i.test(r)||"string"!=typeof n&&"number"!=typeof n?r.indexOf("titlefont")>-1&&-1===r.indexOf("grouptitlefont")?s(r,r.replace("titlefont","title.font")):r.indexOf("titleposition")>-1?s(r,r.replace("titleposition","title.position")):r.indexOf("titleside")>-1?s(r,r.replace("titleside","title.side")):r.indexOf("titleoffset")>-1&&s(r,r.replace("titleoffset","title.offset")):s(r,r.replace("title","title.text"));function s(t,r){e[r]=e[t],delete e[t]}}function Y(e,t,r){e=o.getGraphDiv(e),k.clearPromiseQueue(e);var n={};if("string"==typeof t)n[t]=r;else{if(!o.isPlainObject(t))return o.warn("Relayout fail.",t,r),Promise.reject();n=o.extendFlat({},t)}Object.keys(n).length&&(e.changed=!0);var a=X(e,n),i=a.flags;i.calc&&(e.calcdata=void 0);var l=[d.previousPromises];i.layoutReplot?l.push(T.layoutReplot):Object.keys(n).length&&(V(e,i,a)||d.supplyDefaults(e),i.legend&&l.push(T.doLegend),i.layoutstyle&&l.push(T.layoutStyles),i.axrange&&G(l,a.rangesAltered),i.ticks&&l.push(T.doTicksRelayout),i.modebar&&l.push(T.doModeBar),i.camera&&l.push(T.doCamera),i.colorbars&&l.push(T.doColorBars),l.push(O)),l.push(d.rehover,d.redrag,d.reselect),c.add(e,Y,[e,a.undoit],Y,[e,a.redoit]);var s=o.syncOrAsync(l,e);return s&&s.then||(s=Promise.resolve(e)),s.then(function(){return e.emit("plotly_relayout",a.eventData),e})}function V(e,t,r){var n,a,i=e._fullLayout;if(!t.axrange)return!1;for(var l in t)if("axrange"!==l&&t[l])return!1;var s=function(e,t){return o.coerce(n,a,y,e,t)},c={};for(var u in r.rangesAltered){var f=h.id2name(u);if(n=e.layout[f],a=i[f],p(n,a,s,c),a._matchGroup)for(var d in a._matchGroup)if(d!==u){var v=i[h.id2name(d)];v.autorange=a.autorange,v.range=a.range.slice(),v._input.range=a.range.slice()}}return!0}function G(e,t){var r=t?function(e){var r=[];for(var n in t){var a=h.getFromId(e,n);if(r.push(n),-1!==(a.ticklabelposition||"").indexOf("inside")&&a._anchorAxis&&r.push(a._anchorAxis._id),a._matchGroup)for(var i in a._matchGroup)t[i]||r.push(i)}return h.draw(e,r,{skipTitle:!0})}:function(e){return h.draw(e,"redraw")};e.push(b,T.doAutoRangeAndConstraints,r,T.drawData,T.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,J=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function X(e,t){var r,n,a,i=e.layout,s=e._fullLayout,c=s._guiEditing,d=B(s._preGUI,c),p=Object.keys(t),y=h.list(e),v=o.extendDeepAll({},t),g={};for(q(t),p=Object.keys(t),n=0;n<p.length;n++)if(0===p[n].indexOf("allaxes")){for(a=0;a<y.length;a++){var m=y[a]._id.substr(1),x=-1!==m.indexOf("scene")?m+".":"",b=p[n].replace("allaxes",x+y[a]._name);t[b]||(t[b]=t[p[n]])}delete t[p[n]]}var _=M.layoutFlags(),T={},S={};function L(e,r){if(Array.isArray(e))e.forEach(function(e){L(e,r)});else if(!(e in t||k.hasParent(t,e))){var n=d(i,e);e in S||(S[e]=j(n.get())),void 0!==r&&n.set(r)}}var O,C={};function D(e){var t=h.name2id(e.split(".")[0]);return C[t]=1,t}for(var P in t){if(k.hasParent(t,P))throw new Error("cannot set "+P+" and a parent attribute simultaneously");for(var E=d(i,P),R=t[P],I=E.parts.length-1;I>0&&"string"!=typeof E.parts[I];)I--;var z=E.parts[I],N=E.parts[I-1]+"."+z,F=E.parts.slice(0,I).join("."),H=l(e.layout,F).get(),U=l(s,F).get(),Y=E.get();if(void 0!==R){T[P]=R,S[P]="reverse"===z?R:j(Y);var V=f.getLayoutValObject(s,E.parts);if(V&&V.impliedEdits&&null!==R)for(var G in V.impliedEdits)L(o.relativeAttr(P,G),V.impliedEdits[G]);if(-1!==["width","height"].indexOf(P))if(R){L("autosize",null);var X="height"===P?"width":"height";L(X,s[X])}else s[P]=e._initialAutoSize[P];else if("autosize"===P)L("width",R?null:s.width),L("height",R?null:s.height);else if(N.match(Z))D(N),l(s,F+"._inputRange").set(null);else if(N.match(W)){D(N),l(s,F+"._inputRange").set(null);var $=l(s,F).get();$._inputDomain&&($._input.domain=$._inputDomain.slice())}else N.match(J)&&l(s,F+"._inputDomain").set(null);if("type"===z){O=H;var Q="linear"===U.type&&"log"===R,ee="log"===U.type&&"linear"===R;if(Q||ee){if(O&&O.range)if(U.autorange)Q&&(O.range=O.range[1]>O.range[0]?[1,2]:[2,1]);else{var te=O.range[0],re=O.range[1];Q?(te<=0&&re<=0&&L(F+".autorange",!0),te<=0?te=re/1e6:re<=0&&(re=te/1e6),L(F+".range[0]",Math.log(te)/Math.LN10),L(F+".range[1]",Math.log(re)/Math.LN10)):(L(F+".range[0]",Math.pow(10,te)),L(F+".range[1]",Math.pow(10,re)))}else L(F+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[E.parts[0]]&&"radialaxis"===E.parts[1]&&delete s[E.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(e,U,R,L),u.getComponentMethod("images","convertCoords")(e,U,R,L)}else L(F+".autorange",!0),L(F+".range",null);l(s,F+"._inputRange").set(null)}else if(z.match(A)){var ne=l(s,P).get(),ae=(R||{}).type;ae&&"-"!==ae||(ae="linear"),u.getComponentMethod("annotations","convertCoords")(e,ne,ae,L),u.getComponentMethod("images","convertCoords")(e,ne,ae,L)}var ie=w.containerArrayMatch(P);if(ie){r=ie.array,n=ie.index;var oe=ie.property,le=V||{editType:"calc"};""!==n&&""===oe&&(w.isAddVal(R)?S[P]=null:w.isRemoveVal(R)?S[P]=(l(i,r).get()||[])[n]:o.warn("unrecognized full object value",t)),M.update(_,le),g[r]||(g[r]={});var se=g[r][n];se||(se=g[r][n]={}),se[oe]=R,delete t[P]}else"reverse"===z?(H.range?H.range.reverse():(L(F+".autorange",!0),H.range=[1,0]),U.autorange?_.calc=!0:_.plot=!0):("dragmode"===P&&(!1===R&&!1!==Y||!1!==R&&!1===Y)?_.plot=!0:s._has("scatter-like")&&s._has("regl")&&"dragmode"===P&&("lasso"===R||"select"===R)&&"lasso"!==Y&&"select"!==Y?_.plot=!0:s._has("gl2d")?_.plot=!0:V?M.update(_,V):_.calc=!0,E.set(R))}}for(r in g){w.applyContainerArrayChanges(e,d(i,r),g[r],_,d)||(_.plot=!0)}for(var ce in C){var ue=(O=h.getFromId(e,ce))&&O._constraintGroup;if(ue)for(var fe in _.calc=!0,ue)C[fe]||(h.getFromId(e,fe)._constraintShrinkable=!0)}(K(e)||t.height||t.width)&&(_.plot=!0);var de=s.shapes;for(n=0;n<de.length;n++)if(de[n].showlegend){_.calc=!0;break}return(_.plot||_.calc)&&(_.layoutReplot=!0),{flags:_,rangesAltered:C,undoit:S,redoit:T,eventData:v}}function K(e){var t=e._fullLayout,r=t.width,n=t.height;return e.layout.autosize&&d.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==n}function $(e,r,n,a){e=o.getGraphDiv(e),k.clearPromiseQueue(e),o.isPlainObject(r)||(r={}),o.isPlainObject(n)||(n={}),Object.keys(r).length&&(e.changed=!0),Object.keys(n).length&&(e.changed=!0);var i=k.coerceTraceIndices(e,a),l=U(e,o.extendFlat({},r),i),s=l.flags,u=X(e,o.extendFlat({},n)),f=u.flags;(s.calc||f.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&k.clearAxisTypes(e,i,n);var h=[];f.layoutReplot?h.push(T.layoutReplot):s.fullReplot?h.push(t._doPlot):(h.push(d.previousPromises),V(e,f,u)||d.supplyDefaults(e),s.style&&h.push(T.doTraceStyle),(s.colorbars||f.colorbars)&&h.push(T.doColorBars),f.legend&&h.push(T.doLegend),f.layoutstyle&&h.push(T.layoutStyles),f.axrange&&G(h,u.rangesAltered),f.ticks&&h.push(T.doTicksRelayout),f.modebar&&h.push(T.doModeBar),f.camera&&h.push(T.doCamera),h.push(O)),h.push(d.rehover,d.redrag,d.reselect),c.add(e,$,[e,l.undoit,u.undoit,l.traces],$,[e,l.redoit,u.redoit,l.traces]);var p=o.syncOrAsync(h,e);return p&&p.then||(p=Promise.resolve(e)),p.then(function(){return e.emit("plotly_update",{data:l.eventData,layout:u.eventData}),e})}function Q(e){return function(t){t._fullLayout._guiEditing=!0;var r=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,r}}var ee=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],te=[{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 re(e,t){for(var r=0;r<t.length;r++){var n=t[r],a=e.match(n.pattern);if(a){var i=a[1]||"";return{head:i,tail:e.substr(i.length+1),attr:n.attr}}}}function ne(e,t){var r=l(t,e).get();if(void 0!==r)return r;var n=e.split(".");for(n.pop();n.length>1;)if(n.pop(),void 0!==(r=l(t,n.join(".")+".uirevision").get()))return r;return t.uirevision}function ae(e,t){for(var r=0;r<t.length;r++)if(t[r]._fullInput.uid===e)return r;return-1}function ie(e,t,r){for(var n=0;n<t.length;n++)if(t[n].uid===e)return n;return!t[r]||t[r].uid?-1:r}function oe(e,t){var r=o.isPlainObject(e),n=Array.isArray(e);return r||n?(r&&o.isPlainObject(t)||n&&Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):e===t}function le(e,t,r,n){var a,i,s,c=n.getValObject,u=n.flags,f=n.immutable,d=n.inArray,h=n.arrayIndex;function p(){var e=a.editType;d&&-1!==e.indexOf("arraydraw")?o.pushUnique(u.arrays[d],h):(M.update(u,a),"none"!==e&&u.nChanges++,n.transition&&a.anim&&u.nChangesAnim++,(Z.test(s)||W.test(s))&&(u.rangesAltered[r[0]]=1),J.test(s)&&l(t,"_inputDomain").set(null),"datarevision"===i&&(u.newDataRevision=1))}function y(e){return"data_array"===e.valType||e.arrayOk}for(i in e){if(u.calc&&!n.transition)return;var v=e[i],g=t[i],m=r.concat(i);if(s=m.join("."),"_"!==i.charAt(0)&&"function"!=typeof v&&v!==g){if(("tick0"===i||"dtick"===i)&&"geo"!==r[0]){var x=t.tickmode;if("auto"===x||"array"===x||!x)continue}if(("range"!==i||!t.autorange)&&("zmin"!==i&&"zmax"!==i||"contourcarpet"!==t.type)&&(a=c(m))&&(!a._compareAsJSON||JSON.stringify(v)!==JSON.stringify(g))){var b,_=a.valType,w=y(a),k=Array.isArray(v),T=Array.isArray(g);if(k&&T){var A="_input_"+i,S=e[A],L=t[A];if(Array.isArray(S)&&S===L)continue}if(void 0===g)w&&k?u.calc=!0:p();else if(a._isLinkedToArray){var O=[],C=!1;d||(u.arrays[i]=O);var D=Math.min(v.length,g.length),P=Math.max(v.length,g.length);if(D!==P){if("arraydraw"!==a.editType){p();continue}C=!0}for(b=0;b<D;b++)le(v[b],g[b],m.concat(b),o.extendFlat({inArray:i,arrayIndex:b},n));if(C)for(b=D;b<P;b++)O.push(b)}else!_&&o.isPlainObject(v)?le(v,g,m,n):w?k&&T?(f&&(u.calc=!0),(f||n.newDataRevision)&&p()):k!==T?u.calc=!0:p():k&&T&&v.length===g.length&&String(v)===String(g)||p()}}}for(i in t)if(!(i in e||"_"===i.charAt(0)||"function"==typeof t[i])){if(y(a=c(r.concat(i)))&&Array.isArray(t[i]))return void(u.calc=!0);p()}}function se(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!o.equalDomRects(r,t._lastBBox)){var n=t._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}t.animate=function(e,t,r){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var n=e._transitionData;n._frameQueue||(n._frameQueue=[]);var a=(r=d.supplyAnimationDefaults(r)).transition,i=r.frame;function l(e){return Array.isArray(a)?e>=a.length?a[0]:a[e]:a}function s(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function c(e,t){var r=0;return function(){if(e&&++r===t)return e()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise(function(i,u){function f(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var t=n._currentFrame=n._frameQueue.shift();if(t){var r=t.name?t.name.toString():null;e._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=t.frameOpts.duration,d.transition(e,t.frame.data,t.frame.layout,k.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then(function(){t.onComplete&&t.onComplete()}),e.emit("plotly_animatingframe",{name:r,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function h(){e.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var t=function(){n._animationRaf=window.requestAnimationFrame(t),Date.now()-n._lastFrameAt>n._timeToNext&&f()};t()}var p,y,v=0;function g(e){return Array.isArray(a)?v>=a.length?e.transitionOpts=a[v]:e.transitionOpts=a[0]:e.transitionOpts=a,v++,e}var m=[],x=null==t,b=Array.isArray(t);if(x||b||!o.isPlainObject(t)){if(x||-1!==["string","number"].indexOf(typeof t))for(p=0;p<n._frames.length;p++)(y=n._frames[p])&&(x||String(y.group)===String(t))&&m.push({type:"byname",name:String(y.name),data:g({name:y.name})});else if(b)for(p=0;p<t.length;p++){var _=t[p];-1!==["number","string"].indexOf(typeof _)?(_=String(_),m.push({type:"byname",name:_,data:g({name:_})})):o.isPlainObject(_)&&m.push({type:"object",data:g(o.extendFlat({},_))})}}else m.push({type:"object",data:g(o.extendFlat({},t))});for(p=0;p<m.length;p++)if("byname"===(y=m[p]).type&&!n._frameHash[y.data.name])return o.warn('animate failure: frame not found: "'+y.data.name+'"'),void u();-1!==["next","immediate"].indexOf(r.mode)&&function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var t=n._frameQueue.pop();t.onInterrupt&&t.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}(),"reverse"===r.direction&&m.reverse();var w=e._fullLayout._currentFrame;if(w&&r.fromcurrent){var T=-1;for(p=0;p<m.length;p++)if("byname"===(y=m[p]).type&&y.name===w){T=p;break}if(T>0&&T<m.length-1){var M=[];for(p=0;p<m.length;p++)y=m[p],("byname"!==m[p].type||p>T)&&M.push(y);m=M}}m.length>0?function(t){if(0!==t.length){for(var a=0;a<t.length;a++){var o;o="byname"===t[a].type?d.computeFrame(e,t[a].name):t[a].data;var f=s(a),p=l(a);p.duration=Math.min(p.duration,f.duration);var y={frame:o,name:t[a].name,frameOpts:f,transitionOpts:p};a===t.length-1&&(y.onComplete=c(i,2),y.onInterrupt=u),n._frameQueue.push(y)}"immediate"===r.mode&&(n._lastFrameAt=-1/0),n._animationRaf||h()}}(m):(e.emit("plotly_animated"),i())})},t.addFrames=function(e,t,r){if(e=o.getGraphDiv(e),null==t)return Promise.resolve();if(!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,i,l,s=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var f=s.length+2*t.length,h=[],p={};for(n=t.length-1;n>=0;n--)if(o.isPlainObject(t[n])){var y=t[n].name,v=(u[y]||p[y]||{}).name,g=t[n].name,m=u[v]||p[v];v&&g&&"number"==typeof g&&m&&S<L&&(S++,o.warn('addFrames: overwriting frame "'+(u[v]||p[v]).name+'" with a frame whose name of type "number" also equates to "'+v+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),S===L&&o.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.")),p[y]={name:y},h.push({frame:d.supplyFrameDefaults(t[n]),index:r&&void 0!==r[n]&&null!==r[n]?r[n]:f+n})}h.sort(function(e,t){return e.index>t.index?-1:e.index<t.index?1:0});var x=[],b=[],_=s.length;for(n=h.length-1;n>=0;n--){if("number"==typeof(a=h[n].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(i=0;i<s.length&&(s[i]||{}).name!==a.name;i++);x.push({type:"replace",index:i,value:a}),b.unshift({type:"replace",index:i,value:s[i]})}else l=Math.max(0,Math.min(h[n].index,_)),x.push({type:"insert",index:l,value:a}),b.unshift({type:"delete",index:l}),_++}var w=d.modifyFrames,k=d.modifyFrames,T=[e,b],M=[e,x];return c&&c.add(e,w,T,k,M),d.modifyFrames(e,x)},t.deleteFrames=function(e,t){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var r,n,a=e._transitionData._frames,i=[],l=[];if(!t)for(t=[],r=0;r<a.length;r++)t.push(r);for((t=t.slice()).sort(),r=t.length-1;r>=0;r--)n=t[r],i.push({type:"delete",index:n}),l.unshift({type:"insert",index:n,value:a[n]});var s=d.modifyFrames,u=d.modifyFrames,f=[e,l],h=[e,i];return c&&c.add(e,s,f,u,h),d.modifyFrames(e,i)},t.addTraces=function e(r,n,a){r=o.getGraphDiv(r);var i,l,s=[],u=t.deleteTraces,f=e,d=[r,s],h=[r,n];for(function(e,t,r){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n<t.length;n++)if("object"!=typeof(a=t[n])||Array.isArray(a)||null===a)throw new Error("all values in traces array must be non-array objects");if(void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&r.length!==t.length)throw new Error("if indices is specified, traces.length must equal indices.length")}(r,n,a),Array.isArray(n)||(n=[n]),n=n.map(function(e){return o.extendFlat({},e)}),k.cleanData(n),i=0;i<n.length;i++)r.data.push(n[i]);for(i=0;i<n.length;i++)s.push(-n.length+i);if(void 0===a)return l=t.redraw(r),c.add(r,u,d,f,h),l;Array.isArray(a)||(a=[a]);try{I(r,s,a)}catch(e){throw r.data.splice(r.data.length-n.length,n.length),e}return c.startSequence(r),c.add(r,u,d,f,h),l=t.moveTraces(r,s,a),c.stopSequence(r),l},t.deleteTraces=function e(r,n){r=o.getGraphDiv(r);var a,i,l=[],s=t.addTraces,u=e,f=[r,l,n],d=[r,n];if(void 0===n)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(n)||(n=[n]),R(r,n,"indices"),(n=E(n,r.data.length-1)).sort(o.sorterDes),a=0;a<n.length;a+=1)i=r.data.splice(n[a],1)[0],l.push(i);var h=t.redraw(r);return c.add(r,s,f,u,d),h},t.extendTraces=function e(r,n,a,i){var l=z(r=o.getGraphDiv(r),n,a,i,function(e,t,r){var n,a;if(o.isTypedArray(e))if(r<0){var i=new e.constructor(0),l=N(e,t);r<0?(n=l,a=i):(n=i,a=l)}else if(n=new e.constructor(r),a=new e.constructor(e.length+t.length-r),r===t.length)n.set(t),a.set(e);else if(r<t.length){var s=t.length-r;n.set(t.subarray(s)),a.set(e),a.set(t.subarray(0,s),e.length)}else{var c=r-t.length,u=e.length-c;n.set(e.subarray(u)),n.set(t,c),a.set(e.subarray(0,u))}else n=e.concat(t),a=r>=0&&r<n.length?n.splice(0,n.length-r):[];return[n,a]}),s=t.redraw(r),u=[r,l.update,a,l.maxPoints];return c.add(r,t.prependTraces,u,e,arguments),s},t.moveTraces=function e(r,n,a){var i,l=[],s=[],u=e,f=e,d=[r=o.getGraphDiv(r),a,n],h=[r,n,a];if(I(r,n,a),n=Array.isArray(n)?n:[n],void 0===a)for(a=[],i=0;i<n.length;i++)a.push(-n.length+i);for(a=Array.isArray(a)?a:[a],n=E(n,r.data.length-1),a=E(a,r.data.length-1),i=0;i<r.data.length;i++)-1===n.indexOf(i)&&l.push(r.data[i]);for(i=0;i<n.length;i++)s.push({newIndex:a[i],trace:r.data[n[i]]});for(s.sort(function(e,t){return e.newIndex-t.newIndex}),i=0;i<s.length;i+=1)l.splice(s[i].newIndex,0,s[i].trace);r.data=l;var p=t.redraw(r);return c.add(r,u,d,f,h),p},t.prependTraces=function e(r,n,a,i){var l=z(r=o.getGraphDiv(r),n,a,i,function(e,t,r){var n,a;if(o.isTypedArray(e))if(r<=0){var i=new e.constructor(0),l=N(t,e);r<0?(n=l,a=i):(n=i,a=l)}else if(n=new e.constructor(r),a=new e.constructor(e.length+t.length-r),r===t.length)n.set(t),a.set(e);else if(r<t.length){var s=t.length-r;n.set(t.subarray(0,s)),a.set(t.subarray(s)),a.set(e,s)}else{var c=r-t.length;n.set(t),n.set(e.subarray(0,c),t.length),a.set(e.subarray(c))}else n=t.concat(e),a=r>=0&&r<n.length?n.splice(r,n.length):[];return[n,a]}),s=t.redraw(r),u=[r,l.update,a,l.maxPoints];return c.add(r,t.extendTraces,u,e,arguments),s},t.newPlot=function(e,r,n,a){return e=o.getGraphDiv(e),d.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),d.purge(e),t._doPlot(e,r,n,a)},t._doPlot=function(e,r,a,i){var l;if(e=o.getGraphDiv(e),s.init(e),o.isPlainObject(r)){var c=r;r=c.data,a=c.layout,i=c.config,l=c.frames}if(!1===s.triggerHandler(e,"plotly_beforeplot",[r,a,i]))return Promise.reject();r||a||o.isPlotDiv(e)||o.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e),P(e,i),a||(a={}),n.select(e).classed("js-plotly-plot",!0),v.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var f=0===(e.data||[]).length&&Array.isArray(r);Array.isArray(r)&&(k.cleanData(r),f?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),e.layout&&!f||(e.layout=k.cleanLayout(a)),d.supplyDefaults(e);var p=e._fullLayout,y=p._has("cartesian");p._replotting=!0,(f||p._shouldCreateBgLayer)&&(function(e){var t=n.select(e),r=e._fullLayout;if(r._calcInverseTransform=se,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var a={};n.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),r._uid=o.randstr(a)}r._paperdiv.selectAll(".main-svg").attr(x.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var l=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=l.append("g").classed("imagelayer",!0),r._shapeUpperLayer=l.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}(e),p._shouldCreateBgLayer&&delete p._shouldCreateBgLayer),v.initGradients(e),v.initPatterns(e),f&&h.saveShowSpikeInitial(e);var g=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;g&&d.doCalcdata(e);for(var b=0;b<e.calcdata.length;b++)e.calcdata[b][0].trace=e._fullData[b];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){o.isHidden(e)||d.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):o.clearResponsive(e);var _=o.extendFlat({},p._size),w=0;function M(){if(d.clearAutoMarginIds(e),T.drawMarginPushers(e),h.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&d.allowAutoMargin(e,"title.automargin"),p._has("pie"))for(var t=e._fullData,r=0;r<t.length;r++){var n=t[r];"pie"===n.type&&n.automargin&&d.allowAutoMargin(e,"pie."+n.uid+".automargin")}return d.doAutoMargin(e),d.previousPromises(e)}function A(){e._transitioning||(T.doAutoRangeAndConstraints(e),f&&h.saveRangeInitial(e),u.getComponentMethod("rangeslider","calcAutorange")(e))}var S=[d.previousPromises,function(){if(l)return t.addFrames(e,l)},function t(){for(var r=p._basePlotModules,n=0;n<r.length;n++)r[n].drawFramework&&r[n].drawFramework(e);!p._glcanvas&&p._has("gl")&&(p._glcanvas=p._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(e){return e.key}),p._glcanvas.enter().append("canvas").attr("class",function(e){return"gl-canvas gl-canvas-"+e.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var a=e._context.plotGlPixelRatio;if(p._glcanvas){p._glcanvas.attr("width",p.width*a).attr("height",p.height*a).style("width",p.width+"px").style("height",p.height+"px");var i=p._glcanvas.data()[0].regl;if(i&&(Math.floor(p.width*a)!==i._gl.drawingBufferWidth||Math.floor(p.height*a)!==i._gl.drawingBufferHeight)){var l="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!w)return o.log(l+" Clearing graph and plotting again."),d.cleanPlot([],{},e._fullData,p),d.supplyDefaults(e),p=e._fullLayout,d.doCalcdata(e),w++,t();o.error(l)}}return"h"===p.modebar.orientation?p._modebardiv.style("height",null).style("width","100%"):p._modebardiv.style("width",null).style("height",p.height+"px"),d.previousPromises(e)},M,function(){if(d.didMarginChange(_,p._size))return o.syncOrAsync([M,T.layoutStyles],e)}];y&&S.push(function(){if(g)return o.syncOrAsync([u.getComponentMethod("shapes","calcAutorange"),u.getComponentMethod("annotations","calcAutorange"),A],e);A()}),S.push(T.layoutStyles),y&&S.push(function(){return h.draw(e,f?"":"redraw")},function(e){var t=e._fullLayout._insideTickLabelsUpdaterange;if(t)return e._fullLayout._insideTickLabelsUpdaterange=void 0,Y(e,t).then(function(){h.saveRangeInitial(e,!0)})}),S.push(T.drawData,T.finalDraw,m,d.addLinks,d.rehover,d.redrag,d.reselect,d.doAutoMargin,d.previousPromises);var L=o.syncOrAsync(S,e);return L&&L.then||(L=Promise.resolve()),L.then(function(){return O(e),e})},t.purge=function(e){var t=(e=o.getGraphDiv(e))._fullLayout||{},r=e._fullData||[];return d.cleanPlot([],{},r,t),d.purge(e),s.purge(e),t._container&&t._container.remove(),delete e._context,e},t.react=function(e,r,n,a){var i,s;e=o.getGraphDiv(e),k.clearPromiseQueue(e);var c=e._fullData,h=e._fullLayout;if(o.isPlotDiv(e)&&c&&h){if(o.isPlainObject(r)){var p=r;r=p.data,n=p.layout,a=p.config,i=p.frames}var y=!1;if(a){var v=o.extendDeep({},e._context);e._context=void 0,P(e,a),y=function e(t,r){var n;for(n in t)if("_"!==n.charAt(0)){var a=t[n],i=r[n];if(a!==i)if(o.isPlainObject(a)&&o.isPlainObject(i)){if(e(a,i))return!0}else{if(!Array.isArray(a)||!Array.isArray(i))return!0;if(a.length!==i.length)return!0;for(var l=0;l<a.length;l++)if(a[l]!==i[l]){if(!o.isPlainObject(a[l])||!o.isPlainObject(i[l]))return!0;if(e(a[l],i[l]))return!0}}}}(v,e._context)}e.data=r||[],k.cleanData(e.data),e.layout=n||{},k.cleanLayout(e.layout),function(e,t,r,n){var a,i,s,c,u,f,d,h,p,y,v=n._preGUI,g=[],m={},x={};for(a in v){if(u=re(a,ee)){if(p=u.head,y=u.tail,i=u.attr||p+".uirevision",(c=(s=l(n,i).get())&&ne(i,t))&&c===s){if(null===(f=v[a])&&(f=void 0),oe(h=(d=l(t,a)).get(),f)){void 0===h&&"autorange"===y&&g.push(p),d.set(j(l(n,a).get()));continue}if("autorange"===y||"range["===y.substr(0,6)){var b=v[p+".range[0]"],_=v[p+".range[1]"],w=v[p+".autorange"];if(w||null===w&&null===b&&null===_){if(!(p in m)){var k=l(t,p).get();m[p]=k&&(k.autorange||!1!==k.autorange&&(!k.range||2!==k.range.length))}if(m[p]){d.set(j(l(n,a).get()));continue}}}}}else o.warn("unrecognized GUI edit: "+a);delete v[a],u&&"range["===u.tail.substr(0,6)&&(x[u.head]=1)}for(var T=0;T<g.length;T++){var M=g[T];if(x[M]){var A=l(t,M).get();A&&delete A.autorange}}var S=n._tracePreGUI;for(var L in S){var O,C=S[L],D=null;for(a in C){if(!D){var P=ae(L,r);if(P<0){delete S[L];break}var E=ie(L,e,(O=r[P]._fullInput).index);if(E<0){delete S[L];break}D=e[E]}if(u=re(a,te)){if(u.attr?c=(s=l(n,u.attr).get())&&ne(u.attr,t):(s=O.uirevision,void 0===(c=D.uirevision)&&(c=t.uirevision)),c&&c===s&&(null===(f=C[a])&&(f=void 0),oe(h=(d=l(D,a)).get(),f))){d.set(j(l(O,a).get()));continue}}else o.warn("unrecognized GUI edit: "+a+" in trace uid "+L);delete C[a]}}}(e.data,e.layout,c,h),d.supplyDefaults(e,{skipUpdateCalc:!0});var g=e._fullData,m=e._fullLayout,x=void 0===m.datarevision,b=m.transition,_=function(e,t,r,n,a){var i=M.layoutFlags();return i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0,le(t,r,[],{getValObject:function(e){return f.getLayoutValObject(r,e)},flags:i,immutable:n,transition:a,gd:e}),(i.plot||i.calc)&&(i.layoutReplot=!0),a&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some"),i}(e,h,m,x,b),w=_.newDataRevision,A=function(e,t,r,n,a,i){var o=t.length===r.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var l,s,c=M.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(e){var t=f.getTraceValObject(s,e);return!s._module.animatable&&t.anim&&(t.anim=!1),t},flags:c,immutable:n,transition:a,newDataRevision:i,gd:e},h={};for(l=0;l<t.length;l++)if(r[l]){if(s=r[l]._fullInput,d.hasMakesDataTransform(s)&&(s=r[l]),h[s.uid])continue;h[s.uid]=1,le(t[l]._fullInput,s,[],u)}return(c.calc||c.plot)&&(c.fullReplot=!0),a&&c.nChanges&&c.nChangesAnim&&(c.anim=c.nChanges===c.nChangesAnim&&o?"all":"some"),c}(e,c,g,x,b,w);if(K(e)&&(_.layoutReplot=!0),A.calc||_.calc){e.calcdata=void 0;for(var S=Object.getOwnPropertyNames(m),L=0;L<S.length;L++){var C=S[L],D=C.substring(0,5);if("xaxis"===D||"yaxis"===D){var E=m[C]._emptyCategories;E&&E()}}}else d.supplyDefaultsUpdateCalc(e.calcdata,g);var R=[];if(i&&(e._transitionData={},d.createTransitionData(e),R.push(function(){return t.addFrames(e,i)})),m.transition&&!y&&(A.anim||_.anim))_.ticks&&R.push(T.doTicksRelayout),d.doCalcdata(e),T.doAutoRangeAndConstraints(e),R.push(function(){return d.transitionFromReact(e,A,_,h)});else if(A.fullReplot||_.layoutReplot||y)e._fullLayout._skipDefaults=!0,R.push(t._doPlot);else{for(var I in _.arrays){var z=_.arrays[I];if(z.length){var N=u.getComponentMethod(I,"drawOne");if(N!==o.noop)for(var F=0;F<z.length;F++)N(e,z[F]);else{var B=u.getComponentMethod(I,"draw");if(B===o.noop)throw new Error("cannot draw components: "+I);B(e)}}}R.push(d.previousPromises),A.style&&R.push(T.doTraceStyle),(A.colorbars||_.colorbars)&&R.push(T.doColorBars),_.legend&&R.push(T.doLegend),_.layoutstyle&&R.push(T.layoutStyles),_.axrange&&G(R),_.ticks&&R.push(T.doTicksRelayout),_.modebar&&R.push(T.doModeBar),_.camera&&R.push(T.doCamera),R.push(O)}R.push(d.rehover,d.redrag,d.reselect),(s=o.syncOrAsync(R,e))&&s.then||(s=Promise.resolve(e))}else s=t.newPlot(e,r,n,a);return s.then(function(){return e.emit("plotly_react",{data:r,layout:n}),e})},t.redraw=function(e){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return k.cleanData(e.data),k.cleanLayout(e.layout),e.calcdata=void 0,t._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})},t.relayout=Y,t.restyle=F,t.setPlotConfig=function(e){return o.extendFlat(_,e)},t.update=$,t._guiRelayout=Q(Y),t._guiRestyle=Q(F),t._guiUpdate=Q($),t._storeDirectGUIEdit=function(e,t,r){for(var n in r)H(n,l(e,n).get(),r[n],t)}},20556:function(e){"use strict";var t={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},r={};!function e(t,r){for(var n in t){var a=t[n];a.valType?r[n]=a.dflt:(r[n]||(r[n]={}),e(a,r[n]))}}(t,r),e.exports={configAttributes:t,dfltConfig:r}},73060:function(e,t,r){"use strict";var n=r(24040),a=r(3400),i=r(45464),o=r(64859),l=r(16672),s=r(85656),c=r(20556).configAttributes,u=r(67824),f=a.extendDeepAll,d=a.isPlainObject,h=a.isArrayOrTypedArray,p=a.nestedProperty,y=a.valObjectMeta,v="_isSubplotObj",g="_isLinkedToArray",m=[v,g,"_arrayAttrRegexps","_deprecated"];function x(e,t,r){if(!e)return!1;if(e._isLinkedToArray)if(b(t[r]))r++;else if(r<t.length)return!1;for(;r<t.length;r++){var n=e[t[r]];if(!d(n))break;if(e=n,r===t.length-1)break;if(e._isLinkedToArray){if(!b(t[++r]))return!1}else if("info_array"===e.valType){var a=t[++r];if(!b(a))return!1;var i=e.items;if(Array.isArray(i)){if(a>=i.length)return!1;if(2===e.dimensions){if(r++,t.length===r)return e;var o=t[r];if(!b(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function b(e){return e===Math.round(e)&&e>=0}function _(){var e,t,r={};for(e in f(r,o),n.subplotsRegistry){if((t=n.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)T(r,t,t.attr[a]);else T(r,t,"subplot"===t.attr?t.name:t.attr)}for(e in n.componentsRegistry){var i=(t=n.componentsRegistry[e]).schema;if(i&&(i.subplots||i.layout)){var l=i.subplots;if(l&&l.xaxis&&!l.yaxis)for(var s in l.xaxis)delete r.yaxis[s];delete r.xaxis.shift,delete r.xaxis.autoshift}else"colorscale"===t.name?f(r,t.layoutAttributes):t.layoutAttributes&&M(r,t.layoutAttributes,t.name)}return{layoutAttributes:k(r)}}function w(){var e={frames:f({},l)};return k(e),e.frames}function k(e){return function(e){t.crawl(e,function(e,r,n){t.isValObject(e)?!0!==e.arrayOk&&"data_array"!==e.valType||(n[r+"src"]={valType:"string",editType:"none"}):d(e)&&(e.role="object")})}(e),function(e){t.crawl(e,function(e,t,r){if(!e)return;var n=e[g];if(!n)return;delete e[g],r[t]={items:{}},r[t].items[n]=e,r[t].role="object"})}(e),function(e){!function e(t){for(var r in t)if(d(t[r]))e(t[r]);else if(Array.isArray(t[r]))for(var n=0;n<t[r].length;n++)e(t[r][n]);else t[r]instanceof RegExp&&(t[r]=t[r].toString())}(e)}(e),e}function T(e,t,r){var n=p(e,r),a=f({},t.layoutAttributes);a[v]=!0,n.set(a)}function M(e,t,r){var n=p(e,r);n.set(f(n.get()||{},t))}t.IS_SUBPLOT_OBJ=v,t.IS_LINKED_TO_ARRAY=g,t.DEPRECATED="_deprecated",t.UNDERSCORE_ATTRS=m,t.get=function(){var e={};n.allTypes.forEach(function(r){e[r]=function(e){var r,a;r=n.modules[e]._module,a=r.basePlotModule;var o={type:null},l=f({},i),s=f({},r.attributes);t.crawl(s,function(e,t,r,n,a){p(l,a).set(void 0),void 0===e&&p(s,a).set(void 0)}),f(o,l),n.traceIs(e,"noOpacity")&&delete o.opacity;n.traceIs(e,"showLegend")||(delete o.showlegend,delete o.legendgroup);n.traceIs(e,"noHover")&&(delete o.hoverinfo,delete o.hoverlabel);r.selectPoints||delete o.selectedpoints;f(o,s),a.attributes&&f(o,a.attributes);o.type=e;var c={meta:r.meta||{},categories:r.categories||{},animatable:Boolean(r.animatable),type:e,attributes:k(o)};if(r.layoutAttributes){var u={};f(u,r.layoutAttributes),c.layoutAttributes=k(u)}r.animatable||t.crawl(c,function(e){t.isValObject(e)&&"anim"in e&&delete e.anim});return c}(r)});var r={};return Object.keys(n.transformsRegistry).forEach(function(e){r[e]=function(e){var t=n.transformsRegistry[e],r=f({},t.attributes);return Object.keys(n.componentsRegistry).forEach(function(t){var a=n.componentsRegistry[t];a.schema&&a.schema.transforms&&a.schema.transforms[e]&&Object.keys(a.schema.transforms[e]).forEach(function(t){M(r,a.schema.transforms[e][t],t)})}),{attributes:k(r)}}(e)}),{defs:{valObjects:y,metaKeys:m.concat(["description","role","editType","impliedEdits"]),editType:{traces:u.traces,layout:u.layout},impliedEdits:{}},traces:e,layout:_(),transforms:r,frames:w(),animation:k(s),config:k(c)}},t.crawl=function(e,r,n,a){var i=n||0;a=a||"",Object.keys(e).forEach(function(n){var o=e[n];if(-1===m.indexOf(n)){var l=(a?a+".":"")+n;r(o,n,e,i,l),t.isValObject(o)||d(o)&&"impliedEdits"!==n&&t.crawl(o,r,i+1,l)}})},t.isValObject=function(e){return e&&void 0!==e.valType},t.findArrayAttributes=function(e){var r,n,a=[],o=[],l=[];function s(e,t,i,s){o=o.slice(0,s).concat([t]),l=l.slice(0,s).concat([e&&e._isLinkedToArray]),e&&("data_array"===e.valType||!0===e.arrayOk)&&!("colorbar"===o[s-1]&&("ticktext"===t||"tickvals"===t))&&function e(t,r,i){var s=t[o[r]];var c=i+o[r];if(r===o.length-1)h(s)&&a.push(n+c);else if(l[r]){if(Array.isArray(s))for(var u=0;u<s.length;u++)d(s[u])&&e(s[u],r+1,c+"["+u+"].")}else d(s)&&e(s,r+1,c+".")}(r,0,"")}r=e,n="",t.crawl(i,s),e._module&&e._module.attributes&&t.crawl(e._module.attributes,s);var c=e.transforms;if(c)for(var u=0;u<c.length;u++){var f=c[u],p=f._module;p&&(n="transforms["+u+"].",r=f,t.crawl(p.attributes,s))}return a},t.getTraceValObject=function(e,t){var r,a,o=t[0],l=1;if("transforms"===o){if(1===t.length)return i.transforms;var s=e.transforms;if(!Array.isArray(s)||!s.length)return!1;var c=t[1];if(!b(c)||c>=s.length)return!1;a=(r=(n.transformsRegistry[s[c].type]||{}).attributes)&&r[t[2]],l=3}else{var u=e._module;if(u||(u=(n.modules[e.type||i.type.dflt]||{})._module),!u)return!1;if(!(a=(r=u.attributes)&&r[o])){var f=u.basePlotModule;f&&f.attributes&&(a=f.attributes[o])}a||(a=i[o])}return x(a,t,l)},t.getLayoutValObject=function(e,t){return x(function(e,t){var r,a,i,l,s=e._basePlotModules;if(s){var c;for(r=0;r<s.length;r++){if((i=s[r]).attrRegex&&i.attrRegex.test(t)){if(i.layoutAttrOverrides)return i.layoutAttrOverrides;!c&&i.layoutAttributes&&(c=i.layoutAttributes)}var u=i.baseLayoutAttrOverrides;if(u&&t in u)return u[t]}if(c)return c}var f=e._modules;if(f)for(r=0;r<f.length;r++)if((l=f[r].layoutAttributes)&&t in l)return l[t];for(a in n.componentsRegistry){if("colorscale"===(i=n.componentsRegistry[a]).name&&0===t.indexOf("coloraxis"))return i.layoutAttributes[t];if(!i.schema&&t===i.name)return i.layoutAttributes}return t in o&&o[t]}(e,t[0]),t,1)}},31780:function(e,t,r){"use strict";var n=r(3400),a=r(45464),i="templateitemname",o={name:{valType:"string",editType:"none"}};function l(e){return e&&"string"==typeof e}function s(e){var t=e.length-1;return"s"!==e.charAt(t)&&n.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}o[i]={valType:"string",editType:"calc"},t.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=o.name,t[i]=o[i],t},t.traceTemplater=function(e){var t,r,i={};for(t in e)r=e[t],Array.isArray(r)&&r.length&&(i[t]=0);return{newTrace:function(o){var l={type:t=n.coerce(o,{},a,"type"),_template:null};if(t in i){r=e[t];var s=i[t]%r.length;i[t]++,l._template=r[s]}return l}}},t.newContainer=function(e,t,r){var a=e._template,i=a&&(a[t]||r&&a[r]);return n.isPlainObject(i)||(i=null),e[t]={_template:i}},t.arrayTemplater=function(e,t,r){var n=e._template,a=n&&n[s(t)],o=n&&n[t];Array.isArray(o)&&o.length||(o=[]);var c={};return{newItem:function(e){var t={name:e.name,_input:e},n=t[i]=e[i];if(!l(n))return t._template=a,t;for(var s=0;s<o.length;s++){var u=o[s];if(u.name===n)return c[n]=1,t._template=u,t}return t[r]=e[r]||!1,t._template=!1,t},defaultItems:function(){for(var e=[],t=0;t<o.length;t++){var r=o[t],n=r.name;if(l(n)&&!c[n]){var a={_template:r,name:n,_input:{_templateitemname:n}};a[i]=r[i],e.push(a),c[n]=1}}return e}}},t.arrayDefaultKey=s,t.arrayEditor=function(e,t,r){var a=(n.nestedProperty(e,t).get()||[]).length,o=r._index,l=o>=a&&(r._input||{})._templateitemname;l&&(o=a);var s,c=t+"["+o+"]";function u(){s={},l&&(s[c]={},s[c][i]=l)}function f(e,t){l?n.nestedProperty(s[c],e).set(t):s[c+"."+e]=t}function d(){var e=s;return u(),e}return u(),{modifyBase:function(e,t){s[e]=t},modifyItem:f,getUpdateObj:d,applyUpdate:function(t,r){t&&f(t,r);var a=d();for(var i in a)n.nestedProperty(e,i).set(a[i])}}}},39172:function(e,t,r){"use strict";var n=r(33428),a=r(24040),i=r(7316),o=r(3400),l=r(72736),s=r(73696),c=r(76308),u=r(43616),f=r(81668),d=r(45460),h=r(54460),p=r(84284),y=r(71888),v=y.enforce,g=y.clean,m=r(19280).doAutoRange,x="start",b="middle",_="end";function w(e,t,r){for(var n=0;n<r.length;n++){var a=r[n][0],i=r[n][1];if(!(a[0]>=e[1]||a[1]<=e[0])&&(i[0]<t[1]&&i[1]>t[0]))return!0}return!1}function k(e){var r,a,l,s,f,y,v=e._fullLayout,g=v._size,m=g.p,x=h.list(e,"",!0);if(v._paperdiv.style({width:e._context.responsive&&v.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":v.width+"px",height:e._context.responsive&&v.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":v.height+"px"}).selectAll(".main-svg").call(u.setSize,v.width,v.height),e._context.setBackground(e,v.paper_bgcolor),t.drawMainTitle(e),d.manage(e),!v._has("cartesian"))return i.previousPromises(e);function b(e,t,r){var n=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===r?t._offset-m-n:t._offset+t._length+m+n:g.t+g.h*(1-(e.position||0))+n%1:t?"right"===r?t._offset+t._length+m+n:t._offset-m-n:g.l+g.w*(e.position||0)+n%1}for(r=0;r<x.length;r++){var _=(s=x[r])._anchorAxis;s._linepositions={},s._lw=u.crispRound(e,s.linewidth,1),s._mainLinePosition=b(s,_,s.side),s._mainMirrorPosition=s.mirror&&_?b(s,_,p.OPPOSITE_SIDE[s.side]):null}var k=[],M=[],S=[],L=1===c.opacity(v.paper_bgcolor)&&1===c.opacity(v.plot_bgcolor)&&v.paper_bgcolor===v.plot_bgcolor;for(a in v._plots)if((l=v._plots[a]).mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var O=l.xaxis.domain,C=l.yaxis.domain,D=l.plotgroup;if(w(O,C,S)){var P=D.node(),E=l.bg=o.ensureSingle(D,"rect","bg");P.insertBefore(E.node(),P.childNodes[0]),M.push(a)}else D.select("rect.bg").remove(),S.push([O,C]),L||(k.push(a),M.push(a))}var R,I,z,N,F,j,B,H,U,q,Y,V,G,Z=v._bgLayer.selectAll(".bg").data(k);for(Z.enter().append("rect").classed("bg",!0),Z.exit().remove(),Z.each(function(e){v._plots[e].bg=n.select(this)}),r=0;r<M.length;r++)l=v._plots[M[r]],f=l.xaxis,y=l.yaxis,l.bg&&void 0!==f._offset&&void 0!==y._offset&&l.bg.call(u.setRect,f._offset-m,y._offset-m,f._length+2*m,y._length+2*m).call(c.fill,v.plot_bgcolor).style("stroke-width",0);if(!v._hasOnlyLargeSploms)for(a in v._plots){l=v._plots[a],f=l.xaxis,y=l.yaxis;var W,J,X=l.clipId="clip"+v._uid+a+"plot",K=o.ensureSingleById(v._clips,"clipPath",X,function(e){e.classed("plotclip",!0).append("rect")});l.clipRect=K.select("rect").attr({width:f._length,height:y._length}),u.setTranslate(l.plot,f._offset,y._offset),l._hasClipOnAxisFalse?(W=null,J=X):(W=X,J=null),u.setClipUrl(l.plot,W,e),l.layerClipId=J}function $(e){return"M"+R+","+e+"H"+I}function Q(e){return"M"+f._offset+","+e+"h"+f._length}function ee(e){return"M"+e+","+H+"V"+B}function te(e){return void 0!==y._shift&&(e+=y._shift),"M"+e+","+y._offset+"v"+y._length}function re(e,t,r){if(!e.showline||a!==e._mainSubplot)return"";if(!e._anchorAxis)return r(e._mainLinePosition);var n=t(e._mainLinePosition);return e.mirror&&(n+=t(e._mainMirrorPosition)),n}for(a in v._plots){l=v._plots[a],f=l.xaxis,y=l.yaxis;var ne="M0,0";T(f,a)&&(F=A(f,"left",y,x),R=f._offset-(F?m+F:0),j=A(f,"right",y,x),I=f._offset+f._length+(j?m+j:0),z=b(f,y,"bottom"),N=b(f,y,"top"),!(G=!f._anchorAxis||a!==f._mainSubplot)||"allticks"!==f.mirror&&"all"!==f.mirror||(f._linepositions[a]=[z,N]),ne=re(f,$,Q),G&&f.showline&&("all"===f.mirror||"allticks"===f.mirror)&&(ne+=$(z)+$(N)),l.xlines.style("stroke-width",f._lw+"px").call(c.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",ne);var ae="M0,0";T(y,a)&&(Y=A(y,"bottom",f,x),B=y._offset+y._length+(Y?m:0),V=A(y,"top",f,x),H=y._offset-(V?m:0),U=b(y,f,"left"),q=b(y,f,"right"),!(G=!y._anchorAxis||a!==y._mainSubplot)||"allticks"!==y.mirror&&"all"!==y.mirror||(y._linepositions[a]=[U,q]),ae=re(y,ee,te),G&&y.showline&&("all"===y.mirror||"allticks"===y.mirror)&&(ae+=ee(U)+ee(q)),l.ylines.style("stroke-width",y._lw+"px").call(c.stroke,y.showline?y.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ae)}return h.makeClipPaths(e),i.previousPromises(e)}function T(e,t){return(e.ticks||e.showline)&&(t===e._mainSubplot||"all"===e.mirror||"allticks"===e.mirror)}function M(e,t,r){if(!r.showline||!r._lw)return!1;if("all"===r.mirror||"allticks"===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var a=p.FROM_BL[t];return r.side===t?n.domain[a]===e.domain[a]:r.mirror&&n.domain[1-a]===e.domain[1-a]}function A(e,t,r,n){if(M(e,t,r))return r._lw;for(var a=0;a<n.length;a++){var i=n[a];if(i._mainAxis===r._mainAxis&&M(e,t,i))return i._lw}return 0}function S(e){return"top"===e?p.CAP_SHIFT+.3+"em":"bottom"===e?"-0.3em":p.MID_SHIFT+"em"}t.layoutStyles=function(e){return o.syncOrAsync([i.doAutoMargin,k],e)},t.drawMainTitle=function(e){var t=e._fullLayout.title,r=e._fullLayout,a=function(e){var t=e.title,r=b;o.isRightAnchor(t)?r=_:o.isLeftAnchor(t)&&(r=x);return r}(r),s=function(e){var t=e.title,r="0em";o.isTopAnchor(t)?r=p.CAP_SHIFT+"em":o.isMiddleAnchor(t)&&(r=p.MID_SHIFT+"em");return r}(r),c=function(e,t){var r=e.title,n=e._size,a=0;"0em"!==t&&t?t===p.CAP_SHIFT+"em"&&(a=r.pad.t):a=-r.pad.b;if("auto"===r.y)return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+a;case"container":default:return e.height-e.height*r.y+a}}(r,s),d=function(e,t){var r=e.title,n=e._size,a=0;t===x?a=r.pad.l:t===_&&(a=-r.pad.r);switch(r.xref){case"paper":return n.l+n.w*r.x+a;case"container":default:return e.width*r.x+a}}(r,a);if(f.draw(e,"gtitle",{propContainer:r,propName:"title.text",placeholder:r._dfltTitle.plot,attributes:{x:d,y:c,"text-anchor":a,dy:s}}),t.text&&t.automargin){var h=n.selectAll(".gtitle"),y=u.bBox(h.node()).height,v=function(e,t,r){var n=t.y,a=t.yanchor,i=n>.5?"t":"b",o=e._fullLayout.margin[i],l=0;"paper"===t.yref?l=r+t.pad.t+t.pad.b:"container"===t.yref&&(l=function(e,t,r,n,a){var i=0;"middle"===r&&(i+=a/2);"t"===e?("top"===r&&(i+=a),i+=n-t*n):("bottom"===r&&(i+=a),i+=t*n);return i}(i,n,a,e._fullLayout.height,r)+t.pad.t+t.pad.b);if(l>o)return l;return 0}(e,t,y);if(v>0){!function(e,t,r,n){var a="title.automargin",l=e._fullLayout.title,s=l.y>.5?"t":"b",c={x:l.x,y:l.y,t:0,b:0},u={};"paper"===l.yref&&function(e,t,r,n,a){var i="paper"===t.yref?e._fullLayout._size.h:e._fullLayout.height,l=o.isTopAnchor(t)?n:n-a,s="b"===r?i-l:l;return!(o.isTopAnchor(t)&&"t"===r||o.isBottomAnchor(t)&&"b"===r)&&s<a}(e,l,s,t,n)?c[s]=r:"container"===l.yref&&(u[s]=r,e._fullLayout._reservedMargin[a]=u);i.allowAutoMargin(e,a),i.autoMargin(e,a,c)}(e,c,v,y),h.attr({x:d,y:c,"text-anchor":a,dy:S(t.yanchor)}).call(l.positionText,d,c);var g=(t.text.match(l.BR_TAG_ALL)||[]).length;if(g){var m=p.LINE_SPACING*g+p.MID_SHIFT;0===t.y&&(m=-m),h.selectAll(".line").each(function(){var e=+this.getAttribute("dy").slice(0,-2)-m+"em";this.setAttribute("dy",e)})}}}},t.doTraceStyle=function(e){var r,n=e.calcdata,o=[];for(r=0;r<n.length;r++){var l=n[r],c=l[0]||{},u=c.trace||{},f=u._module||{},d=f.arraysToCalcdata;d&&d(l,u);var h=f.editStyle;h&&o.push({fn:h,cd0:c})}if(o.length){for(r=0;r<o.length;r++){var p=o[r];p.fn(e,p.cd0)}s(e),t.redrawReglTraces(e)}return i.style(e),a.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doColorBars=function(e){return a.getComponentMethod("colorbar","draw")(e),i.previousPromises(e)},t.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,a.call("_doPlot",e,"",t)},t.doLegend=function(e){return a.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doTicksRelayout=function(e){return h.draw(e,"redraw"),e._fullLayout._hasOnlyLargeSploms&&(a.subplotsRegistry.splom.updateGrid(e),s(e),t.redrawReglTraces(e)),t.drawMainTitle(e),i.previousPromises(e)},t.doModeBar=function(e){var t=e._fullLayout;d.manage(e);for(var r=0;r<t._basePlotModules.length;r++){var n=t._basePlotModules[r].updateFx;n&&n(e)}return i.previousPromises(e)},t.doCamera=function(e){for(var t=e._fullLayout,r=t._subplots.gl3d,n=0;n<r.length;n++){var a=t[r[n]];a._scene.setViewport(a)}},t.drawData=function(e){var r=e._fullLayout;s(e);for(var n=r._basePlotModules,o=0;o<n.length;o++)n[o].plot(e);return t.redrawReglTraces(e),i.style(e),a.getComponentMethod("selections","draw")(e),a.getComponentMethod("shapes","draw")(e),a.getComponentMethod("annotations","draw")(e),a.getComponentMethod("images","draw")(e),r._replotting=!1,i.previousPromises(e)},t.redrawReglTraces=function(e){var t=e._fullLayout;if(t._has("regl")){var r,n,a=e._fullData,i=[],l=[];for(t._hasOnlyLargeSploms&&t._splomGrid.draw(),r=0;r<a.length;r++){var s=a[r];!0===s.visible&&0!==s._length&&("splom"===s.type?t._splomScenes[s.uid].draw():"scattergl"===s.type?o.pushUnique(i,s.xaxis+s.yaxis):"scatterpolargl"===s.type&&o.pushUnique(l,s.subplot))}for(r=0;r<i.length;r++)(n=t._plots[i[r]])._scene&&n._scene.draw();for(r=0;r<l.length;r++)(n=t[l[r]]._subplot)._scene&&n._scene.draw()}},t.doAutoRangeAndConstraints=function(e){for(var t,r=h.list(e,"",!0),n={},a=0;a<r.length;a++)if(!n[(t=r[a])._id]){n[t._id]=1,g(e,t),m(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=h.getFromId(e,o);m(e,l,t.range),n[o]=1}}v(e)},t.finalDraw=function(e){a.getComponentMethod("rangeslider","draw")(e),a.getComponentMethod("rangeselector","draw")(e)},t.drawMarginPushers=function(e){a.getComponentMethod("legend","draw")(e),a.getComponentMethod("rangeselector","draw")(e),a.getComponentMethod("sliders","draw")(e),a.getComponentMethod("updatemenus","draw")(e),a.getComponentMethod("colorbar","draw")(e)}},94828:function(e,t,r){"use strict";var n=r(3400),a=n.isPlainObject,i=r(73060),o=r(7316),l=r(45464),s=r(31780),c=r(20556).dfltConfig;function u(e,t){e=n.extendDeep({},e);var r,i,o=Object.keys(e).sort();function l(t,r,n){if(a(r)&&a(t))u(t,r);else if(Array.isArray(r)&&Array.isArray(t)){var o=s.arrayTemplater({_template:e},n);for(i=0;i<r.length;i++){var l=r[i],c=o.newItem(l)._template;c&&u(c,l)}var f=o.defaultItems();for(i=0;i<f.length;i++)r.push(f[i]._template);for(i=0;i<r.length;i++)delete r[i].templateitemname}}for(r=0;r<o.length;r++){var c=o[r],d=e[c];if(c in t?l(d,t[c],c):t[c]=d,f(c)===c)for(var h in t){var p=f(h);h===p||p!==c||h in e||l(d,t[h],c)}}}function f(e){return e.replace(/[0-9]+$/,"")}function d(e,t,r,i,o){var l=o&&r(o);for(var c in e){var u=e[c],p=h(e,c,i),y=h(e,c,o),v=r(y);if(!v){var g=f(c);g!==c&&(v=r(y=h(e,g,o)))}if((!l||l!==v)&&!(!v||v._noTemplating||"data_array"===v.valType||v.arrayOk&&Array.isArray(u)))if(!v.valType&&a(u))d(u,t,r,p,y);else if(v._isLinkedToArray&&Array.isArray(u))for(var m=!1,x=0,b={},_=0;_<u.length;_++){var w=u[_];if(a(w)){var k=w.name;if(k)b[k]||(d(w,t,r,h(u,x,p),h(u,x,y)),x++,b[k]=1);else if(!m){var T=h(e,s.arrayDefaultKey(c),i),M=h(u,x,p);d(w,t,r,M,h(u,x,y));var A=n.nestedProperty(t,M);n.nestedProperty(t,T).set(A.get()),A.set(null),m=!0}}}else{n.nestedProperty(t,p).set(u)}}}function h(e,t,r){return r?Array.isArray(e)?r+"["+t+"]":r+"."+t:t}function p(e){for(var t=0;t<e.length;t++)if(a(e[t]))return!0}function y(e){var t;switch(e.code){case"data":t="The template has no key data.";break;case"layout":t="The template has no key layout.";break;case"missing":t=e.path?"There are no templates for item "+e.path+" with name "+e.templateitemname:"There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":t=e.path?"The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?"Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":"The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":t="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type."}return e.msg=t,e}t.makeTemplate=function(e){e=n.isPlainObject(e)?e:n.getGraphDiv(e),e=n.extendDeep({_context:c},{data:e.data,layout:e.layout}),o.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var s={data:{},layout:{}};t.forEach(function(e){var t={};d(e,t,function(e,t){return i.getTraceValObject(e,n.nestedProperty({},t).parts)}.bind(null,e));var r=n.coerce(e,{},l,"type"),a=s.data[r];a||(a=s.data[r]=[]),a.push(t)}),d(r,s.layout,function(e,t){return i.getLayoutValObject(e,n.nestedProperty({},t).parts)}.bind(null,r)),delete s.layout.template;var f=r.template;if(a(f)){var h,p,y,v,g,m,x=f.layout;a(x)&&u(x,s.layout);var b=f.data;if(a(b)){for(p in s.data)if(y=b[p],Array.isArray(y)){for(m=(g=s.data[p]).length,v=y.length,h=0;h<m;h++)u(y[h%v],g[h]);for(h=m;h<v;h++)g.push(n.extendDeep({},y[h]))}for(p in b)p in s.data||(s.data[p]=n.extendDeep([],b[p]))}}return s},t.validateTemplate=function(e,t){var r=n.extendDeep({},{_context:c,data:e.data,layout:e.layout}),i=r.layout||{};a(t)||(t=i.template||{});var l=t.layout,s=t.data,u=[];r.layout=i,r.layout.template=t,o.supplyDefaults(r);var d=r._fullLayout,v=r._fullData,g={};if(a(l)?(!function e(t,r){for(var n in t)if("_"!==n.charAt(0)&&a(t[n])){var i,o=f(n),l=[];for(i=0;i<r.length;i++)l.push(h(t,n,r[i])),o!==n&&l.push(h(t,o,r[i]));for(i=0;i<l.length;i++)g[l[i]]=1;e(t[n],l)}}(d,["layout"]),function e(t,r){for(var n in t)if(-1===n.indexOf("defaults")&&a(t[n])){var i=h(t,n,r);g[i]?e(t[n],i):u.push({code:"unused",path:i})}}(l,"layout")):u.push({code:"layout"}),a(s)){for(var m,x={},b=0;b<v.length;b++){var _=v[b];x[m=_.type]=(x[m]||0)+1,_._fullInput._template||u.push({code:"missing",index:_._fullInput.index,traceType:m})}for(m in s){var w=s[m].length,k=x[m]||0;w>k?u.push({code:"unused",traceType:m,templateCount:w,dataCount:k}):k>w&&u.push({code:"reused",traceType:m,templateCount:w,dataCount:k})}}else u.push({code:"data"});if(function e(t,r){for(var n in t)if("_"!==n.charAt(0)){var i=t[n],o=h(t,n,r);a(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&u.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&p(i)&&e(i,o)}}({data:v,layout:d},""),u.length)return u.map(y)}},67024:function(e,t,r){"use strict";var n=r(38248),a=r(36424),i=r(7316),o=r(3400),l=r(81792),s=r(37164),c=r(63268),u=r(25788).version,f={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}};e.exports=function(e,t){var r,d,h,p;function y(e){return!(e in t)||o.validate(t[e],f[e])}if(t=t||{},o.isPlainObject(e)?(r=e.data||[],d=e.layout||{},h=e.config||{},p={}):(e=o.getGraphDiv(e),r=o.extendDeep([],e.data),d=o.extendDeep({},e.layout),h=e._context,p=e._fullLayout||{}),!y("width")&&null!==t.width||!y("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!y("format"))throw new Error("Export format is not "+o.join2(f.format.values,", "," or ")+".");var v={};function g(e,r){return o.coerce(t,v,f,e,r)}var m=g("format"),x=g("width"),b=g("height"),_=g("scale"),w=g("setBackground"),k=g("imageDataOnly"),T=document.createElement("div");T.style.position="absolute",T.style.left="-5000px",document.body.appendChild(T);var M=o.extendFlat({},d);x?M.width=x:null===t.width&&n(p.width)&&(M.width=p.width),b?M.height=b:null===t.height&&n(p.height)&&(M.height=p.height);var A=o.extendFlat({},h,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=l.getRedrawFunc(T);function L(){return new Promise(function(e){setTimeout(e,l.getDelay(T._fullLayout))})}function O(){return new Promise(function(e,t){var r=s(T,m,_),n=T._fullLayout.width,f=T._fullLayout.height;function d(){a.purge(T),document.body.removeChild(T)}if("full-json"===m){var h=i.graphJson(T,!1,"keepdata","object",!0,!0);return h.version=u,h=JSON.stringify(h),d(),e(k?h:l.encodeJSON(h))}if(d(),"svg"===m)return e(k?r:l.encodeSVG(r));var p=document.createElement("canvas");p.id=o.randstr(),c({format:m,width:n,height:f,scale:_,canvas:p,svg:r,promise:!0}).then(e).catch(t)})}return new Promise(function(e,t){a.newPlot(T,r,M,A).then(S).then(L).then(O).then(function(t){e(function(e){return k?e.replace(l.IMAGE_URL_PREFIX,""):e}(t))}).catch(function(e){t(e)})})}},21480:function(e,t,r){"use strict";var n=r(3400),a=r(7316),i=r(73060),o=r(20556).dfltConfig,l=n.isPlainObject,s=Array.isArray,c=n.isArrayOrTypedArray;function u(e,t,r,a,i,o){o=o||[];for(var f=Object.keys(e),d=0;d<f.length;d++){var v=f[d];if("transforms"!==v){var g=o.slice();g.push(v);var m=e[v],x=t[v],b=y(r,v),_=(b||{}).valType,w="info_array"===_,k="colorscale"===_,T=(b||{}).items;if(p(r,v))if(l(m)&&l(x)&&"any"!==_)u(m,x,b,a,i,g);else if(w&&s(m)){m.length>x.length&&a.push(h("unused",i,g.concat(x.length)));var M,A,S,L,O,C=x.length,D=Array.isArray(T);if(D&&(C=Math.min(C,T.length)),2===b.dimensions)for(A=0;A<C;A++)if(s(m[A])){m[A].length>x[A].length&&a.push(h("unused",i,g.concat(A,x[A].length)));var P=x[A].length;for(M=0;M<(D?Math.min(P,T[A].length):P);M++)S=D?T[A][M]:T,L=m[A][M],O=x[A][M],n.validate(L,S)?O!==L&&O!==+L&&a.push(h("dynamic",i,g.concat(A,M),L,O)):a.push(h("value",i,g.concat(A,M),L))}else a.push(h("array",i,g.concat(A),m[A]));else for(A=0;A<C;A++)S=D?T[A]:T,L=m[A],O=x[A],n.validate(L,S)?O!==L&&O!==+L&&a.push(h("dynamic",i,g.concat(A),L,O)):a.push(h("value",i,g.concat(A),L))}else if(b.items&&!w&&s(m)){var E,R,I=T[Object.keys(T)[0]],z=[];for(E=0;E<x.length;E++){var N=x[E]._index||E;if((R=g.slice()).push(N),l(m[N])&&l(x[E])){z.push(N);var F=m[N],j=x[E];l(F)&&!1!==F.visible&&!1===j.visible?a.push(h("invisible",i,R)):u(F,j,I,a,i,R)}}for(E=0;E<m.length;E++)(R=g.slice()).push(E),l(m[E])?-1===z.indexOf(E)&&a.push(h("unused",i,R)):a.push(h("object",i,R,m[E]))}else!l(m)&&l(x)?a.push(h("object",i,g,m)):c(m)||!c(x)||w||k?v in t?n.validate(m,b)?"enumerated"===b.valType&&(b.coerceNumber&&m!==+x||m!==x)&&a.push(h("dynamic",i,g,m,x)):a.push(h("value",i,g,m)):a.push(h("unused",i,g,m)):a.push(h("array",i,g,m));else a.push(h("schema",i,g))}}return a}e.exports=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={});var r,c,f=i.get(),d=[],p={_context:n.extendFlat({},o)};s(e)?(p.data=n.extendDeep([],e),r=e):(p.data=[],r=[],d.push(h("array","data"))),l(t)?(p.layout=n.extendDeep({},t),c=t):(p.layout={},c={},arguments.length>1&&d.push(h("object","layout"))),a.supplyDefaults(p);for(var y=p._fullData,v=r.length,g=0;g<v;g++){var m=r[g],x=["data",g];if(l(m)){var b=y[g],_=b.type,w=f.traces[_].attributes;w.type={valType:"enumerated",values:[_]},!1===b.visible&&!1!==m.visible&&d.push(h("invisible",x)),u(m,b,w,d,x);var k=m.transforms,T=b.transforms;if(k){s(k)||d.push(h("array",x,["transforms"])),x.push("transforms");for(var M=0;M<k.length;M++){var A=["transforms",M],S=k[M].type;if(l(k[M])){var L=f.transforms[S]?f.transforms[S].attributes:{};L.type={valType:"enumerated",values:Object.keys(f.transforms)},u(k[M],T[M],L,d,x,A)}else d.push(h("object",x,A))}}}else d.push(h("object",x))}return u(c,p._fullLayout,function(e,t){for(var r=e.layout.layoutAttributes,a=0;a<t.length;a++){var i=t[a],o=e.traces[i.type],l=o.layoutAttributes;l&&(i.subplot?n.extendFlat(r[o.attributes.subplot.dflt],l):n.extendFlat(r,l))}return r}(f,y),d,"layout"),0===d.length?void 0:d};var f={object:function(e,t){return("layout"===e&&""===t?"The layout argument":"data"===e[0]&&""===t?"Trace "+e[1]+" in the data argument":d(e)+"key "+t)+" must be linked to an object container"},array:function(e,t){return("data"===e?"The data argument":d(e)+"key "+t)+" must be linked to an array container"},schema:function(e,t){return d(e)+"key "+t+" is not part of the schema"},unused:function(e,t,r){var n=l(r)?"container":"key";return d(e)+n+" "+t+" did not get coerced"},dynamic:function(e,t,r,n){return[d(e)+"key",t,"(set to '"+r+"')","got reset to","'"+n+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?d(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,r){return[d(e)+"key "+t,"is set to an invalid value ("+r+")"].join(" ")}};function d(e){return s(e)?"In data trace "+e[1]+", ":"In "+e+", "}function h(e,t,r,a,i){var o,l;r=r||"",s(t)?(o=t[0],l=t[1]):(o=t,l=null);var c=function(e){if(!s(e))return String(e);for(var t="",r=0;r<e.length;r++){var n=e[r];"number"==typeof n?t=t.substr(0,t.length-1)+"["+n+"]":t+=n,r<e.length-1&&(t+=".")}return t}(r),u=f[e](t,c,a,i);return n.log(u),{code:e,container:o,trace:l,path:r,astr:c,msg:u}}function p(e,t){var r=g(t),n=r.keyMinusId,a=r.id;return!!(n in e&&e[n]._isSubplotObj&&a)||t in e}function y(e,t){return t in e?e[t]:e[g(t).keyMinusId]}var v=n.counterRegex("([a-z]+)");function g(e){var t=e.match(v);return{keyMinusId:t&&t[1],id:t&&t[2]}}},85656:function(e){"use strict";e.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}},51272:function(e,t,r){"use strict";var n=r(3400),a=r(31780);e.exports=function(e,t,r){var i,o,l=r.name,s=r.inclusionAttr||"visible",c=t[l],u=n.isArrayOrTypedArray(e[l])?e[l]:[],f=t[l]=[],d=a.arrayTemplater(t,l,s);for(i=0;i<u.length;i++){var h=u[i];n.isPlainObject(h)?o=d.newItem(h):(o=d.newItem({}))[s]=!1,o._index=i,!1!==o[s]&&r.handleItemDefaults(h,o,t,r),f.push(o)}var p=d.defaultItems();for(i=0;i<p.length;i++)(o=p[i])._index=f.length,r.handleItemDefaults({},o,t,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var y=Math.min(c.length,f.length);for(i=0;i<y;i++)n.relinkPrivateKeys(f[i],c[i])}return f}},45464:function(e,t,r){"use strict";var n=r(25376),a=r(55756);e.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:n({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:a.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc"},uirevision:{valType:"any",editType:"none"}}},1220:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=a.dateTime2ms,o=a.incrementMonth,l=r(39032).ONEAVGMONTH;e.exports=function(e,t,r,a){if("date"!==t.type)return{vals:a};var s=e[r+"periodalignment"];if(!s)return{vals:a};var c,u=e[r+"period"];if(n(u)){if((u=+u)<=0)return{vals:a}}else if("string"==typeof u&&"M"===u.charAt(0)){var f=+u.substring(1);if(!(f>0&&Math.round(f)===f))return{vals:a};c=f}for(var d=t.calendar,h="start"===s,p="end"===s,y=e[r+"period0"],v=i(y,d)||0,g=[],m=[],x=[],b=a.length,_=0;_<b;_++){var w,k,T,M=a[_];if(c){for(w=Math.round((M-v)/(c*l)),T=o(v,c*w,d);T>M;)T=o(T,-c,d);for(;T<=M;)T=o(T,c,d);k=o(T,-c,d)}else{for(T=v+(w=Math.round((M-v)/u))*u;T>M;)T-=u;for(;T<=M;)T+=u;k=T-u}g[_]=h?k:p?T:(k+T)/2,m[_]=k,x[_]=T}return{vals:g,starts:m,ends:x}}},26720:function(e){"use strict";e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(e,t,r){"use strict";var n=r(33428),a=r(38248),i=r(3400),o=r(39032).FP_SAFE,l=r(24040),s=r(43616),c=r(79811),u=c.getFromId,f=c.isLinked;function d(e,t){var r,n,a=[],o=e._fullLayout,l=p(o,t,0),s=p(o,t,1),c=v(e,t),u=c.min,f=c.max;if(0===u.length||0===f.length)return i.simpleMap(t.range,t.r2l);var d=u[0].val,y=f[0].val;for(r=1;r<u.length&&d===y;r++)d=Math.min(d,u[r].val);for(r=1;r<f.length&&d===y;r++)y=Math.max(y,f[r].val);var g=t.autorange,m="reversed"===g||"min reversed"===g||"max reversed"===g;if(!m&&t.range){var x=i.simpleMap(t.range,t.r2l);m=x[1]<x[0]}"reversed"===t.autorange&&(t.autorange=!0);var b,_,w,k,M,A,S=t.rangemode,L="tozero"===S,O="nonnegative"===S,C=t._length,D=C/10,P=0;for(r=0;r<u.length;r++)for(b=u[r],n=0;n<f.length;n++)(A=(_=f[n]).val-b.val-h(t,b.val,_.val))>0&&((M=C-l(b)-s(_))>D?A/M>P&&(w=b,k=_,P=A/M):A/C>P&&(w={val:b.val,nopad:1},k={val:_.val,nopad:1},P=A/C));if(d===y){var E=d-1,R=d+1;if(L)if(0===d)a=[0,1];else{var I=(d>0?f:u).reduce(function(e,t){return Math.max(e,s(t))},0),z=d/(1-Math.min(.5,I/C));a=d>0?[0,z]:[z,0]}else a=O?[Math.max(0,E),Math.max(1,R)]:[E,R]}else L?(w.val>=0&&(w={val:0,nopad:1}),k.val<=0&&(k={val:0,nopad:1})):O&&(w.val-P*l(w)<0&&(w={val:0,nopad:1}),k.val<=0&&(k={val:1,nopad:1})),P=(k.val-w.val-h(t,b.val,_.val))/(C-l(w)-s(k)),a=[w.val-P*l(w),k.val+P*s(k)];return a=T(a,t),t.limitRange&&t.limitRange(),m&&a.reverse(),i.simpleMap(a,t.l2r||Number)}function h(e,t,r){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),i=0;i<a.length;i++){var o=a[i];n+=o.max-o.min}return n}function p(e,t,r){var a=.05*t._length,o=t._anchorAxis||{};if(-1!==(t.ticklabelposition||"").indexOf("inside")||-1!==(o.ticklabelposition||"").indexOf("inside")){var l=t.isReversed();if(!l){var c=i.simpleMap(t.range,t.r2l);l=c[1]<c[0]}l&&(r=!r)}var u=0;return f(e,t._id)||(u=function(e,t,r){var a=0,o="x"===t._id.charAt(0);for(var l in e._plots){var c=e._plots[l];if(t._id===c.xaxis._id||t._id===c.yaxis._id){var u=(o?c.yaxis:c.xaxis)||{};if(-1!==(u.ticklabelposition||"").indexOf("inside")&&(!r&&("left"===u.side||"bottom"===u.side)||r&&("top"===u.side||"right"===u.side))){if(u._vals){var f=i.deg2rad(u._tickAngles[u._id+"tick"]||0),d=Math.abs(Math.cos(f)),h=Math.abs(Math.sin(f));if(!u._vals[0].bb){var p=u._id+"tick",v=u._selections[p];v.each(function(e){var t=n.select(this),r=t.select(".text-math-group");r.empty()&&(e.bb=s.bBox(t.node()))})}for(var g=0;g<u._vals.length;g++){var m=u._vals[g],x=m.bb;if(x){var b=2*y+x.width,_=2*y+x.height;a=Math.max(a,o?Math.max(b*d,_*h):Math.max(_*d,b*h))}}}"inside"===u.ticks&&"inside"===u.ticklabelposition&&(a+=u.ticklen||0)}}}return a}(e,t,r)),a=Math.max(u,a),"domain"===t.constrain&&t._inputDomain&&(a*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0])),function(e){return e.nopad?0:e.pad+(e.extrapad?a:u)}}e.exports={applyAutorangeOptions:T,getAutoRange:d,makePadFn:p,doAutoRange:function(e,t,r){if(t.setScale(),t.autorange){t.range=r?r.slice():d(e,t),t._r=t.range.slice(),t._rl=i.simpleMap(t._r,t.r2l);var n=t._input,a={};a[t._attr+".range"]=t.range,a[t._attr+".autorange"]=t.autorange,l.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,a),n.range=t.range.slice(),n.autorange=t.autorange}var o=t._anchorAxis;if(o&&o.rangeslider){var s=o.rangeslider[t._name];s&&"auto"===s.rangemode&&(s.range=d(e,t)),o._input.rangeslider[t._name]=i.extendFlat({},s)}},findExtremes:function(e,t,r){r||(r={});e._m||e.setScale();var n,i,l,s,c,u,f,d,h,p=[],y=[],v=t.length,x=r.padded||!1,_=r.tozero&&("linear"===e.type||"-"===e.type),w="log"===e.type,k=!1,T=r.vpadLinearized||!1;function M(e){if(Array.isArray(e))return k=!0,function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}var A=M((e._m>0?r.ppadplus:r.ppadminus)||r.ppad||0),S=M((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),L=M(r.vpadplus||r.vpad),O=M(r.vpadminus||r.vpad);if(!k){if(d=1/0,h=-1/0,w)for(n=0;n<v;n++)(i=t[n])<d&&i>0&&(d=i),i>h&&i<o&&(h=i);else for(n=0;n<v;n++)(i=t[n])<d&&i>-o&&(d=i),i>h&&i<o&&(h=i);t=[d,h],v=2}var C={tozero:_,extrapad:x};function D(r){l=t[r],a(l)&&(u=A(r),f=S(r),T?(s=e.c2l(l)-O(r),c=e.c2l(l)+L(r)):(d=l-O(r),h=l+L(r),w&&d<h/10&&(d=h/10),s=e.c2l(d),c=e.c2l(h)),_&&(s=Math.min(0,s),c=Math.max(0,c)),b(s)&&g(p,s,f,C),b(c)&&m(y,c,u,C))}var P=Math.min(6,v);for(n=0;n<P;n++)D(n);for(n=v-1;n>=P;n--)D(n);return{min:p,max:y,opts:r}},concatExtremes:v};var y=3;function v(e,t,r){var n,a,i,o=t._id,l=e._fullData,s=e._fullLayout,c=[],f=[];function d(e,t){for(n=0;n<t.length;n++){var r=e[t[n]],l=(r._extremes||{})[o];if(!0===r.visible&&l){for(a=0;a<l.min.length;a++)i=l.min[a],g(c,i.val,i.pad,{extrapad:i.extrapad});for(a=0;a<l.max.length;a++)i=l.max[a],m(f,i.val,i.pad,{extrapad:i.extrapad})}}}if(d(l,t._traceIndices),d(s.annotations||[],t._annIndices||[]),d(s.shapes||[],t._shapeIndices||[]),t._matchGroup&&!r)for(var h in t._matchGroup)if(h!==t._id){var p=u(e,h),y=v(e,p,!0),x=t._length/p._length;for(a=0;a<y.min.length;a++)i=y.min[a],g(c,i.val,i.pad*x,{extrapad:i.extrapad});for(a=0;a<y.max.length;a++)i=y.max[a],m(f,i.val,i.pad*x,{extrapad:i.extrapad})}return{min:c,max:f}}function g(e,t,r,n){x(e,t,r,n,_)}function m(e,t,r,n){x(e,t,r,n,w)}function x(e,t,r,n,a){for(var i=n.tozero,o=n.extrapad,l=!0,s=0;s<e.length&&l;s++){var c=e[s];if(a(c.val,t)&&c.pad>=r&&(c.extrapad||!o)){l=!1;break}a(t,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&0===t;e.push({val:t,pad:u?0:r,extrapad:!u&&o})}}function b(e){return a(e)&&Math.abs(e)<o}function _(e,t){return e<=t}function w(e,t){return e>=t}function k(e,t,r){return void 0===t||void 0===r||(t=e.d2l(t))<(r=e.d2l(r))}function T(e,t){if(!t||!t.autorangeoptions)return e;var r=e[0],n=e[1],a=t.autorangeoptions.include;if(void 0!==a){var o=t.d2l(r),l=t.d2l(n);i.isArrayOrTypedArray(a)||(a=[a]);for(var s=0;s<a.length;s++){var c=t.d2l(a[s]);o>=c&&(o=c,r=c),l<=c&&(l=c,n=c)}}return[r=function(e,t){var r=t.autorangeoptions;return r&&void 0!==r.minallowed&&k(t,r.minallowed,r.maxallowed)?r.minallowed:r&&void 0!==r.clipmin&&k(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}(r,t),n=function(e,t){var r=t.autorangeoptions;return r&&void 0!==r.maxallowed&&k(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&void 0!==r.clipmax&&k(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}(n,t)]}},76808:function(e){"use strict";e.exports=function(e,t,r){var n,a;if(r){var i="reversed"===t||"min reversed"===t||"max reversed"===t;n=r[i?1:0],a=r[i?0:1]}var o=e("autorangeoptions.minallowed",null===a?n:void 0),l=e("autorangeoptions.maxallowed",null===n?a:void 0);void 0===o&&e("autorangeoptions.clipmin"),void 0===l&&e("autorangeoptions.clipmax"),e("autorangeoptions.include")}},54460:function(e,t,r){"use strict";var n=r(33428),a=r(38248),i=r(7316),o=r(24040),l=r(3400),s=l.strTranslate,c=r(72736),u=r(81668),f=r(76308),d=r(43616),h=r(94724),p=r(98728),y=r(39032),v=y.ONEMAXYEAR,g=y.ONEAVGYEAR,m=y.ONEMINYEAR,x=y.ONEMAXQUARTER,b=y.ONEAVGQUARTER,_=y.ONEMINQUARTER,w=y.ONEMAXMONTH,k=y.ONEAVGMONTH,T=y.ONEMINMONTH,M=y.ONEWEEK,A=y.ONEDAY,S=A/2,L=y.ONEHOUR,O=y.ONEMIN,C=y.ONESEC,D=y.MINUS_SIGN,P=y.BADNUM,E={K:"zeroline"},R={K:"gridline",L:"path"},I={K:"minor-gridline",L:"path"},z={K:"tick",L:"path"},N={K:"tick",L:"text"},F={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},j=r(84284),B=j.MID_SHIFT,H=j.CAP_SHIFT,U=j.LINE_SPACING,q=j.OPPOSITE_SIDE,Y=3,V=e.exports={};V.setConvert=r(78344);var G=r(52976),Z=r(79811),W=Z.idSort,J=Z.isLinked;V.id2name=Z.id2name,V.name2id=Z.name2id,V.cleanId=Z.cleanId,V.list=Z.list,V.listIds=Z.listIds,V.getFromId=Z.getFromId,V.getFromTrace=Z.getFromTrace;var X=r(19280);V.getAutoRange=X.getAutoRange,V.findExtremes=X.findExtremes;var K=1e-4;function $(e){var t=(e[1]-e[0])*K;return[e[0]-t,e[1]+t]}V.coerceRef=function(e,t,r,n,a,i){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],c=n+"ref",u={};return a||(a=s[0]||("string"==typeof i?i:i[0])),i||(i=a),s=s.concat(s.map(function(e){return e+" domain"})),u[c]={valType:"enumerated",values:s.concat(i?"string"==typeof i?[i]:i:[]),dflt:a},l.coerce(e,t,u,c)},V.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},V.coercePosition=function(e,t,r,n,a,i){var o,s;if("range"!==V.getRefType(n))o=l.ensureNumber,s=r(a,i);else{var c=V.getFromId(t,n);s=r(a,i=c.fraction2r(i)),o=c.cleanPos}e[a]=o(s)},V.cleanPosition=function(e,t,r){return("paper"===r||"pixel"===r?l.ensureNumber:V.getFromId(t,r).cleanPos)(e)},V.redrawComponents=function(e,t){t=t||V.listIds(e);var r=e._fullLayout;function n(n,a,i,l){for(var s=o.getComponentMethod(n,a),c={},u=0;u<t.length;u++)for(var f=r[V.id2name(t[u])][i],d=0;d<f.length;d++){var h=f[d];if(!c[h]&&(s(e,h),c[h]=1,l))return}}n("annotations","drawOne","_annIndices"),n("shapes","drawOne","_shapeIndices"),n("images","draw","_imgIndices",!0),n("selections","drawOne","_selectionIndices")};var Q=V.getDataConversions=function(e,t,r,n){var a,i="x"===r||"y"===r||"z"===r?r:n;if(l.isArrayOrTypedArray(i)){if(a={type:G(n,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},V.setConvert(a),"category"===a.type)for(var o=0;o<n.length;o++)a.d2c(n[o])}else a=V.getFromTrace(e,t,i);return a?{d2c:a.d2c,c2d:a.c2d}:"ids"===i?{d2c:te,c2d:te}:{d2c:ee,c2d:ee}};function ee(e){return+e}function te(e){return String(e)}function re(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function ne(e,t){return Math.abs(e/t-1)<.001}function ae(e){return+e.substring(1)}function ie(e,t){return e.rangebreaks&&(t=t.filter(function(t){return e.maskBreaks(t.x)!==P})),t}function oe(e){var t=e._mainAxis,r=[];if(t._vals)for(var n=0;n<t._vals.length;n++)if(!t._vals[n].noTick){var a=t.l2p(t._vals[n].x),i=e.p2l(a),o=V.tickText(e,i);t._vals[n].minor&&(o.minor=!0,o.text=""),r.push(o)}return r=ie(e,r)}function le(e,t){var r=$(l.simpleMap(e.range,e.r2l)),n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),i="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var o=[],s=0;s<=1;s++)if((void 0===t||!(t&&s||!1===t&&!s))&&(!s||e.minor)){var c=s?e.minor.tickvals:e.tickvals,u=s?[]:e.ticktext;if(c){l.isArrayOrTypedArray(u)||(u=[]);for(var f=0;f<c.length;f++){var d=i(c[f]);if(d>n&&d<a){var h=V.tickText(e,d,!1,String(u[f]));s&&(h.minor=!0,h.text=""),o.push(h)}}}}return o=ie(e,o)}V.getDataToCoordFunc=function(e,t,r,n){return Q(e,t,r,n).d2c},V.counterLetter=function(e){var t=e.charAt(0);return"x"===t?"y":"y"===t?"x":void 0},V.minDtick=function(e,t,r,n){-1===["log","category","multicategory"].indexOf(e.type)&&n?void 0===e._minDtick?(e._minDtick=t,e._forceTick0=r):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((r-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=r):((t/e._minDtick+1e-6)%1>2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},V.saveRangeInitial=function(e,t){for(var r=V.list(e,"",!0),n=!1,a=0;a<r.length;a++){var i=r[a],o=void 0===i._rangeInitial0&&void 0===i._rangeInitial1,l=o||i.range[0]!==i._rangeInitial0||i.range[1]!==i._rangeInitial1,s=i.autorange;(o&&!0!==s||t&&l)&&(i._rangeInitial0="min"===s||"max reversed"===s?void 0:i.range[0],i._rangeInitial1="max"===s||"min reversed"===s?void 0:i.range[1],i._autorangeInitial=s,n=!0)}return n},V.saveShowSpikeInitial=function(e,t){for(var r=V.list(e,"",!0),n=!1,a="on",i=0;i<r.length;i++){var o=r[i],l=void 0===o._showSpikeInitial,s=l||!(o.showspikes===o._showspikes);(l||t&&s)&&(o._showSpikeInitial=o.showspikes,n=!0),"on"!==a||o.showspikes||(a="off")}return e._fullLayout._cartesianSpikesEnabled=a,n},V.autoBin=function(e,t,r,n,i,o){var s,c=l.aggNums(Math.min,null,e),u=l.aggNums(Math.max,null,e);if("category"===t.type||"multicategory"===t.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(i||(i=t.calendar),s="log"===t.type?{type:"linear",range:[c,u]}:{type:t.type,range:l.simpleMap([c,u],t.c2r,0,i),calendar:i},V.setConvert(s),o=o&&p.dtick(o,s.type))s.dtick=o,s.tick0=p.tick0(void 0,s.type,i);else{var f;if(r)f=(u-c)/r;else{var d=l.distinctVals(e),h=Math.pow(10,Math.floor(Math.log(d.minDiff)/Math.LN10)),y=h*l.roundUp(d.minDiff/h,[.9,1.9,4.9,9.9],!0);f=Math.max(y,2*l.stdev(e)/Math.pow(e.length,n?.25:.4)),a(f)||(f=1)}V.autoTicks(s,f)}var v,g=s.dtick,m=V.tickIncrement(V.tickFirst(s),g,"reverse",i);if("number"==typeof g)v=(m=function(e,t,r,n,i){var o=0,l=0,s=0,c=0;function u(t){return(1+100*(t-e)/r.dtick)%100<2}for(var f=0;f<t.length;f++)t[f]%1==0?s++:a(t[f])||c++,u(t[f])&&o++,u(t[f]+r.dtick/2)&&l++;var d=t.length-c;if(s===d&&"date"!==r.type)r.dtick<1?e=n-.5*r.dtick:(e-=.5)+r.dtick<n&&(e+=r.dtick);else if(l<.1*d&&(o>.3*d||u(n)||u(i))){var h=r.dtick/2;e+=e+h<n?h:-h}return e}(m,e,s,c,u))+(1+Math.floor((u-m)/g))*g;else for("M"===s.dtick.charAt(0)&&(m=function(e,t,r,n,a){var i=l.findExactDates(t,a);if(i.exactDays>.8){var o=Number(r.substr(1));i.exactYears>.8&&o%12==0?e=V.tickIncrement(e,"M6","reverse")+1.5*A:i.exactMonths>.8?e=V.tickIncrement(e,"M1","reverse")+15.5*A:e-=S;var s=V.tickIncrement(e,r);if(s<=n)return s}return e}(m,e,g,c,i)),v=m,0;v<=u;)v=V.tickIncrement(v,g,!1,i),0;return{start:t.c2r(m,0,i),end:t.c2r(v,0,i),size:g,_dataSpan:u-c}},V.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n,i=t.dtick&&a(t._tmin);if(i){var o=V.tickIncrement(t._tmin,t.dtick,!0);n=[t._tmin,.99*o+.01*t._tmin]}else{var s=l.simpleMap(t.range,t.r2l);n=[s[0],.8*s[0]+.2*s[1]]}if(e.range=l.simpleMap(n,t.l2r),e._isMinor=!0,V.prepTicks(e,r),i){var c=a(t.dtick),u=a(e.dtick),f=c?t.dtick:+t.dtick.substring(1),d=u?e.dtick:+e.dtick.substring(1);c&&u?re(f,d)?f===2*M&&d===2*A&&(e.dtick=M):f===2*M&&d===3*A?e.dtick=M:f!==M||(t._input.minor||{}).nticks?ne(f/d,2.5)?e.dtick=f/2:e.dtick=f:e.dtick=A:"M"===String(t.dtick).charAt(0)?u?e.dtick="M1":re(f,d)?f>=12&&2===d&&(e.dtick="M3"):e.dtick=t.dtick:"L"===String(e.dtick).charAt(0)?"L"===String(t.dtick).charAt(0)?re(f,d)||(e.dtick=ne(f/d,2.5)?t.dtick/2:t.dtick):e.dtick="D1":"D2"===e.dtick&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}void 0===t.minor._tick0Init&&(e.tick0=t.tick0)},V.prepTicks=function(e,t){var r=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if("auto"===e.tickmode||!e.dtick){var n,i=e.nticks;i||("category"===e.type||"multicategory"===e.type?(n=e.tickfont?l.bigFont(e.tickfont.size||12):15,i=e._length/n):(n="y"===e._id.charAt(0)?40:80,i=l.constrain(e._length/n,4,9)+1),"radialaxis"===e._name&&(i*=2)),e.minor&&"array"!==e.minor.tickmode||"array"===e.tickmode&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,V.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function r(){return!(a(e.dtick)||"M"!==e.dtick.charAt(0))}var n=r(),i=V.getTickFormat(e);if(i){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=L,o&&!n&&e.dtick<L&&(e.dtick=L)):/%p/.test(i)?(t=S,o&&!n&&e.dtick<S&&(e.dtick=S)):/%[Aadejuwx]/.test(i)?(t=A,o&&!n&&e.dtick<A&&(e.dtick=A)):/%[UVW]/.test(i)?(t=M,o&&!n&&e.dtick<M&&(e.dtick=M)):/%[Bbm]/.test(i)?(t=k,o&&(n?ae(e.dtick)<1:e.dtick<T)&&(e.dtick="M1")):/%[q]/.test(i)?(t=b,o&&(n?ae(e.dtick)<3:e.dtick<_)&&(e.dtick="M3")):/%[Yy]/.test(i)&&(t=g,o&&(n?ae(e.dtick)<12:e.dtick<m)&&(e.dtick="M12")))}(n=r())&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0);e._definedDelta=t}(e),e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),"date"===e.type&&e.dtick<.1&&(e.dtick=.1),ve(e)},V.calcTicks=function(e,t){for(var r,n,i=e.type,o=e.calendar,s=e.ticklabelstep,c="period"===e.ticklabelmode,u=l.simpleMap(e.range,e.r2l,void 0,void 0,t),f=u[1]<u[0],d=Math.min(u[0],u[1]),h=Math.max(u[0],u[1]),p=Math.max(1e3,e._length||0),y=[],O=[],C=[],D=[],E=e.minor&&(e.minor.ticks||e.minor.showgrid),R=1;R>=(E?0:1);R--){var I=!R;R?(e._dtickInit=e.dtick,e._tick0Init=e.tick0):(e.minor._dtickInit=e.minor.dtick,e.minor._tick0Init=e.minor.tick0);var z=R?e:l.extendFlat({},e,e.minor);if(I?V.prepMinorTicks(z,e,t):V.prepTicks(z,t),"array"!==z.tickmode)if("sync"!==z.tickmode){var N=$(u),F=N[0],j=N[1],B=a(z.dtick),H="log"===i&&!(B||"L"===z.dtick.charAt(0)),U=V.tickFirst(z,t);if(R){if(e._tmin=U,U<F!==f)break;"category"!==i&&"multicategory"!==i||(j=f?Math.max(-.5,j):Math.min(e._categories.length-.5,j))}var q,Y,G=null,Z=U;if(R)B?Y=e.dtick:"date"===i?"string"==typeof e.dtick&&"M"===e.dtick.charAt(0)&&(Y=k*e.dtick.substring(1)):Y=e._roughDTick,q=Math.round((e.r2l(Z)-e.r2l(e.tick0))/Y)-1;var W=z.dtick;for(z.rangebreaks&&z._tick0Init!==z.tick0&&(Z=ze(Z,e),f||(Z=V.tickIncrement(Z,W,!f,o))),R&&c&&(Z=V.tickIncrement(Z,W,!f,o),q--);f?Z>=j:Z<=j;Z=V.tickIncrement(Z,W,f,o)){if(R&&q++,z.rangebreaks&&!f){if(Z<F)continue;if(z.maskBreaks(Z)===P&&ze(Z,z)>=h)break}if(C.length>p||Z===G)break;G=Z;var J={value:Z};R?(H&&Z!==(0|Z)&&(J.simpleLabel=!0),s>1&&q%s&&(J.skipLabel=!0),C.push(J)):(J.minor=!0,D.push(J))}}else C=[],y=oe(e);else R?(C=[],y=le(e,!I)):(D=[],O=le(e,!I))}if(E&&!("inside"===e.minor.ticks&&"outside"===e.ticks||"outside"===e.minor.ticks&&"inside"===e.ticks)){for(var X=C.map(function(e){return e.value}),K=[],Q=0;Q<D.length;Q++){var ee=D[Q],te=ee.value;if(-1===X.indexOf(te)){for(var re=!1,ne=0;!re&&ne<C.length;ne++)1e7+C[ne].value===1e7+te&&(re=!0);re||K.push(ee)}}D=K}if(c&&function(e,t,r){for(var n=0;n<e.length;n++){var a=e[n].value,i=n,o=n+1;n<e.length-1?(i=n,o=n+1):n>0?(i=n-1,o=n):(i=n,o=n);var l,s=e[i].value,c=e[o].value,u=Math.abs(c-s),f=r||u,d=0;f>=m?d=u>=m&&u<=v?u:g:r===b&&f>=_?d=u>=_&&u<=x?u:b:f>=T?d=u>=T&&u<=w?u:k:r===M&&f>=M?d=M:f>=A?d=A:r===S&&f>=S?d=S:r===L&&f>=L&&(d=L),d>=u&&(d=u,l=!0);var h=a+d;if(t.rangebreaks&&d>0){for(var p=0,y=0;y<84;y++){var O=(y+.5)/84;t.maskBreaks(a*(1-O)+O*h)!==P&&p++}(d*=p/84)||(e[n].drop=!0),l&&u>M&&(d=u)}(d>0||0===n)&&(e[n].periodX=a+d/2)}}(C,e,e._definedDelta),e.rangebreaks){var ae="y"===e._id.charAt(0),ie=1;"auto"===e.tickmode&&(ie=e.tickfont?e.tickfont.size:12);var se=NaN;for(r=C.length-1;r>-1;r--)if(C[r].drop)C.splice(r,1);else{C[r].value=ze(C[r].value,e);var ce=e.c2p(C[r].value);(ae?se>ce-ie:se<ce+ie)?C.splice(f?r+1:r,1):se=ce}}Ie(e)&&360===Math.abs(u[1]-u[0])&&C.pop(),e._tmax=(C[C.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;var ue,fe,de=function(t){t.text="",e._prevDateHead=n};for(C=C.concat(D),r=0;r<C.length;r++){var he=C[r].minor,pe=C[r].value;he?O.push({x:pe,minor:!0}):(n=e._prevDateHead,ue=V.tickText(e,pe,!1,C[r].simpleLabel),void 0!==(fe=C[r].periodX)&&(ue.periodX=fe,(fe>h||fe<d)&&(fe>h&&(ue.periodX=h),fe<d&&(ue.periodX=d),de(ue))),C[r].skipLabel&&de(ue),y.push(ue))}return y=y.concat(O),e._inCalcTicks=!1,c&&y.length&&(y[0].noTick=!0),y};var se=[2,5,10],ce=[1,2,3,6,12],ue=[1,2,5,10,15,30],fe=[1,2,3,7,14],de=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],he=[-.301,0,.301,.699,1],pe=[15,30,45,90,180];function ye(e,t,r){return t*l.roundUp(e/t,r)}function ve(e){var t=e.dtick;if(e._tickexponent=0,a(t)||"string"==typeof t||(t=1),"category"!==e.type&&"multicategory"!==e.type||(e._tickround=null),"date"===e.type){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if("M"===String(t).charAt(0))i>10||"01-01"!==n.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=A&&i<=10||t>=15*A)e._tickround="d";else if(t>=O&&i<=16||t>=L)e._tickround="M";else if(t>=C&&i<=19||t>=O)e._tickround="S";else{var o=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20,e._tickround<0&&(e._tickround=4)}}else if(a(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);a(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),c=Math.floor(Math.log(s)/Math.LN10+.01),u=void 0===e.minexponent?3:e.minexponent;Math.abs(c)>u&&(xe(e.exponentformat)&&!be(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function ge(e,t,r){var n=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontColor:n.color}}V.autoTicks=function(e,t,r){var n;function i(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=l.dateTick0(e.calendar,0);var o=2*t;if(o>g)t/=g,n=i(10),e.dtick="M"+12*ye(t,n,se);else if(o>k)t/=k,e.dtick="M"+ye(t,1,ce);else if(o>A){if(e.dtick=ye(t,A,e._hasDayOfWeekBreaks?[1,2,7,14]:fe),!r){var s=V.getTickFormat(e),c="period"===e.ticklabelmode;c&&(e._rawTick0=e.tick0),/%[uVW]/.test(s)?e.tick0=l.dateTick0(e.calendar,2):e.tick0=l.dateTick0(e.calendar,1),c&&(e._dowTick0=e.tick0)}}else o>L?e.dtick=ye(t,L,ce):o>O?e.dtick=ye(t,O,ue):o>C?e.dtick=ye(t,C,ue):(n=i(10),e.dtick=ye(t,n,se))}else if("log"===e.type){e.tick0=0;var u=l.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var f=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/f,n=i(10),e.dtick="L"+ye(t,n,se)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):Ie(e)?(e.tick0=0,n=1,e.dtick=ye(t,n,pe)):(e.tick0=0,n=i(10),e.dtick=ye(t,n,se));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!=typeof e.dtick){var d=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(d)}},V.tickIncrement=function(e,t,r,i){var o=r?-1:1;if(a(t))return l.increment(e,o*t);var s=t.charAt(0),c=o*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,c,i);if("L"===s)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===s){var u="D2"===t?he:de,f=e+.01*o,d=l.roundUp(l.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,d),1))/Math.LN10}throw"unrecognized dtick "+String(t)},V.tickFirst=function(e,t){var r=e.r2l||Number,i=l.simpleMap(e.range,r,void 0,void 0,t),o=i[1]<i[0],s=o?Math.floor:Math.ceil,c=$(i)[0],u=e.dtick,f=r(e.tick0);if(a(u)){var d=s((c-f)/u)*u+f;return"category"!==e.type&&"multicategory"!==e.type||(d=l.constrain(d,0,e._categories.length-1)),d}var h=u.charAt(0),p=Number(u.substr(1));if("M"===h){for(var y,v,g,m=0,x=f;m<10;){if(((y=V.tickIncrement(x,u,o,e.calendar))-c)*(x-c)<=0)return o?Math.min(x,y):Math.max(x,y);v=(c-(x+y)/2)/(y-x),g=h+(Math.abs(Math.round(v))||1)*p,x=V.tickIncrement(x,g,v<0?!o:o,e.calendar),m++}return l.error("tickFirst did not converge",e),x}if("L"===h)return Math.log(s((Math.pow(10,c)-f)/p)*p+f)/Math.LN10;if("D"===h){var b="D2"===u?he:de,_=l.roundUp(l.mod(c,1),b,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw"unrecognized dtick "+String(u)},V.tickText=function(e,t,r,n){var i,o=ge(e,t),s="array"===e.tickmode,c=r||s,u=e.type,f="category"===u?e.d2l_noadd:e.d2l,d=function(t){var r=e.l2p(t);return r>=0&&r<=e._length?t:null};if(s&&l.isArrayOrTypedArray(e.ticktext)){var h=l.simpleMap(e.range,e.r2l),p=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(i=0;i<e.ticktext.length&&!(Math.abs(t-f(e.tickvals[i]))<p);i++);if(i<e.ticktext.length)return o.text=String(e.ticktext[i]),o.xbnd=[d(o.x-.5),d(o.x+e.dtick-.5)],o}function y(n){if(void 0===n)return!0;if(r)return"none"===n;var a={first:e._tmin,last:e._tmax}[n];return"all"!==n&&t!==a}var v=r?"never":"none"!==e.exponentformat&&y(e.showexponent)?"hide":"";if("date"===u?function(e,t,r,n){var i=e._tickround,o=r&&e.hoverformat||V.getTickFormat(e);(n=!o&&n)&&(i=a(i)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[i]);var s,c=l.formatDate(t.x,o,i,e._dateFormat,e.calendar,e._extraFormat),u=c.indexOf("\n");-1!==u&&(s=c.substr(u+1),c=c.substr(0,u));n&&(void 0===s||"00:00:00"!==c&&"00:00"!==c?8===c.length&&(c=c.replace(/:00$/,"")):(c=s,s=""));if(s)if(r)"d"===i?c+=", "+s:c=s+(c?", "+c:"");else if(e._inCalcTicks&&e._prevDateHead===s){var f=Ne(e),d=e._trueSide||e.side;(!f&&"top"===d||f&&"bottom"===d)&&(c+="<br> ")}else e._prevDateHead=s,c+="<br>"+s;t.text=c}(e,o,r,c):"log"===u?function(e,t,r,n,i){var o=e.dtick,s=t.x,c=e.tickformat,u="string"==typeof o&&o.charAt(0);"never"===i&&(i="");n&&"L"!==u&&(o="L3",u="L");if(c||"L"===u)t.text=_e(Math.pow(10,s),e,i,n);else if(a(o)||"D"===u&&l.mod(s+.01,1)<.1){var f=Math.round(s),d=Math.abs(f),h=e.exponentformat;"power"===h||xe(h)&&be(f)?(t.text=0===f?1:1===f?"10":"10<sup>"+(f>1?"":D)+d+"</sup>",t.fontSize*=1.25):("e"===h||"E"===h)&&d>2?t.text="1"+h+(f>0?"+":D)+d:(t.text=_e(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,l.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var p=String(t.text).charAt(0);"0"!==p&&"1"!==p||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}(e,o,0,c,v):"category"===u?function(e,t){var r=e._categories[Math.round(t.x)];void 0===r&&(r="");t.text=String(r)}(e,o):"multicategory"===u?function(e,t,r){var n=Math.round(t.x),a=e._categories[n]||[],i=void 0===a[1]?"":String(a[1]),o=void 0===a[0]?"":String(a[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,o,r):Ie(e)?function(e,t,r,n,a){if("radians"!==e.thetaunit||r)t.text=_e(t.x,e,a,n);else{var i=t.x/180;if(0===i)t.text="0";else{var o=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}var r=function(e){var r=1;for(;!t(Math.round(e*r)/r,e);)r*=10;return r}(e),n=e*r,a=Math.abs(function e(r,n){return t(n,0)?r:e(n,r%n)}(n,r));return[Math.round(n/a),Math.round(r/a)]}(i);if(o[1]>=100)t.text=_e(l.deg2rad(t.x),e,a,n);else{var s=t.x<0;1===o[1]?1===o[0]?t.text="π":t.text=o[0]+"π":t.text=["<sup>",o[0],"</sup>","⁄","<sub>",o[1],"</sub>","π"].join(""),s&&(t.text=D+t.text)}}}}(e,o,r,c,v):function(e,t,r,n,a){"never"===a?a="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide");t.text=_e(t.x,e,a,n)}(e,o,0,c,v),n||(e.tickprefix&&!y(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!y(e.showticksuffix)&&(o.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(o.text)){var g=e.labelalias[o.text];"string"==typeof g&&(o.text=g)}return("boundaries"===e.tickson||e.showdividers)&&(o.xbnd=[d(o.x-.5),d(o.x+e.dtick-.5)]),o},V.hoverLabelText=function(e,t,r){r&&(e=l.extendFlat({},e,{hoverformat:r}));var n=l.isArrayOrTypedArray(t)?t[0]:t,a=l.isArrayOrTypedArray(t)?t[1]:void 0;if(void 0!==a&&a!==n)return V.hoverLabelText(e,n,r)+" - "+V.hoverLabelText(e,a,r);var i="log"===e.type&&n<=0,o=V.tickText(e,e.c2l(i?-n:n),"hover").text;return i?0===n?"0":D+o:o};var me=["f","p","n","μ","m","","k","M","G","T"];function xe(e){return"SI"===e||"B"===e}function be(e){return e>14||e<-15}function _e(e,t,r,n){var i=e<0,o=t._tickround,s=r||t.exponentformat||"B",c=t._tickexponent,u=V.getTickFormat(t),f=t.separatethousands;if(n){var d={exponentformat:s,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};ve(d),o=(Number(d._tickround)||0)+4,c=d._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,D);var h,p=Math.pow(10,-o)/2;if("none"===s&&(c=0),(e=Math.abs(e))<p)e="0",i=!1;else{if(e+=p,c&&(e*=Math.pow(10,-c),o+=c),0===o)e=String(Math.floor(e));else if(o<0){e=(e=String(Math.round(e))).substr(0,e.length+o);for(var y=o;y<0;y++)e+="0"}else{var v=(e=String(e)).indexOf(".")+1;v&&(e=e.substr(0,v+o).replace(/\.?0+$/,""))}e=l.numSeparate(e,t._separators,f)}c&&"hide"!==s&&(xe(s)&&be(c)&&(s="power"),h=c<0?D+-c:"power"!==s?"+"+c:String(c),"e"===s||"E"===s?e+=s+h:"power"===s?e+="×10<sup>"+h+"</sup>":"B"===s&&9===c?e+="B":xe(s)&&(e+=me[c/3+5]));return i?D+e:e}function we(e,t){if(e){var r=Object.keys(F).reduce(function(e,r){return-1!==t.indexOf(r)&&F[r].forEach(function(t){e[t]=1}),e},{});Object.keys(e).forEach(function(t){r[t]||(1===t.length?e[t]=0:delete e[t])})}}function ke(e,t){for(var r=[],n={},a=0;a<t.length;a++){var i=t[a];n[i.text2]?n[i.text2].push(i.x):n[i.text2]=[i.x]}for(var o in n)r.push(ge(e,l.interp(n[o],.5),o));return r}function Te(e){return void 0!==e.periodX?e.periodX:e.x}function Me(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}function Ae(e){var t=e.title.font.size,r=(e.title.text.match(c.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r?t*(H+r*U):t*H:r?t*(r+1)*U:t}function Se(e,t){var r=e.l2p(t);return r>1&&r<e._length-1}function Le(e){var t=n.select(e),r=t.select(".text-math-group");return r.empty()?t.select("text"):r}function Oe(e){return e._id+".automargin"}function Ce(e){return Oe(e)+".mirror"}function De(e){return e._id+".rangeslider"}function Pe(e,t){for(var r=0;r<t.length;r++)-1===e.indexOf(t[r])&&e.push(t[r])}function Ee(e,t,r){var n,a,i=[],o=[],s=e.layout;for(n=0;n<t.length;n++)i.push(V.getFromId(e,t[n]));for(n=0;n<r.length;n++)o.push(V.getFromId(e,r[n]));var c=Object.keys(h),u=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(n=0;n<c.length;n++){var d=c[n],p=i[0][d],y=o[0][d],v=!0,g=!1,m=!1;if("_"!==d.charAt(0)&&"function"!=typeof p&&-1===u.indexOf(d)){for(a=1;a<i.length&&v;a++){var x=i[a][d];"type"===d&&-1!==f.indexOf(p)&&-1!==f.indexOf(x)&&p!==x?g=!0:x!==p&&(v=!1)}for(a=1;a<o.length&&v;a++){var b=o[a][d];"type"===d&&-1!==f.indexOf(y)&&-1!==f.indexOf(b)&&y!==b?m=!0:o[a][d]!==y&&(v=!1)}v&&(g&&(s[i[0]._name].type="linear"),m&&(s[o[0]._name].type="linear"),Re(s,d,i,o,e._fullLayout._dfltTitle))}}for(n=0;n<e._fullLayout.annotations.length;n++){var _=e._fullLayout.annotations[n];-1!==t.indexOf(_.xref)&&-1!==r.indexOf(_.yref)&&l.swapAttrs(s.annotations[n],["?"])}}function Re(e,t,r,n,a){var i,o=l.nestedProperty,s=o(e[r[0]._name],t).get(),c=o(e[n[0]._name],t).get();for("title"===t&&(s&&s.text===a.x&&(s.text=a.y),c&&c.text===a.y&&(c.text=a.x)),i=0;i<r.length;i++)o(e,r[i]._name+"."+t).set(c);for(i=0;i<n.length;i++)o(e,n[i]._name+"."+t).set(s)}function Ie(e){return"angularaxis"===e._id}function ze(e,t){for(var r=t._rangebreaks.length,n=0;n<r;n++){var a=t._rangebreaks[n];if(e>=a.min&&e<a.max)return a.max}return e}function Ne(e){return-1!==(e.ticklabelposition||"").indexOf("inside")}function Fe(e,t){Ne(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(t)}function je(e,t,r,n){var a,i="free"===e.anchor||void 0!==e.overlaying&&!1!==e.overlaying?e.overlaying:e._id;a=n?"right"===e.side?t:-t:t,i in r||(r[i]={}),e.side in r[i]||(r[i][e.side]=0),r[i][e.side]+=a}V.getTickFormat=function(e){var t,r,n,a,i,o,l,s;function c(e){return"string"!=typeof e?e:Number(e.replace("M",""))*k}function u(e,t){var r=["L","D"];if(typeof e==typeof t){if("number"==typeof e)return e-t;var n=r.indexOf(e.charAt(0)),a=r.indexOf(t.charAt(0));return n===a?Number(e.replace(/(L|D)/g,""))-Number(t.replace(/(L|D)/g,"")):n-a}return"number"==typeof e?1:-1}function f(e,t){var r=null===t[0],n=null===t[1],a=u(e,t[0])>=0,i=u(e,t[1])<=0;return(r||a)&&(n||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t<e.tickformatstops.length;t++)if((n=e.tickformatstops[t]).enabled&&(a=e.dtick,i=n.dtickrange,o=void 0,l=void 0,s=void 0,o=c||function(e){return e},l=i[0],s=i[1],(!l&&"number"!=typeof l||o(l)<=o(a))&&(!s&&"number"!=typeof s||o(s)>=o(a)))){r=n;break}break;case"log":for(t=0;t<e.tickformatstops.length;t++)if((n=e.tickformatstops[t]).enabled&&f(e.dtick,n.dtickrange)){r=n;break}}return r?r.value:e.tickformat},V.getSubplots=function(e,t){var r=e._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),a=t?V.findSubplotsWithAxis(n,t):n;return a.sort(function(e,t){var r=e.substr(1).split("y"),n=t.substr(1).split("y");return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]}),a},V.findSubplotsWithAxis=function(e,t){for(var r=new RegExp("x"===t._id.charAt(0)?"^"+t._id+"y":t._id+"$"),n=[],a=0;a<e.length;a++){var i=e[a];r.test(i)&&n.push(i)}return n},V.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var r,a,i={_offset:0,_length:t.width,_id:""},o={_offset:0,_length:t.height,_id:""},l=V.list(e,"x",!0),s=V.list(e,"y",!0),c=[];for(r=0;r<l.length;r++)for(c.push({x:l[r],y:o}),a=0;a<s.length;a++)0===r&&c.push({x:i,y:s[a]}),c.push({x:l[r],y:s[a]});var u=t._clips.selectAll(".axesclip").data(c,function(e){return e.x._id+e.y._id});u.enter().append("clipPath").classed("axesclip",!0).attr("id",function(e){return"clip"+t._uid+e.x._id+e.y._id}).append("rect"),u.exit().remove(),u.each(function(e){n.select(this).select("rect").attr({x:e.x._offset||0,y:e.y._offset||0,width:e.x._length||1,height:e.y._length||1})})}},V.draw=function(e,t,r){var n=e._fullLayout;"redraw"===t&&n._paper.selectAll("g.subplot").each(function(e){var t=e[0],r=n._plots[t];if(r){var a=r.xaxis,i=r.yaxis;r.xaxislayer.selectAll("."+a._id+"tick").remove(),r.yaxislayer.selectAll("."+i._id+"tick").remove(),r.xaxislayer.selectAll("."+a._id+"tick2").remove(),r.yaxislayer.selectAll("."+i._id+"tick2").remove(),r.xaxislayer.selectAll("."+a._id+"divider").remove(),r.yaxislayer.selectAll("."+i._id+"divider").remove(),r.minorGridlayer&&r.minorGridlayer.selectAll("path").remove(),r.gridlayer&&r.gridlayer.selectAll("path").remove(),r.zerolinelayer&&r.zerolinelayer.selectAll("path").remove(),n._infolayer.select(".g-"+a._id+"title").remove(),n._infolayer.select(".g-"+i._id+"title").remove()}});var a=t&&"redraw"!==t?t:V.listIds(e),i=V.list(e).filter(function(e){return e.autoshift}).map(function(e){return e.overlaying});a.map(function(t){var r=V.getFromId(e,t);if("sync"===r.tickmode&&r.overlaying){var n=a.findIndex(function(e){return e===r.overlaying});n>=0&&a.unshift(a.splice(n,1).shift())}});var o={false:{left:0,right:0}};return l.syncOrAsync(a.map(function(t){return function(){if(t){var n=V.getFromId(e,t);r||(r={}),r.axShifts=o,r.overlayingShiftedAx=i;var a=V.drawOne(e,n,r);return n._shiftPusher&&je(n,n._fullDepth||0,o,!0),n._r=n.range.slice(),n._rl=l.simpleMap(n._r,n.r2l),a}}}))},V.drawOne=function(e,t,r){var n,a,s,c=(r=r||{}).axShifts||{},h=r.overlayingShiftedAx||[];t.setScale();var p=e._fullLayout,y=t._id,v=y.charAt(0),g=V.counterLetter(y),m=p._plots[t._mainSubplot];if(m){if(t._shiftPusher=t.autoshift||-1!==h.indexOf(t._id)||-1!==h.indexOf(t.overlaying),t._shiftPusher&"free"===t.anchor){var x=t.linewidth/2||0;"inside"===t.ticks&&(x+=t.ticklen),je(t,x,c,!0),je(t,t.shift||0,c,!1)}!0===r.skipTitle&&void 0!==t._shift||(t._shift=function(e,t){return e.autoshift?t[e.overlaying][e.side]:e.shift||0}(t,c));var b=m[v+"axislayer"],_=t._mainLinePosition,w=_+=t._shift,k=t._mainMirrorPosition,T=t._vals=V.calcTicks(t),M=[t.mirror,w,k].join("_");for(n=0;n<T.length;n++)T[n].axInfo=M;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var A={};if(t.visible){var S,L,O=V.makeTransTickFn(t),C=V.makeTransTickLabelFn(t),D="inside"===t.ticks,P="outside"===t.ticks;if("boundaries"===t.tickson){var E=function(e,t){var r,n=[],a=function(e,t){var r=e.xbnd[t];null!==r&&n.push(l.extendFlat({},e,{x:r}))};if(t.length){for(r=0;r<t.length;r++)a(t[r],0);a(t[r-1],1)}return n}(0,T);L=V.clipEnds(t,E),S=D?L:E}else L=V.clipEnds(t,T),S=D&&"period"!==t.ticklabelmode?L:T;var R,I=t._gridVals=L,z=function(e,t){var r,n,a=[],i=t.length&&t[t.length-1].x<t[0].x,o=function(e,t){var r=e.xbnd[t];null!==r&&a.push(l.extendFlat({},e,{x:r}))};if(e.showdividers&&t.length){for(r=0;r<t.length;r++){var s=t[r];s.text2!==n&&o(s,i?1:0),n=s.text2}o(t[r-1],i?0:1)}return a}(t,T);if(!p._hasOnlyLargeSploms){var N=t._subplotsWith,F={};for(n=0;n<N.length;n++){a=N[n];var j=(s=p._plots[a])[g+"axis"],B=j._mainAxis._id;if(!F[B]){F[B]=1;var H="x"===v?"M0,"+j._offset+"v"+j._length:"M"+j._offset+",0h"+j._length;V.drawGrid(e,t,{vals:I,counterAxis:j,layer:s.gridlayer.select("."+y),minorLayer:s.minorGridlayer.select("."+y),path:H,transFn:O}),V.drawZeroLine(e,t,{counterAxis:j,layer:s.zerolinelayer,path:H,transFn:O})}}}var Y=V.getTickSigns(t),G=V.getTickSigns(t,"minor");if(t.ticks||t.minor&&t.minor.ticks){var Z,W,J,X,K=V.makeTickPath(t,w,Y[2]),$=V.makeTickPath(t,w,G[2],{minor:!0});if(t._anchorAxis&&t.mirror&&!0!==t.mirror?(Z=V.makeTickPath(t,k,Y[3]),W=V.makeTickPath(t,k,G[3],{minor:!0}),J=K+Z,X=$+W):(Z="",W="",J=K,X=$),t.showdividers&&P&&"boundaries"===t.tickson){var Q={};for(n=0;n<z.length;n++)Q[z[n].x]=1;R=function(e){return Q[e.x]?Z:J}}else R=function(e){return e.minor?X:J}}if(V.drawTicks(e,t,{vals:S,layer:b,path:R,transFn:O}),"allticks"===t.mirror){var ee=Object.keys(t._linepositions||{});for(n=0;n<ee.length;n++){a=ee[n],s=p._plots[a];var te=t._linepositions[a]||[],re=te[0],ne=te[1],ae=te[2],ie=V.makeTickPath(t,re,ae?Y[0]:G[0],{minor:ae})+V.makeTickPath(t,ne,ae?Y[1]:G[1],{minor:ae});V.drawTicks(e,t,{vals:S,layer:s[v+"axislayer"],path:ie,transFn:O})}}var oe=[];if(oe.push(function(){return V.drawLabels(e,t,{vals:T,layer:b,plotinfo:s,transFn:C,labelFns:V.makeLabelFns(t,w)})}),"multicategory"===t.type){var le={x:2,y:10}[v];oe.push(function(){var r={x:"height",y:"width"}[v],n=ce()[r]+le+(t._tickAngles[y+"tick"]?t.tickfont.size*U:0);return V.drawLabels(e,t,{vals:ke(t,T),layer:b,cls:y+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:O,labelFns:V.makeLabelFns(t,w+n*Y[4])})}),oe.push(function(){return t._depth=Y[4]*(ce("tick2")[t.side]-w),function(e,t,r){var n=t._id+"divider",a=r.vals,i=r.layer.selectAll("path."+n).data(a,Me);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(f.stroke,t.dividercolor).style("stroke-width",d.crispRound(e,t.dividerwidth,1)+"px"),i.attr("transform",r.transFn).attr("d",r.path)}(e,t,{vals:z,layer:b,path:V.makeTickPath(t,w,Y[4],{len:t._depth}),transFn:O})})}else t.title.hasOwnProperty("standoff")&&oe.push(function(){t._depth=Y[4]*(ce()[t.side]-w)});var se=o.getComponentMethod("rangeslider","isVisible")(t);return r.skipTitle||se&&"bottom"===t.side||oe.push(function(){return function(e,t){var r,n=e._fullLayout,a=t._id,i=a.charAt(0),o=t.title.font.size;if(t.title.hasOwnProperty("standoff"))r=t._depth+t.title.standoff+Ae(t);else{var l=Ne(t);if("multicategory"===t.type)r=t._depth;else{var s=1.5*o;l&&(s=.5*o,"outside"===t.ticks&&(s+=t.ticklen)),r=10+s+(t.linewidth?t.linewidth-1:0)}l||(r+="x"===i?"top"===t.side?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):"right"===t.side?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0))}var c,f,h,p,y=V.getPxPosition(e,t);"x"===i?(f=t._offset+t._length/2,h="top"===t.side?y-r:y+r):(h=t._offset+t._length/2,f="right"===t.side?y+r:y-r,c={rotate:"-90",offset:0});if("multicategory"!==t.type){var v=t._selections[t._id+"tick"];if(p={selection:v,side:t.side},v&&v.node()&&v.node().parentNode){var g=d.getTranslate(v.node().parentNode);p.offsetLeft=g.x,p.offsetTop=g.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=r,u.draw(e,a+"title",{propContainer:t,propName:t._name+".title.text",placeholder:n._dfltTitle[i],avoid:p,transform:c,attributes:{x:f,y:h,"text-anchor":"middle"}})}(e,t)}),oe.push(function(){var r,n,a,l,s=t.side.charAt(0),c=q[t.side].charAt(0),u=V.getPxPosition(e,t),f=P?t.ticklen:0;(t.automargin||se||t._shiftPusher)&&("multicategory"===t.type?r=ce("tick2"):(r=ce(),"x"===v&&"b"===s&&(t._depth=Math.max(r.width>0?r.bottom-u:0,f))));var d=0,h=0;if(t._shiftPusher&&(d=Math.max(f,r.height>0?"l"===s?u-r.left:r.right-u:0),t.title.text!==p._dfltTitle[v]&&(h=(t._titleStandoff||0)+(t._titleScoot||0),"l"===s&&(h+=Ae(t))),t._fullDepth=Math.max(d,h)),t.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var y=[0,1],m="number"==typeof t._shift?t._shift:0;if("x"===v){if("b"===s?n[s]=t._depth:(n[s]=t._depth=Math.max(r.width>0?u-r.top:0,f),y.reverse()),r.width>0){var x=r.right-(t._offset+t._length);x>0&&(n.xr=1,n.r=x);var b=t._offset-r.left;b>0&&(n.xl=0,n.l=b)}}else if("l"===s?(t._depth=Math.max(r.height>0?u-r.left:0,f),n[s]=t._depth-m):(t._depth=Math.max(r.height>0?r.right-u:0,f),n[s]=t._depth+m,y.reverse()),r.height>0){var _=r.bottom-(t._offset+t._length);_>0&&(n.yb=0,n.b=_);var w=t._offset-r.top;w>0&&(n.yt=1,n.t=w)}n[g]="free"===t.anchor?t.position:t._anchorAxis.domain[y[0]],t.title.text!==p._dfltTitle[v]&&(n[s]+=Ae(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((a={x:0,y:0,r:0,l:0,t:0,b:0})[c]=t.linewidth,t.mirror&&!0!==t.mirror&&(a[c]+=f),!0===t.mirror||"ticks"===t.mirror?a[g]=t._anchorAxis.domain[y[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(a[g]=[t._counterDomainMin,t._counterDomainMax][y[1]]))}se&&(l=o.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),"string"==typeof t.automargin&&(we(n,t.automargin),we(a,t.automargin)),i.autoMargin(e,Oe(t),n),i.autoMargin(e,Ce(t),a),i.autoMargin(e,De(t),l)}),l.syncOrAsync(oe)}}function ce(e){var r=y+(e||"tick");return A[r]||(A[r]=function(e,t,r){var n,a,i,o;if(e._selections[t].size())n=1/0,a=-1/0,i=1/0,o=-1/0,e._selections[t].each(function(){var e=Le(this),t=d.bBox(e.node().parentNode);n=Math.min(n,t.top),a=Math.max(a,t.bottom),i=Math.min(i,t.left),o=Math.max(o,t.right)});else{var l=V.makeLabelFns(e,r);n=a=l.yFn({dx:0,dy:0,fontSize:0}),i=o=l.xFn({dx:0,dy:0,fontSize:0})}return{top:n,bottom:a,left:i,right:o,height:a-n,width:o-i}}(t,r,w)),A[r]}},V.getTickSigns=function(e,t){var r=e._id.charAt(0),n={x:"top",y:"right"}[r],a=e.side===n?1:-1,i=[-1,1,a,-a];return"inside"!==(t?(e.minor||{}).ticks:e.ticks)==("x"===r)&&(i=i.map(function(e){return-e})),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i},V.makeTransTickFn=function(e){return"x"===e._id.charAt(0)?function(t){return s(e._offset+e.l2p(t.x),0)}:function(t){return s(0,e._offset+e.l2p(t.x))}},V.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",r=function(e){return-1!==t.indexOf(e)},n=r("top"),a=r("left"),i=r("right"),o=r("bottom"),l=r("inside"),s=o||a||n||i;if(!s&&!l)return[0,0];var c=e.side,u=s?(e.tickwidth||0)/2:0,f=Y,d=e.tickfont?e.tickfont.size:12;(o||n)&&(u+=d*H,f+=(e.linewidth||0)/2);(a||i)&&(u+=(e.linewidth||0)/2,f+=Y);l&&"top"===c&&(f-=d*(1-H));(a||n)&&(u=-u);"bottom"!==c&&"right"!==c||(f=-f);return[s?u:0,l?f:0]}(e),r=t[0],n=t[1];return"x"===e._id.charAt(0)?function(t){return s(r+e._offset+e.l2p(Te(t)),n)}:function(t){return s(n,r+e._offset+e.l2p(Te(t)))}},V.makeTickPath=function(e,t,r,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var i=void 0!==n.len?n.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return"x"===o?"M0,"+(t+l*r)+"v"+i*r:"M"+(t+l*r)+",0h"+i*r},V.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=function(e){return-1!==n.indexOf(e)},o=i("top"),s=i("left"),c=i("right"),u=i("bottom")||s||o||c,f=i("inside"),d="inside"===n&&"inside"===e.ticks||!f&&"outside"===e.ticks&&"boundaries"!==e.tickson,h=0,p=0,y=d?e.ticklen:0;if(f?y*=-1:u&&(y=0),d&&(h+=y,r)){var v=l.deg2rad(r);h=y*Math.cos(v)+1,p=y*Math.sin(v)}e.showticklabels&&(d||e.showline)&&(h+=.2*e.tickfont.size);var g,m,x,b,_,w={labelStandoff:h+=(e.linewidth||1)/2*(f?-1:1),labelShift:p},k=0,T=e.side,M=e._id.charAt(0),A=e.tickangle;if("x"===M)b=(_=!f&&"bottom"===T||f&&"top"===T)?1:-1,f&&(b*=-1),g=p*b,m=t+h*b,x=_?1:-.2,90===Math.abs(A)&&(f?x+=B:x=-90===A&&"bottom"===T?H:90===A&&"top"===T?B:.5,k=B/2*(A/90)),w.xFn=function(e){return e.dx+g+k*e.fontSize},w.yFn=function(e){return e.dy+m+e.fontSize*x},w.anchorFn=function(e,t){if(u){if(s)return"end";if(c)return"start"}return a(t)&&0!==t&&180!==t?t*b<0!==f?"end":"start":"middle"},w.heightFn=function(t,r,n){return r<-60||r>60?-.5*n:"top"===e.side!==f?-n:0};else if("y"===M){if(b=(_=!f&&"left"===T||f&&"right"===T)?1:-1,f&&(b*=-1),g=h,m=p*b,x=0,f||90!==Math.abs(A)||(x=-90===A&&"left"===T||90===A&&"right"===T?H:.5),f){var S=a(A)?+A:0;if(0!==S){var L=l.deg2rad(S);k=Math.abs(Math.sin(L))*H*b,x=0}}w.xFn=function(e){return e.dx+t-(g+e.fontSize*x)*b+k*e.fontSize},w.yFn=function(e){return e.dy+m+e.fontSize*B},w.anchorFn=function(e,t){return a(t)&&90===Math.abs(t)?"middle":_?"end":"start"},w.heightFn=function(t,r,n){return"right"===e.side&&(r*=-1),r<-30?-n:r<30?-.5*n:0}}return w},V.drawTicks=function(e,t,r){r=r||{};var a=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(e){return e.minor&&!e.noTick}):[]).concat(t.ticks?r.vals.filter(function(e){return!e.minor&&!e.noTick}):[]),o=r.layer.selectAll("path."+a).data(i,Me);o.exit().remove(),o.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",!1!==r.crisp).each(function(e){return f.stroke(n.select(this),e.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(r){return d.crispRound(e,r.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),Fe(t,[z]),o.attr("transform",r.transFn)},V.drawGrid=function(e,t,r){if(r=r||{},"sync"!==t.tickmode){var a=t._id+"grid",i=t.minor&&t.minor.showgrid,o=i?r.vals.filter(function(e){return e.minor}):[],l=t.showgrid?r.vals.filter(function(e){return!e.minor}):[],s=r.counterAxis;if(s&&V.shouldShowZeroLine(e,t,s))for(var c="array"===t.tickmode,u=0;u<l.length;u++){var h=l[u].x;if(c?!h:Math.abs(h)<t.dtick/100){if(l=l.slice(0,u).concat(l.slice(u+1)),!c)break;u--}}t._gw=d.crispRound(e,t.gridwidth,1);for(var p=i?d.crispRound(e,t.minor.gridwidth,1):0,y=r.layer,v=r.minorLayer,g=1;g>=0;g--){var m=g?y:v;if(m){var x=m.selectAll("path."+a).data(g?l:o,Me);x.exit().remove(),x.enter().append("path").classed(a,1).classed("crisp",!1!==r.crisp),x.attr("transform",r.transFn).attr("d",r.path).each(function(e){return f.stroke(n.select(this),e.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(e){return d.dashStyle(e.minor?t.minor.griddash:t.griddash,e.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(e){return(e.minor?p:t._gw)+"px"}).style("display",null),"function"==typeof r.path&&x.attr("d",r.path)}}Fe(t,[R,I])}},V.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",a=V.shouldShowZeroLine(e,t,r.counterAxis),i=r.layer.selectAll("path."+n).data(a?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",!1!==r.crisp).each(function(){r.layer.selectAll("path").sort(function(e,t){return W(e.id,t.id)})}),i.attr("transform",r.transFn).attr("d",r.path).call(f.stroke,t.zerolinecolor||f.defaultLine).style("stroke-width",d.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),Fe(t,[E])},V.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,o=t._id,u=r.cls||o+"tick",f=r.vals.filter(function(e){return e.text}),h=r.labelFns,p=r.secondary?0:t.tickangle,y=(t._prevTickAngles||{})[u],v=r.layer.selectAll("g."+u).data(t.showticklabels?f:[],Me),g=[];function m(e,i){e.each(function(e){var o=n.select(this),l=o.select(".text-math-group"),u=h.anchorFn(e,i),f=r.transFn.call(o.node(),e)+(a(i)&&0!=+i?" rotate("+i+","+h.xFn(e)+","+(h.yFn(e)-e.fontSize/2)+")":""),p=c.lineCount(o),y=U*e.fontSize,v=h.heightFn(e,a(i)?+i:0,(p-1)*y);if(v&&(f+=s(0,v)),l.empty()){var g=o.select("text");g.attr({transform:f,"text-anchor":u}),g.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var m=d.bBox(l.node()).width*{end:-.5,start:.5}[u];l.attr("transform",f+s(m,0))}})}v.enter().append("g").classed(u,1).append("text").attr("text-anchor","middle").each(function(t){var r=n.select(this),a=e._promises.length;r.call(c.positionText,h.xFn(t),h.yFn(t)).call(d.font,t.font,t.fontSize,t.fontColor).text(t.text).call(c.convertToTspans,e),e._promises[a]?g.push(e._promises.pop().then(function(){m(r,p)})):m(r,p)}),Fe(t,[N]),v.exit().remove(),r.repositionOnUpdate&&v.each(function(e){n.select(this).select("text").call(c.positionText,h.xFn(e),h.yFn(e))}),t._adjustTickLabelsOverflow=function(){var r=t.ticklabeloverflow;if(r&&"allow"!==r){var a=-1!==r.indexOf("hide"),o="x"===t._id.charAt(0),s=0,c=o?e._fullLayout.width:e._fullLayout.height;if(-1!==r.indexOf("domain")){var u=l.simpleMap(t.range,t.r2l);s=t.l2p(u[0])+t._offset,c=t.l2p(u[1])+t._offset}var f=Math.min(s,c),h=Math.max(s,c),p=t.side,y=1/0,g=-1/0;for(var m in v.each(function(e){var r=n.select(this);if(r.select(".text-math-group").empty()){var i=d.bBox(r.node()),l=0;o?i.right>h?l=1:i.left<f&&(l=1):i.bottom>h?l=1:i.top+(t.tickangle?0:e.fontSize/4)<f&&(l=1);var s=r.select("text");l?a&&s.style("opacity",0):(s.style("opacity",1),y="bottom"===p||"right"===p?Math.min(y,o?i.top:i.left):-1/0,g="top"===p||"left"===p?Math.max(g,o?i.bottom:i.right):1/0)}}),i._plots){var x=i._plots[m];if(t._id===x.xaxis._id||t._id===x.yaxis._id){var b=o?x.yaxis:x.xaxis;b&&(b["_visibleLabelMin_"+t._id]=y,b["_visibleLabelMax_"+t._id]=g)}}}},t._hideCounterAxisInsideTickLabels=function(e){var r="x"===t._id.charAt(0),a=[];for(var o in i._plots){var l=i._plots[o];t._id!==l.xaxis._id&&t._id!==l.yaxis._id||a.push(r?l.yaxis:l.xaxis)}a.forEach(function(r,a){r&&Ne(r)&&(e||[E,I,R,z,N]).forEach(function(e){var o="tick"===e.K&&"text"===e.L&&"period"===t.ticklabelmode,l=i._plots[t._mainSubplot];(e.K===E.K?l.zerolinelayer.selectAll("."+t._id+"zl"):e.K===I.K?l.minorGridlayer.selectAll("."+t._id):e.K===R.K?l.gridlayer.selectAll("."+t._id):l[t._id.charAt(0)+"axislayer"]).each(function(){var i=n.select(this);e.L&&(i=i.selectAll(e.L)),i.each(function(i){var l=t.l2p(o?Te(i):i.x)+t._offset,s=n.select(this);l<t["_visibleLabelMax_"+r._id]&&l>t["_visibleLabelMin_"+r._id]?s.style("display","none"):"tick"!==e.K||a||s.style("display",null)})})})})},m(v,y+1?y:p);var x=null;t._selections&&(t._selections[u]=v);var b=[function(){return g.length&&Promise.all(g)}];t.automargin&&i._redrawFromAutoMarginCount&&90===y?(x=y,b.push(function(){m(v,y)})):b.push(function(){if(m(v,p),f.length&&t.autotickangles&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){x=t.autotickangles[0];var e,n=0,a=[],i=1;if(v.each(function(e){n=Math.max(n,e.fontSize);var r=t.l2p(e.x),o=Le(this),l=d.bBox(o.node());i=Math.max(i,c.lineCount(o)),a.push({top:0,bottom:10,height:10,left:r-l.width/2,right:r+l.width/2+2,width:l.width+2})}),"boundaries"!==t.tickson&&!t.showdividers||r.secondary){var o=f.length,s=Math.abs((f[o-1].x-f[0].x)*t._m)/(o-1),u=t.ticklabelposition||"",h=function(e){return-1!==u.indexOf(e)},y=h("top"),g=h("left"),b=h("right"),_=h("bottom")||g||y||b?(t.tickwidth||0)+2*Y:0,w=s,k=1.25*n*i,T=w/Math.sqrt(Math.pow(w,2)+Math.pow(k,2)),M=t.autotickangles.map(function(e){return e*Math.PI/180}),A=M.find(function(e){return Math.abs(Math.cos(e))<=T});void 0===A&&(A=M.reduce(function(e,t){return Math.abs(Math.cos(e))<Math.abs(Math.cos(t))?e:t},M[0]));var S=A*(180/Math.PI);for(e=0;e<a.length-1;e++)if(l.bBoxIntersect(a[e],a[e+1],_)){x=S;break}}else{var L=2;for(t.ticks&&(L+=t.tickwidth/2),e=0;e<a.length;e++){var O=f[e].xbnd,C=a[e];if(null!==O[0]&&C.left-t.l2p(O[0])<L||null!==O[1]&&t.l2p(O[1])-C.right<L){x=90;break}}}x&&m(v,x)}}),t._tickAngles&&b.push(function(){t._tickAngles[u]=null===x?a(p)?p:0:x});var _=function(){var e=0,r=0;return v.each(function(n,a){var i,o=Le(this);o.select(".text-math-group").empty()&&(t._vals[a]&&(i=t._vals[a].bb||d.bBox(o.node()),t._vals[a].bb=i),e=Math.max(e,i.width),r=Math.max(r,i.height))}),{labelsMaxW:e,labelsMaxH:r}},w=t._anchorAxis;if(w&&(w.autorange||w.insiderange)&&Ne(t)&&!J(i,t._id)&&(i._insideTickLabelsUpdaterange||(i._insideTickLabelsUpdaterange={}),w.autorange&&(i._insideTickLabelsUpdaterange[w._name+".autorange"]=w.autorange,b.push(_)),w.insiderange)){var k=_(),T="y"===t._id.charAt(0)?k.labelsMaxW:k.labelsMaxH;T+=2*Y,"inside"===t.ticklabelposition&&(T+=t.ticklen||0);var M="right"===t.side||"top"===t.side?1:-1,A=1===M?1:0,S=1===M?0:1,L=[];L[S]=w.range[S];var O=w.range,C=w.r2p(O[A]),D=w.r2p(O[S]),P=i._insideTickLabelsUpdaterange[w._name+".range"];if(P){var F=w.r2p(P[A]),j=w.r2p(P[S]),B=M*("y"===t._id.charAt(0)?1:-1);B*C<B*F&&(C=F,L[A]=O[A]=P[A]),B*D>B*j&&(D=j,L[S]=O[S]=P[S])}var H=Math.abs(D-C);H-T>0?T*=1+T/(H-=T):T=0,"y"!==t._id.charAt(0)&&(T=-T),L[A]=w.p2r(w.r2p(O[A])+M*T),"min"===w.autorange||"max reversed"===w.autorange?(L[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):"max"!==w.autorange&&"min reversed"!==w.autorange||(L[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[w._name+".range"]=L}var q=l.syncOrAsync(b);return q&&q.then&&e._promises.push(q),q},V.getPxPosition=function(e,t){var r,n=e._fullLayout._size,a=t._id.charAt(0),i=t.side;return"free"!==t.anchor?r=t._anchorAxis:"x"===a?r={_offset:n.t+(1-(t.position||0))*n.h,_length:0}:"y"===a&&(r={_offset:n.l+(t.position||0)*n.w+t._shift,_length:0}),"top"===i||"left"===i?r._offset:"bottom"===i||"right"===i?r._offset+r._length:void 0},V.shouldShowZeroLine=function(e,t,r){var n=l.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&("linear"===t.type||"-"===t.type)&&!(t.rangebreaks&&t.maskBreaks(0)===P)&&(Se(t,0)||!function(e,t,r,n){var a=r._mainAxis;if(!a)return;var i=e._fullLayout,o=t._id.charAt(0),l=V.counterLetter(t._id),s=t._offset+(Math.abs(n[0])<Math.abs(n[1])==("x"===o)?0:t._length);function c(e){if(!e.showline||!e.linewidth)return!1;var r=Math.max((e.linewidth+t.zerolinewidth)/2,1);function n(e){return"number"==typeof e&&Math.abs(e-s)<r}if(n(e._mainLinePosition)||n(e._mainMirrorPosition))return!0;var a=e._linepositions||{};for(var i in a)if(n(a[i][0])||n(a[i][1]))return!0}var u=i._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=V.list(e,l),d=0;d<f.length;d++){var h=f[d];if(h._mainAxis===a&&c(h))return!0}}(e,t,r,n)||function(e,t){for(var r=e._fullData,n=t._mainSubplot,a=t._id.charAt(0),i=0;i<r.length;i++){var l=r[i];if(!0===l.visible&&l.xaxis+l.yaxis===n){if(o.traceIs(l,"bar-like")&&l.orientation==={x:"h",y:"v"}[a])return!0;if(l.fill&&l.fill.charAt(l.fill.length-1)===a)return!0}}return!1}(e,t))},V.clipEnds=function(e,t){return t.filter(function(t){return Se(e,t.x)})},V.allowAutoMargin=function(e){for(var t=V.list(e,"",!0),r=0;r<t.length;r++){var n=t[r];n.automargin&&(i.allowAutoMargin(e,Oe(n)),n.mirror&&i.allowAutoMargin(e,Ce(n))),o.getComponentMethod("rangeslider","isVisible")(n)&&i.allowAutoMargin(e,De(n))}},V.swap=function(e,t){for(var r=function(e,t){var r,n,a=[];for(r=0;r<t.length;r++){var i=[],o=e._fullData[t[r]].xaxis,l=e._fullData[t[r]].yaxis;if(o&&l){for(n=0;n<a.length;n++)-1===a[n].x.indexOf(o)&&-1===a[n].y.indexOf(l)||i.push(n);if(i.length){var s,c=a[i[0]];if(i.length>1)for(n=1;n<i.length;n++)s=a[i[n]],Pe(c.x,s.x),Pe(c.y,s.y);Pe(c.x,[o]),Pe(c.y,[l])}else a.push({x:[o],y:[l]})}}return a}(e,t),n=0;n<r.length;n++)Ee(e,r[n].x,r[n].y)}},52976:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=r(39032).BADNUM,o=a.isArrayOrTypedArray,l=a.isDateTime,s=a.cleanNumber,c=Math.round;function u(e,t){return t?n(e):"number"==typeof e}function f(e){return Math.max(1,(e-1)/1e3)}e.exports=function(e,t,r){var a=e,d=r.noMultiCategory;if(o(a)&&!a.length)return"-";if(!d&&function(e){return o(e[0])&&o(e[1])}(a))return"multicategory";if(d&&Array.isArray(a[0])){for(var h=[],p=0;p<a.length;p++)if(o(a[p]))for(var y=0;y<a[p].length;y++)h.push(a[p][y]);a=h}if(function(e,t){for(var r=e.length,a=f(r),i=0,o=0,s={},u=0;u<r;u+=a){var d=c(u),h=e[d],p=String(h);s[p]||(s[p]=1,l(h,t)&&i++,n(h)&&o++)}return i>2*o}(a,t))return"date";var v="strict"!==r.autotypenumbers;return function(e,t){for(var r=e.length,n=f(r),a=0,o=0,l={},u=0;u<r;u+=n){var d=c(u),h=e[d],p=String(h);if(!l[p]){l[p]=1;var y=typeof h;"boolean"===y?o++:(t?s(h)!==i:"number"===y)?a++:"string"===y&&o++}}return o>2*a}(a,v)?"category":function(e,t){for(var r=e.length,n=0;n<r;n++)if(u(e[n],t))return!0;return!1}(a,v)?"linear":"-"}},28336:function(e,t,r){"use strict";var n=r(38248),a=r(24040),i=r(3400),o=r(31780),l=r(51272),s=r(94724),c=r(26332),u=r(25404),f=r(95936),d=r(42568),h=r(22416),p=r(42136),y=r(96312),v=r(78344),g=r(33816).WEEKDAY_PATTERN,m=r(33816).HOUR_PATTERN;function x(e,t,r){function a(r,n){return i.coerce(e,t,s.rangebreaks,r,n)}if(a("enabled")){var o=a("bounds");if(o&&o.length>=2){var l,c,u="";if(2===o.length)for(l=0;l<2;l++)if(c=_(o[l])){u=g;break}var f=a("pattern",u);if(f===g)for(l=0;l<2;l++)(c=_(o[l]))&&(t.bounds[l]=o[l]=c-1);if(f)for(l=0;l<2;l++)switch(c=o[l],f){case g:if(!n(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[l]=o[l]=c;break;case m:if(!n(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[l]=o[l]=c}if(!1===r.autorange){var d=r.range;if(d[0]<d[1]){if(o[0]<d[0]&&o[1]>d[1])return void(t.enabled=!1)}else if(o[0]>d[0]&&o[1]<d[1])return void(t.enabled=!1)}}else{var h=a("values");if(!h||!h.length)return void(t.enabled=!1);a("dvalue")}}}e.exports=function(e,t,r,n,m){var b,_=n.letter,w=n.font||{},k=n.splomStash||{},T=r("visible",!n.visibleDflt),M=t._template||{},A=t.type||M.type||"-";"date"===A&&(a.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",n.calendar),n.noTicklabelmode||(b=r("ticklabelmode")));var S="";n.noTicklabelposition&&"multicategory"!==A||(S=i.coerce(e,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:"period"===b?["outside","inside"]:"x"===_?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||r("ticklabeloverflow",-1!==S.indexOf("inside")?"hide past domain":"category"===A||"multicategory"===A?"allow":"hide past div"),v(t,m),y(e,t,r,n),h(e,t,r,n),"category"===A||n.noHover||r("hoverformat");var L=r("color"),O=L!==s.color.dflt?L:w.color,C=k.label||m._dfltTitle[_];if(d(e,t,r,A,n),!T)return t;r("title.text",C),i.coerceFont(r,"title.font",{family:w.family,size:i.bigFont(w.size),color:O}),c(e,t,r,A);var D=n.hasMinor;if(D&&(o.newContainer(t,"minor"),c(e,t,r,A,{isMinor:!0})),f(e,t,r,A,n),u(e,t,r,n),D){var P=n.isMinor;n.isMinor=!0,u(e,t,r,n),n.isMinor=P}p(e,t,r,{dfltColor:L,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:D,attributes:s}),!D||t.minor.ticks||t.minor.showgrid||delete t.minor,(t.showline||t.ticks)&&r("mirror");var E,R="multicategory"===A;n.noTickson||"category"!==A&&!R||!t.ticks&&!t.showgrid||(R&&(E="boundaries"),"boundaries"===r("tickson",E)&&delete t.ticklabelposition);R&&(r("showdividers")&&(r("dividercolor"),r("dividerwidth")));if("date"===A)if(l(e,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:x}),t.rangebreaks.length){for(var I=0;I<t.rangebreaks.length;I++)if(t.rangebreaks[I].pattern===g){t._hasDayOfWeekBreaks=!0;break}if(v(t,m),m._has("scattergl")||m._has("splom"))for(var z=0;z<n.data.length;z++){var N=n.data[z];"scattergl"!==N.type&&"splom"!==N.type||(N.visible=!1,i.warn(N.type+" traces do not work on axes with rangebreaks. Setting trace "+N.index+" to `visible: false`."))}}else delete t.rangebreaks;return t};var b={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function _(e){if("string"==typeof e)return b[e.substr(0,3).toLowerCase()]}},29736:function(e,t,r){"use strict";var n=r(26880),a=n.FORMAT_LINK,i=n.DATE_FORMAT_LINK;function o(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+a+"."].join(" ")}function l(e,t){return o(e,t)+[" And for dates see: "+i+".","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(" ")}e.exports={axisHoverFormat:function(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?o:l)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}},descriptionOnlyNumbers:o,descriptionWithDates:l}},79811:function(e,t,r){"use strict";var n=r(24040),a=r(33816);function i(e,t){if(t&&t.length)for(var r=0;r<t.length;r++)if(t[r][e])return!0;return!1}t.id2name=function(e){if("string"==typeof e&&e.match(a.AX_ID_PATTERN)){var t=e.split(" ")[0].substr(1);return"1"===t&&(t=""),e.charAt(0)+"axis"+t}},t.name2id=function(e){if(e.match(a.AX_NAME_PATTERN)){var t=e.substr(5);return"1"===t&&(t=""),e.charAt(0)+t}},t.cleanId=function(e,t,r){var n=/( domain)$/.test(e);if("string"==typeof e&&e.match(a.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)&&(!n||r)){var i=e.split(" ")[0].substr(1).replace(/^0+/,"");return"1"===i&&(i=""),e.charAt(0)+i+(n&&r?" domain":"")}},t.list=function(e,r,n){var a=e._fullLayout;if(!a)return[];var i,o=t.listIds(e,r),l=new Array(o.length);for(i=0;i<o.length;i++){var s=o[i];l[i]=a[s.charAt(0)+"axis"+s.substr(1)]}if(!n){var c=a._subplots.gl3d||[];for(i=0;i<c.length;i++){var u=a[c[i]];r?l.push(u[r+"axis"]):l.push(u.xaxis,u.yaxis,u.zaxis)}}return l},t.listIds=function(e,t){var r=e._fullLayout;if(!r)return[];var n=r._subplots;return t?n[t+"axis"]:n.xaxis.concat(n.yaxis)},t.getFromId=function(e,r,n){var a=e._fullLayout;return r=void 0===r||"string"!=typeof r?r:r.replace(" domain",""),"x"===n?r=r.replace(/y[0-9]*/,""):"y"===n&&(r=r.replace(/x[0-9]*/,"")),a[t.id2name(r)]},t.getFromTrace=function(e,r,a){var i=e._fullLayout,o=null;if(n.traceIs(r,"gl3d")){var l=r.scene;"scene"===l.substr(0,5)&&(o=i[l][a+"axis"])}else o=t.getFromId(e,r[a+"axis"]||a);return o},t.idSort=function(e,t){var r=e.charAt(0),n=t.charAt(0);return r!==n?r>n?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},t.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]},t.isLinked=function(e,t){return i(t,e._axisMatchGroups)||i(t,e._axisConstraintGroups)}},22416:function(e,t,r){"use strict";var n=r(38116).isTypedArraySpec;e.exports=function(e,t,r,a){if("category"===t.type){var i,o=e.categoryarray,l=Array.isArray(o)&&o.length>0||n(o);l&&(i="array");var s,c=r("categoryorder",i);"array"===c&&(s=r("categoryarray")),l||"array"!==c||(c=t.categoryorder="trace"),"trace"===c?t._initialCategories=[]:"array"===c?t._initialCategories=s.slice():(s=function(e,t){var r,n,a,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)r=t.axData;else for(r=[],n=0;n<t.data.length;n++){var l=t.data[n];l[i+"axis"]===e._id&&r.push(l)}for(n=0;n<r.length;n++){var s=r[n][i];for(a=0;a<s.length;a++){var c=s[a];null!=c&&(o[c]=1)}}return Object.keys(o)}(t,a).sort(),"category ascending"===c?t._initialCategories=s:"category descending"===c&&(t._initialCategories=s.reverse()))}}},98728:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=r(39032),o=i.ONEDAY,l=i.ONEWEEK;t.dtick=function(e,t){var r="log"===t,a="date"===t,i="category"===t,l=a?o:1;if(!e)return l;if(n(e))return(e=Number(e))<=0?l:i?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if("string"!=typeof e||!a&&!r)return l;var s=e.charAt(0),c=e.substr(1);return(c=n(c)?Number(c):0)<=0||!(a&&"M"===s&&c===Math.round(c)||r&&"L"===s||r&&"D"===s&&(1===c||2===c))?l:e},t.tick0=function(e,t,r,i){return"date"===t?a.cleanDate(e,a.dateTick0(r,i%l==0?1:0)):"D1"!==i&&"D2"!==i?n(e)?Number(e):0:void 0}},33816:function(e,t,r){"use strict";var n=r(53756).counter;e.exports={idRegex:{x:n("x","( domain)?"),y:n("y","( domain)?")},attrRegex:n("[xy]axis"),xAxisMatch:n("xaxis"),yAxisMatch:n("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},71888:function(e,t,r){"use strict";var n=r(3400),a=r(19280),i=r(79811).id2name,o=r(94724),l=r(21160),s=r(78344),c=r(39032).ALMOST_EQUAL,u=r(84284).FROM_BL;function f(e,t,r){var a=r.axIds,l=r.layoutOut,s=r.hasImage,c=l._axisConstraintGroups,u=l._axisMatchGroups,f=t._id,y=f.charAt(0),v=((l._splomAxes||{})[y]||{})[f]||{},g=t._id,m="x"===g.charAt(0);function x(r,a){return n.coerce(e,t,o,r,a)}t._matchGroup=null,t._constraintGroup=null,x("constrain",s?"domain":"range"),n.coerce(e,t,{constraintoward:{valType:"enumerated",values:m?["left","center","right"]:["bottom","middle","top"],dflt:m?"center":"middle"}},"constraintoward");var b,_,w=t.type,k=[];for(b=0;b<a.length;b++){if((_=a[b])!==g)l[i(_)].type===w&&k.push(_)}var T=h(c,g);if(T){var M=[];for(b=0;b<k.length;b++)T[_=k[b]]||M.push(_);k=M}var A,S,L=k.length;L&&(e.matches||v.matches)&&(A=n.coerce(e,t,{matches:{valType:"enumerated",values:k,dflt:-1!==k.indexOf(v.matches)?v.matches:void 0}},"matches"));var O=s&&!m?t.anchor:void 0;if(L&&!A&&(e.scaleanchor||O)&&(S=n.coerce(e,t,{scaleanchor:{valType:"enumerated",values:k.concat([!1])}},"scaleanchor",O)),A){t._matchGroup=p(u,g,A,1);var C=l[i(A)],D=d(l,t)/d(l,C);m!==("x"===A.charAt(0))&&(D=(m?"x":"y")+D),p(c,g,A,D)}else e.matches&&-1!==a.indexOf(e.matches)&&n.warn("ignored "+t._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(S){var P=x("scaleratio");P||(P=t.scaleratio=1),p(c,g,S,P)}else e.scaleanchor&&-1!==a.indexOf(e.scaleanchor)&&n.warn("ignored "+t._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function d(e,t){var r=t.domain;return r||(r=e[i(t.overlaying)].domain),r[1]-r[0]}function h(e,t){for(var r=0;r<e.length;r++)if(e[r][t])return e[r];return null}function p(e,t,r,n){var a,i,o,l,s,c=h(e,t);null===c?((c={})[t]=1,s=e.length,e.push(c)):s=e.indexOf(c);var u=Object.keys(c);for(a=0;a<e.length;a++)if(o=e[a],a!==s&&o[r]){var f=o[r];for(i=0;i<u.length;i++)o[l=u[i]]=y(f,y(n,c[l]));return void e.splice(s,1)}if(1!==n)for(i=0;i<u.length;i++){var d=u[i];c[d]=y(n,c[d])}c[r]=1}function y(e,t){var r,n,a="",i="";"string"==typeof e&&(r=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(r)),"string"==typeof t&&(n=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(n));var o=e*t;return r||n?r&&n&&a.charAt(0)!==i.charAt(0)?r===n?o:(r>n?a.substr(n):i.substr(r))+o:a+i+e*t:o}function v(e,t){for(var r=t._size,n=r.h/r.w,a={},i=Object.keys(e),o=0;o<i.length;o++){var l=i[o],s=e[l];if("string"==typeof s){var c=s.match(/^[xy]*/)[0],u=c.length;s=+s.substr(u);for(var f="y"===c.charAt(0)?n:1/n,d=0;d<u;d++)s*=f}a[l]=s}return a}function g(e,t){var r=e._inputDomain,n=u[e.constraintoward],a=r[0]+(r[1]-r[0])*n;e.domain=e._input.domain=[a+(r[0]-a)/t,a+(r[1]-a)/t],e.setScale()}t.handleDefaults=function(e,t,r){var a,o,l,c,u,d,h,p,y=r.axIds,v=r.axHasImage,g=t._axisConstraintGroups=[],m=t._axisMatchGroups=[];for(a=0;a<y.length;a++)f(u=e[c=i(y[a])],d=t[c],{axIds:y,layoutOut:t,hasImage:v[c]});function x(e,r){for(a=0;a<e.length;a++)for(l in o=e[a])t[i(l)][r]=o}for(x(m,"_matchGroup"),a=0;a<g.length;a++)for(l in o=g[a])if((d=t[i(l)]).fixedrange){for(var b in o){var _=i(b);!1===(e[_]||{}).fixedrange&&n.warn("fixedrange was specified as false for axis "+_+" but was overridden because another axis in its constraint group has fixedrange true"),t[_].fixedrange=!0}break}for(a=0;a<g.length;){for(l in o=g[a]){(d=t[i(l)])._matchGroup&&Object.keys(d._matchGroup).length===Object.keys(o).length&&(g.splice(a,1),a--);break}a++}x(g,"_constraintGroup");var w=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],k=!1,T=!1;function M(){p=d[h],"rangebreaks"===h&&(T=d._hasDayOfWeekBreaks)}for(a=0;a<m.length;a++){o=m[a];for(var A=0;A<w.length;A++){var S;for(l in h=w[A],p=null,o)if(u=e[c=i(l)],d=t[c],h in d){if(!d.matches&&(S=d,h in u)){M();break}null===p&&h in u&&M()}if("range"===h&&p&&u.range&&2===u.range.length&&null!==u.range[0]&&null!==u.range[1]&&(k=!0),"autorange"===h&&null===p&&k&&(p=!1),null===p&&h in S&&(p=S[h]),null!==p)for(l in o)(d=t[i(l)])[h]="range"===h?p.slice():p,"rangebreaks"===h&&(d._hasDayOfWeekBreaks=T,s(d,t))}}},t.enforce=function(e){var t,r,n,o,s,u,f,d,h=e._fullLayout,p=h._axisConstraintGroups||[];for(t=0;t<p.length;t++){n=v(p[t],h);var y=Object.keys(n),m=1/0,x=0,b=1/0,_={},w={},k=!1;for(r=0;r<y.length;r++)w[o=y[r]]=s=h[i(o)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),_[o]=u=Math.abs(s._m)/n[o],m=Math.min(m,u),"domain"!==s.constrain&&s._constraintShrinkable||(b=Math.min(b,u)),delete s._constraintShrinkable,x=Math.max(x,u),"domain"===s.constrain&&(k=!0);if(!(m>c*x)||k)for(r=0;r<y.length;r++)if(u=_[o=y[r]],f=(s=w[o]).constrain,u!==b||"domain"===f)if(d=u/b,"range"===f)l(s,d);else{var T=s._inputDomain,M=(s.domain[1]-s.domain[0])/(T[1]-T[0]),A=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if((d/=M)*A<1){s.domain=s._input.domain=T.slice(),l(s,d);continue}if(A<1&&(s.range=s._input.range=s._inputRange.slice(),d*=A),s.autorange){var S=s.r2l(s.range[0]),L=s.r2l(s.range[1]),O=(S+L)/2,C=O,D=O,P=Math.abs(L-O),E=O-P*d*1.0001,R=O+P*d*1.0001,I=a.makePadFn(h,s,0),z=a.makePadFn(h,s,1);g(s,d);var N,F,j=Math.abs(s._m),B=a.concatExtremes(e,s),H=B.min,U=B.max;for(F=0;F<H.length;F++)(N=H[F].val-I(H[F])/j)>E&&N<C&&(C=N);for(F=0;F<U.length;F++)(N=U[F].val+z(U[F])/j)<R&&N>D&&(D=N);d/=(D-C)/(2*P),C=s.l2r(C),D=s.l2r(D),s.range=s._input.range=S<L?[C,D]:[D,C]}g(s,d)}}},t.getAxisGroup=function(e,t){for(var r=e._axisMatchGroups,n=0;n<r.length;n++){if(r[n][t])return"g"+n}return t},t.clean=function(e,t){if(t._inputDomain){for(var r=!1,n=t._id,a=e._fullLayout._axisConstraintGroups,i=0;i<a.length;i++)if(a[i][n]){r=!0;break}r&&"domain"===t.constrain||(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}}},51184:function(e,t,r){"use strict";var n=r(33428),a=r(3400),i=a.numberFormat,o=r(49760),l=r(89184),s=r(24040),c=a.strTranslate,u=r(72736),f=r(76308),d=r(43616),h=r(93024),p=r(54460),y=r(93972),v=r(86476),g=r(72760),m=g.selectingOrDrawing,x=g.freeMode,b=r(84284).FROM_TL,_=r(73696),w=r(39172).redrawReglTraces,k=r(7316),T=r(79811).getFromId,M=r(22676).prepSelect,A=r(22676).clearOutline,S=r(22676).selectOnClick,L=r(21160),O=r(33816),C=O.MINDRAG,D=O.MINZOOM,P=!0;function E(e,t,r,n){var i=a.ensureSingle(e.draglayer,t,r,function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return i.call(y,n),i.node()}function R(e,t,r,a,i,o,l){var s=E(e,"rect",t,r);return n.select(s).call(d.setRect,a,i,o,l),s}function I(e,t){for(var r=0;r<e.length;r++)if(!e[r].fixedrange)return t;return""}function z(e,t,r,n,a){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var l="y"===o._id.charAt(0),s=l?1-t:t,c=l?1-r:r;n[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),n[o._name+".range[1]"]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+".range[0]"]=o.l2r(u+f*t),n[o._name+".range[1]"]=o.l2r(u+f*r)}}if(a&&a.length){var d=(t+(1-r))/2;z(a,d,1-d,n,[])}}function N(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(!n.fixedrange){if(n.rangebreaks){var a=n._length,i=(n.p2l(0+t)-n.p2l(0)+(n.p2l(a+t)-n.p2l(a)))/2;n.range=[n.l2r(n._rl[0]-i),n.l2r(n._rl[1]-i)]}else n.range=[n.l2r(n._rl[0]-t/n._m),n.l2r(n._rl[1]-t/n._m)];n.limitRange&&n.limitRange()}}}function F(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function j(e,t,r,n,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",c(r,n)).attr("d",a+"Z")}function B(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:f.background,stroke:f.defaultLine,"stroke-width":1,opacity:0}).attr("transform",c(t,r)).attr("d","M0,0Z")}function H(e,t,r,n,a,i){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),U(e,t,a,i)}function U(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function q(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Y(e){P&&e.data&&e._context.showTips&&(a.notifier(a._(e,"Double-click to zoom back out"),"long"),P=!1)}function V(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,D)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function G(e,t,r,n,i){for(var o,l,s,c,u=!1,f={},d={},h=(i||{}).xaHash,p=(i||{}).yaHash,y=0;y<t.length;y++){var v=t[y];for(o in r)if(v[o]){for(s in v)i&&(h[s]||p[s])||("x"===s.charAt(0)?r:n)[s]||(f[s]=o);for(l in n)i&&(h[l]||p[l])||!v[l]||(u=!0)}for(l in n)if(v[l])for(c in v)i&&(h[c]||p[c])||("x"===c.charAt(0)?r:n)[c]||(d[c]=l)}u&&(a.extendFlat(f,d),d={});var g={},m=[];for(s in f){var x=T(e,s);m.push(x),g[x._id]=x}var b={},_=[];for(c in d){var w=T(e,c);_.push(w),b[w._id]=w}return{xaHash:g,yaHash:b,xaxes:m,yaxes:_,xLinks:f,yLinks:d,isSubplotConstrained:u}}function Z(e,t){if(l){var r=void 0!==e.onwheel?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(r,e._onwheel),e._onwheel=t,e.addEventListener(r,t,{passive:!1})}else void 0!==e.onwheel?e.onwheel=t:void 0!==e.onmousewheel?e.onmousewheel=t:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",t,{passive:!1}))}function W(e){var t=[];for(var r in e)t.push(e[r]);return t}e.exports={makeDragBox:function(e,t,r,l,c,f,y,g){var P,E,U,J,X,K,$,Q,ee,te,re,ne,ae,ie,oe,le,se,ce,ue,fe,de,he,pe,ye=e._fullLayout._zoomlayer,ve=y+g==="nsew",ge=1===(y+g).length;function me(){if(P=t.xaxis,E=t.yaxis,ee=P._length,te=E._length,$=P._offset,Q=E._offset,(U={})[P._id]=P,(J={})[E._id]=E,y&&g)for(var r=t.overlays,n=0;n<r.length;n++){var a=r[n].xaxis;U[a._id]=a;var i=r[n].yaxis;J[i._id]=i}X=W(U),K=W(J),ae=I(X,g),ie=I(K,y),oe=!ie&&!ae,ne=G(e,e._fullLayout._axisMatchGroups,U,J);var o=(re=G(e,e._fullLayout._axisConstraintGroups,U,J,ne)).isSubplotConstrained||ne.isSubplotConstrained;le=g||o,se=y||o;var l=e._fullLayout;ce=l._has("scattergl"),ue=l._has("splom"),fe=l._has("svg")}r+=t.yaxis._shift,me();var xe=function(e,t,r){return e?"nsew"===e?r?"":"pan"===t?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}(ie+ae,e._fullLayout.dragmode,ve),be=R(t,y+g+"drag",xe,r,l,c,f);if(oe&&!ve)return be.onmousedown=null,be.style.pointerEvents="none",be;var _e,we,ke,Te,Me,Ae,Se,Le,Oe,Ce,De={element:be,gd:e,plotinfo:t};function Pe(){De.plotinfo.selection=!1,A(e)}function Ee(e,r){var a=De.gd;if(a._fullLayout._activeShapeIndex>=0)a._fullLayout._deactivateShape(a);else{var o=a._fullLayout.clickmode;if(q(a),2!==e||ge||Ye(),ve)o.indexOf("select")>-1&&S(r,a,X,K,t.id,De),o.indexOf("event")>-1&&h.click(a,r,t.id);else if(1===e&&ge){var l=y?E:P,c="s"===y||"w"===g?0:1,f=l._name+".range["+c+"]",d=function(e,t){var r,n=e.range[t],a=Math.abs(n-e.range[1-t]);return"date"===e.type?n:"log"===e.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,i("."+r+"g")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,i("."+String(r)+"g")(n))}(l,c),p="left",v="middle";if(l.fixedrange)return;y?(v="n"===y?"top":"bottom","right"===l.side&&(p="right")):"e"===g&&(p="right"),a._context.showAxisRangeEntryBoxes&&n.select(be).call(u.makeEditable,{gd:a,immediate:!0,background:a._fullLayout.paper_bgcolor,text:String(d),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:p,verticalAlign:v}).on("edit",function(e){var t=l.d2r(e);void 0!==t&&s.call("_guiRelayout",a,f,t)})}}}function Re(t,r){if(e._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(ee,he*t+_e)),a=Math.max(0,Math.min(te,pe*r+we)),i=Math.abs(n-_e),o=Math.abs(a-we);function l(){Se="",ke.r=ke.l,ke.t=ke.b,Oe.attr("d","M0,0Z")}if(ke.l=Math.min(_e,n),ke.r=Math.max(_e,n),ke.t=Math.min(we,a),ke.b=Math.max(we,a),re.isSubplotConstrained)i>D||o>D?(Se="xy",i/ee>o/te?(o=i*te/ee,we>a?ke.t=we-o:ke.b=we+o):(i=o*ee/te,_e>n?ke.l=_e-i:ke.r=_e+i),Oe.attr("d",V(ke))):l();else if(ne.isSubplotConstrained)if(i>D||o>D){Se="xy";var s=Math.min(ke.l/ee,(te-ke.b)/te),c=Math.max(ke.r/ee,(te-ke.t)/te);ke.l=s*ee,ke.r=c*ee,ke.b=(1-s)*te,ke.t=(1-c)*te,Oe.attr("d",V(ke))}else l();else!ie||o<Math.min(Math.max(.6*i,C),D)?i<C||!ae?l():(ke.t=0,ke.b=te,Se="x",Oe.attr("d",function(e,t){return"M"+(e.l-.5)+","+(t-D-.5)+"h-3v"+(2*D+1)+"h3ZM"+(e.r+.5)+","+(t-D-.5)+"h3v"+(2*D+1)+"h-3Z"}(ke,we))):!ae||i<Math.min(.6*o,D)?(ke.l=0,ke.r=ee,Se="y",Oe.attr("d",function(e,t){return"M"+(t-D-.5)+","+(e.t-.5)+"v-3h"+(2*D+1)+"v3ZM"+(t-D-.5)+","+(e.b+.5)+"v3h"+(2*D+1)+"v-3Z"}(ke,_e))):(Se="xy",Oe.attr("d",V(ke)));ke.w=ke.r-ke.l,ke.h=ke.b-ke.t,Se&&(Ce=!0),e._dragged=Ce,H(Le,Oe,ke,Me,Ae,Te),Ie(),e.emit("plotly_relayouting",de),Ae=!0}function Ie(){de={},"xy"!==Se&&"x"!==Se||(z(X,ke.l/ee,ke.r/ee,de,re.xaxes),Ue("x",de)),"xy"!==Se&&"y"!==Se||(z(K,(te-ke.b)/te,(te-ke.t)/te,de,re.yaxes),Ue("y",de))}function ze(){Ie(),q(e),Ve(),Y(e)}De.prepFn=function(t,r,n){var i=De.dragmode,l=e._fullLayout.dragmode;l!==i&&(De.dragmode=l),me(),he=e._fullLayout._invScaleX,pe=e._fullLayout._invScaleY,oe||(ve?t.shiftKey?"pan"===l?l="zoom":m(l)||(l="pan"):t.ctrlKey&&(l="pan"):l="pan"),x(l)?De.minDrag=1:De.minDrag=void 0,m(l)?(De.xaxes=X,De.yaxes=K,M(t,r,n,De,l)):(De.clickFn=Ee,m(i)&&Pe(),oe||("zoom"===l?(De.moveFn=Re,De.doneFn=ze,De.minDrag=1,function(t,r,n){var i=be.getBoundingClientRect();_e=r-i.left,we=n-i.top,e._fullLayout._calcInverseTransform(e);var l=a.apply3DTransform(e._fullLayout._invTransform)(_e,we);_e=l[0],we=l[1],ke={l:_e,r:_e,w:0,t:we,b:we,h:0},Te=e._hmpixcount?e._hmlumcount/e._hmpixcount:o(e._fullLayout.plot_bgcolor).getLuminance(),Ae=!1,Se="xy",Ce=!1,Le=j(ye,Te,$,Q,Me="M0,0H"+ee+"V"+te+"H0V0"),Oe=B(ye,$,Q)}(0,r,n)):"pan"===l&&(De.moveFn=He,De.doneFn=Ve))),e._fullLayout._redrag=function(){var t=e._dragdata;if(t&&t.element===be){var r=e._fullLayout.dragmode;m(r)||(me(),Ge([0,0,ee,te]),De.moveFn(t.dx,t.dy))}}},v.init(De);var Ne=[0,0,ee,te],Fe=null,je=O.REDRAWDELAY,Be=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function He(t,r){if(t*=he,r*=pe,!e._transitioningWithDuration){if(e._fullLayout._replotting=!0,"ew"===ae||"ns"===ie){var n=ae?-t:0,a=ie?-r:0;if(ne.isSubplotConstrained){if(ae&&ie){var i=(t/ee-r/te)/2;n=-(t=i*ee),a=-(r=-i*te)}ie?n=-a*ee/te:a=-n*te/ee}return ae&&(N(X,t),Ue("x")),ie&&(N(K,r),Ue("y")),Ge([n,a,ee,te]),qe(),void e.emit("plotly_relayouting",de)}var o,l,s="w"===ae==("n"===ie)?1:-1;if(ae&&ie&&(re.isSubplotConstrained||ne.isSubplotConstrained)){var c=(t/ee+s*r/te)/2;t=c*ee,r=s*c*te}if("w"===ae?t=h(X,0,t):"e"===ae?t=h(X,1,-t):ae||(t=0),"n"===ie?r=h(K,1,r):"s"===ie?r=h(K,0,-r):ie||(r=0),o="w"===ae?t:0,l="n"===ie?r:0,re.isSubplotConstrained&&!ne.isSubplotConstrained||ne.isSubplotConstrained&&ae&&ie&&s>0){var u;if(ne.isSubplotConstrained||!ae&&1===ie.length){for(u=0;u<X.length;u++)X[u].range=X[u]._r.slice(),L(X[u],1-r/te);o=(t=r*ee/te)/2}if(ne.isSubplotConstrained||!ie&&1===ae.length){for(u=0;u<K.length;u++)K[u].range=K[u]._r.slice(),L(K[u],1-t/ee);l=(r=t*te/ee)/2}}ne.isSubplotConstrained&&ie||Ue("x"),ne.isSubplotConstrained&&ae||Ue("y");var f=ee-t,d=te-r;!ne.isSubplotConstrained||ae&&ie||(ae?(l=o?0:t*te/ee,d=f*te/ee):(o=l?0:r*ee/te,f=d*ee/te)),Ge([o,l,f,d]),qe(),e.emit("plotly_relayouting",de)}function h(e,t,r){for(var n,a,i=1-t,o=0;o<e.length;o++){var l=e[o];if(!l.fixedrange){n=l,a=l._rl[i]+(l._rl[t]-l._rl[i])/F(r/l._length);var s=l.l2r(a);!1!==s&&void 0!==s&&(l.range[t]=s)}}return n._length*(n._rl[t]-a)/(n._rl[t]-n._rl[i])}}function Ue(e,t){for(var r=ne.isSubplotConstrained?{x:K,y:X}[e]:ne[e+"axes"],n=ne.isSubplotConstrained?{x:X,y:K}[e]:[],a=0;a<r.length;a++){var i=r[a],o=i._id,l=ne.xLinks[o]||ne.yLinks[o],s=n[0]||U[l]||J[l];s&&(t?(t[i._name+".range[0]"]=t[s._name+".range[0]"],t[i._name+".range[1]"]=t[s._name+".range[1]"]):i.range=s.range.slice())}}function qe(){var r,n=[];function a(e){for(r=0;r<e.length;r++)e[r].fixedrange||n.push(e[r]._id)}function i(e,t){for(r=0;r<e.length;r++){var a=e[r],i=a[t];a.fixedrange||"sync"!==i.tickmode||n.push(i._id)}}for(le&&(a(X),a(re.xaxes),a(ne.xaxes),i(t.overlays,"xaxis")),se&&(a(K),a(re.yaxes),a(ne.yaxes),i(t.overlays,"yaxis")),de={},r=0;r<n.length;r++){var o=n[r],l=T(e,o);p.drawOne(e,l,{skipTitle:!0}),de[l._name+".range[0]"]=l.range[0],de[l._name+".range[1]"]=l.range[1]}p.redrawComponents(e,n)}function Ye(){if(!e._transitioningWithDuration){var t=e._context.doubleClick,r=[];ae&&(r=r.concat(X)),ie&&(r=r.concat(K)),ne.xaxes&&(r=r.concat(ne.xaxes)),ne.yaxes&&(r=r.concat(ne.yaxes));var n,a,i={};if("reset+autosize"===t)for(t="autosize",a=0;a<r.length;a++){var o=(n=r[a])._rangeInitial0,l=n._rangeInitial1,c=void 0!==o||void 0!==l;if(c&&(void 0!==o&&o!==n.range[0]||void 0!==l&&l!==n.range[1])||!c&&!0!==n.autorange){t="reset";break}}if("autosize"===t)for(a=0;a<r.length;a++)(n=r[a]).fixedrange||(i[n._name+".autorange"]=!0);else if("reset"===t)for((ae||re.isSubplotConstrained)&&(r=r.concat(re.xaxes)),ie&&!re.isSubplotConstrained&&(r=r.concat(re.yaxes)),re.isSubplotConstrained&&(ae?ie||(r=r.concat(K)):r=r.concat(X)),a=0;a<r.length;a++)if(!(n=r[a]).fixedrange){var u=n._name,f=n._autorangeInitial;void 0===n._rangeInitial0&&void 0===n._rangeInitial1?i[u+".autorange"]=!0:void 0===n._rangeInitial0?(i[u+".autorange"]=f,i[u+".range"]=[null,n._rangeInitial1]):void 0===n._rangeInitial1?(i[u+".range"]=[n._rangeInitial0,null],i[u+".autorange"]=f):i[u+".range"]=[n._rangeInitial0,n._rangeInitial1]}e.emit("plotly_doubleclick",null),s.call("_guiRelayout",e,i)}}function Ve(){Ge([0,0,ee,te]),a.syncOrAsync([k.previousPromises,function(){e._fullLayout._replotting=!1,s.call("_guiRelayout",e,de)}],e)}function Ge(t){var r,n,i,o,l=e._fullLayout,c=l._plots,u=l._subplots.cartesian;if(ue&&s.subplotsRegistry.splom.drag(e),ce)for(r=0;r<u.length;r++)if(i=(n=c[u[r]]).xaxis,o=n.yaxis,n._scene){var f=a.simpleMap(i.range,i.r2l),h=a.simpleMap(o.range,o.r2l);i.limitRange&&i.limitRange(),o.limitRange&&o.limitRange(),f=i.range,h=o.range,n._scene.update({range:[f[0],h[0],f[1],h[1]]})}if((ue||ce)&&(_(e),w(e)),fe){var p=t[2]/P._length,v=t[3]/E._length;for(r=0;r<u.length;r++){i=(n=c[u[r]]).xaxis,o=n.yaxis;var m,x,b,k,T=(le||ne.isSubplotConstrained)&&!i.fixedrange&&U[i._id],M=(se||ne.isSubplotConstrained)&&!o.fixedrange&&J[o._id];if(T?(m=p,b=g||ne.isSubplotConstrained?t[0]:Je(i,m)):ne.xaHash[i._id]?(m=p,b=t[0]*i._length/P._length):ne.yaHash[i._id]?(m=v,b="ns"===ie?-t[1]*i._length/E._length:Je(i,m,{n:"top",s:"bottom"}[ie])):b=We(i,m=Ze(i,p,v)),m>1&&(void 0!==i.maxallowed&&le===(i.range[0]<i.range[1]?"e":"w")||void 0!==i.minallowed&&le===(i.range[0]<i.range[1]?"w":"e"))&&(m=1,b=0),M?(x=v,k=y||ne.isSubplotConstrained?t[1]:Je(o,x)):ne.yaHash[o._id]?(x=v,k=t[1]*o._length/E._length):ne.xaHash[o._id]?(x=p,k="ew"===ae?-t[0]*o._length/P._length:Je(o,x,{e:"right",w:"left"}[ae])):k=We(o,x=Ze(o,p,v)),x>1&&(void 0!==o.maxallowed&&se===(o.range[0]<o.range[1]?"n":"s")||void 0!==o.minallowed&&se===(o.range[0]<o.range[1]?"s":"n"))&&(x=1,k=0),m||x){m||(m=1),x||(x=1);var A=i._offset-b/m,S=o._offset-k/x;n.clipRect.call(d.setTranslate,b,k).call(d.setScale,m,x),n.plot.call(d.setTranslate,A,S).call(d.setScale,1/m,1/x),m===n.xScaleFactor&&x===n.yScaleFactor||(d.setPointGroupScale(n.zoomScalePts,m,x),d.setTextPointsScale(n.zoomScaleTxt,m,x)),d.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=m,n.yScaleFactor=x}}}}function Ze(e,t,r){return e.fixedrange?0:le&&re.xaHash[e._id]?t:se&&(re.isSubplotConstrained?re.xaHash:re.yaHash)[e._id]?r:0}function We(e,t){return t?(e.range=e._r.slice(),L(e,t),Je(e,t)):0}function Je(e,t,r){return e._length*(1-t)*b[r||e.constraintoward||"middle"]}return y.length*g.length!=1&&Z(be,function(t){if(e._context._scrollZoom.cartesian||e._fullLayout._enablescrollzoom){if(Pe(),e._transitioningWithDuration)return t.preventDefault(),void t.stopPropagation();me(),clearTimeout(Fe);var r=-t.deltaY;if(isFinite(r)||(r=t.wheelDelta/10),isFinite(r)){var n,i=Math.exp(-Math.min(Math.max(r,-20),20)/200),o=Be.draglayer.select(".nsewdrag").node().getBoundingClientRect(),l=(t.clientX-o.left)/o.width,s=(o.bottom-t.clientY)/o.height;if(le){for(g||(l=.5),n=0;n<X.length;n++)c(X[n],l,i);Ue("x"),Ne[2]*=i,Ne[0]+=Ne[2]*l*(1/i-1)}if(se){for(y||(s=.5),n=0;n<K.length;n++)c(K[n],s,i);Ue("y"),Ne[3]*=i,Ne[1]+=Ne[3]*(1-s)*(1/i-1)}Ge(Ne),qe(),e.emit("plotly_relayouting",de),Fe=setTimeout(function(){e._fullLayout&&(Ne=[0,0,ee,te],Ve())},je),t.preventDefault()}else a.log("Did not find wheel motion attributes: ",t)}function c(e,t,r){if(!e.fixedrange){var n=a.simpleMap(e.range,e.r2l),i=n[0]+(n[1]-n[0])*t;e.range=n.map(function(t){return e.l2r(i+(t-i)*r)})}}}),be},makeDragger:E,makeRectDragger:R,makeZoombox:j,makeCorners:B,updateZoombox:H,xyCorners:V,transitionZoombox:U,removeZoombox:q,showDoubleClickNotifier:Y,attachWheelEventHandler:Z}},42464:function(e,t,r){"use strict";var n=r(33428),a=r(93024),i=r(86476),o=r(93972),l=r(51184).makeDragBox,s=r(33816).DRAGGERSIZE;t.initInteractions=function(e){var r=e._fullLayout;if(e._context.staticPlot)n.select(e).selectAll(".drag").remove();else if(r._has("cartesian")||r._has("splom")){Object.keys(r._plots||{}).sort(function(e,t){if((r._plots[e].mainplot&&!0)===(r._plots[t].mainplot&&!0)){var n=e.split("y"),a=t.split("y");return n[0]===a[0]?Number(n[1]||1)-Number(a[1]||1):Number(n[0]||1)-Number(a[0]||1)}return r._plots[e].mainplot?1:-1}).forEach(function(t){var n=r._plots[t],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=l(e,n,o._offset,c._offset,o._length,c._length,"ns","ew");u.onmousemove=function(r){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===t&&e._fullLayout._plots[t]&&a.hover(e,r,t)},a.hover(e,r,t),e._fullLayout._lasthover=u,e._fullLayout._hoversubplot=t},u.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,i.unhover(e,t))},e._context.showAxisDragHandles&&(l(e,n,o._offset-s,c._offset-s,s,s,"n","w"),l(e,n,o._offset+o._length,c._offset-s,s,s,"n","e"),l(e,n,o._offset-s,c._offset+c._length,s,s,"s","w"),l(e,n,o._offset+o._length,c._offset+c._length,s,s,"s","e"))}if(e._context.showAxisDragHandles){if(t===o._mainSubplot){var f=o._mainLinePosition;"top"===o.side&&(f-=s),l(e,n,o._offset+.1*o._length,f,.8*o._length,s,"","ew"),l(e,n,o._offset,f,.1*o._length,s,"","w"),l(e,n,o._offset+.9*o._length,f,.1*o._length,s,"","e")}if(t===c._mainSubplot){var d=c._mainLinePosition;"right"!==c.side&&(d-=s),l(e,n,d,c._offset+.1*c._length,s,.8*c._length,"ns",""),l(e,n,d,c._offset+.9*c._length,s,.1*c._length,"s",""),l(e,n,d,c._offset,s,.1*c._length,"n","")}}});var o=r._hoverlayer.node();o.onmousemove=function(t){t.target=e._fullLayout._lasthover,a.hover(e,t,r._hoversubplot)},o.onclick=function(t){t.target=e._fullLayout._lasthover,a.click(e,t)},o.onmousedown=function(t){e._fullLayout._lasthover.onmousedown(t)},t.updateFx(e)}},t.updateFx=function(e){var t=e._fullLayout,r="pan"===t.dragmode?"move":"crosshair";o(t._draggers,r)}},36632:function(e,t,r){"use strict";var n=r(24040),a=r(3400),i=r(79811);e.exports=function(e){return function(t,r){var o=t[e];if(Array.isArray(o))for(var l=n.subplotsRegistry.cartesian,s=l.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,d=c.cartesian,h=r._has("cartesian")||r._has("gl2d"),p=0;p<o.length;p++){var y=o[p];if(a.isPlainObject(y)){var v=i.cleanId(y.xref,"x",!1),g=i.cleanId(y.yref,"y",!1),m=s.x.test(v),x=s.y.test(g);if(m||x){h||a.pushUnique(r._basePlotModules,l);var b=!1;m&&-1===u.indexOf(v)&&(u.push(v),b=!0),x&&-1===f.indexOf(g)&&(f.push(g),b=!0),b&&m&&x&&d.push(v+g)}}}}}},57952:function(e,t,r){"use strict";var n=r(33428),a=r(24040),i=r(3400),o=r(7316),l=r(43616),s=r(84888)._M,c=r(79811),u=r(33816),f=r(9616),d=i.ensureSingle;function h(e,t,r){return i.ensureSingle(e,t,r,function(e){e.datum(r)})}function p(e,t,r,i,o){for(var c,f,d,h=u.traceLayerClasses,p=e._fullLayout,y=p._modules,v=[],g=[],m=0;m<y.length;m++){var x=(c=y[m]).name,b=a.modules[x].categories;if(b.svg){var _=c.layerName||x+"layer",w=c.plot;d=(f=s(r,w))[0],r=f[1],d.length&&v.push({i:h.indexOf(_),className:_,plotMethod:w,cdModule:d}),b.zoomScale&&g.push("."+_)}}v.sort(function(e,t){return e.i-t.i});var k=t.plot.selectAll("g.mlayer").data(v,function(e){return e.className});if(k.enter().append("g").attr("class",function(e){return e.className}).classed("mlayer",!0).classed("rangeplot",t.isRangePlot),k.exit().remove(),k.order(),k.each(function(r){var a=n.select(this),s=r.className;r.plotMethod(e,t,r.cdModule,a,i,o),-1===u.clipOnAxisFalseQuery.indexOf("."+s)&&l.setClipUrl(a,t.layerClipId,e)}),p._has("scattergl")&&(c=a.getModule("scattergl"),d=s(r,c)[0],c.plot(e,t,d)),!e._context.staticPlot&&(t._hasClipOnAxisFalse&&(t.clipOnAxisFalseTraces=t.plot.selectAll(u.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),g.length)){var T=t.plot.selectAll(g.join(",")).selectAll(".trace");t.zoomScalePts=T.selectAll("path.point"),t.zoomScaleTxt=T.selectAll(".textpoint")}}function y(e,t){var r=t.plotgroup,n=t.id,a=u.layerValue2layerClass[t.xaxis.layer],i=u.layerValue2layerClass[t.yaxis.layer],o=e._fullLayout._hasOnlyLargeSploms;if(t.mainplot){var l=t.mainplotinfo,s=l.plotgroup,f=n+"-x",p=n+"-y";t.minorGridlayer=l.minorGridlayer,t.gridlayer=l.gridlayer,t.zerolinelayer=l.zerolinelayer,d(l.overlinesBelow,"path",f),d(l.overlinesBelow,"path",p),d(l.overaxesBelow,"g",f),d(l.overaxesBelow,"g",p),t.plot=d(l.overplot,"g",n),d(l.overlinesAbove,"path",f),d(l.overlinesAbove,"path",p),d(l.overaxesAbove,"g",f),d(l.overaxesAbove,"g",p),t.xlines=s.select(".overlines-"+a).select("."+f),t.ylines=s.select(".overlines-"+i).select("."+p),t.xaxislayer=s.select(".overaxes-"+a).select("."+f),t.yaxislayer=s.select(".overaxes-"+i).select("."+p)}else if(o)t.xlines=d(r,"path","xlines-above"),t.ylines=d(r,"path","ylines-above"),t.xaxislayer=d(r,"g","xaxislayer-above"),t.yaxislayer=d(r,"g","yaxislayer-above");else{var y=d(r,"g","layer-subplot");t.shapelayer=d(y,"g","shapelayer"),t.imagelayer=d(y,"g","imagelayer"),t.minorGridlayer=d(r,"g","minor-gridlayer"),t.gridlayer=d(r,"g","gridlayer"),t.zerolinelayer=d(r,"g","zerolinelayer"),d(r,"path","xlines-below"),d(r,"path","ylines-below"),t.overlinesBelow=d(r,"g","overlines-below"),d(r,"g","xaxislayer-below"),d(r,"g","yaxislayer-below"),t.overaxesBelow=d(r,"g","overaxes-below"),t.plot=d(r,"g","plot"),t.overplot=d(r,"g","overplot"),t.xlines=d(r,"path","xlines-above"),t.ylines=d(r,"path","ylines-above"),t.overlinesAbove=d(r,"g","overlines-above"),d(r,"g","xaxislayer-above"),d(r,"g","yaxislayer-above"),t.overaxesAbove=d(r,"g","overaxes-above"),t.xlines=r.select(".xlines-"+a),t.ylines=r.select(".ylines-"+i),t.xaxislayer=r.select(".xaxislayer-"+a),t.yaxislayer=r.select(".yaxislayer-"+i)}o||(h(t.minorGridlayer,"g",t.xaxis._id),h(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(e){return e[0]}).sort(c.idSort),h(t.gridlayer,"g",t.xaxis._id),h(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(e){return e[0]}).sort(c.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0)}function v(e,t){if(e){var r={};for(var a in e.each(function(e){var a=e[0];n.select(this).remove(),g(a,t),r[a]=!0}),t._plots)for(var i=t._plots[a].overlays||[],o=0;o<i.length;o++){var l=i[o];r[l.id]&&l.plot.selectAll(".trace").remove()}}}function g(e,t){t._draggers.selectAll("g."+e).remove(),t._defs.select("#clip"+t._uid+e+"plot").remove()}t.name="cartesian",t.attr=["xaxis","yaxis"],t.idRoot=["x","y"],t.idRegex=u.idRegex,t.attrRegex=u.attrRegex,t.attributes=r(26720),t.layoutAttributes=r(94724),t.supplyLayoutDefaults=r(67352),t.transitionAxes=r(73736),t.finalizeSubplots=function(e,t){var r,n,a,o=t._subplots,l=o.xaxis,s=o.yaxis,f=o.cartesian,d=f.concat(o.gl2d||[]),h={},p={};for(r=0;r<d.length;r++){var y=d[r].split("y");h[y[0]]=1,p["y"+y[1]]=1}for(r=0;r<l.length;r++)h[n=l[r]]||(a=(e[c.id2name(n)]||{}).anchor,u.idRegex.y.test(a)||(a="y"),f.push(n+a),d.push(n+a),p[a]||(p[a]=1,i.pushUnique(s,a)));for(r=0;r<s.length;r++)p[a=s[r]]||(n=(e[c.id2name(a)]||{}).anchor,u.idRegex.x.test(n)||(n="x"),f.push(n+a),d.push(n+a),h[n]||(h[n]=1,i.pushUnique(l,n)));if(!d.length){for(var v in n="",a="",e){if(u.attrRegex.test(v))"x"===v.charAt(0)?(!n||+v.substr(5)<+n.substr(5))&&(n=v):(!a||+v.substr(5)<+a.substr(5))&&(a=v)}n=n?c.name2id(n):"x",a=a?c.name2id(a):"y",l.push(n),s.push(a),f.push(n+a)}},t.plot=function(e,t,r,n){var a,i=e._fullLayout,o=i._subplots.cartesian,l=e.calcdata;if(!Array.isArray(t))for(t=[],a=0;a<l.length;a++)t.push(a);for(a=0;a<o.length;a++){for(var s,c=o[a],u=i._plots[c],f=[],d=0;d<l.length;d++){var h=l[d],y=h[0].trace;y.xaxis+y.yaxis===c&&((-1!==t.indexOf(y.index)||y.carpet)&&(s&&s[0].trace.xaxis+s[0].trace.yaxis===c&&-1!==["tonextx","tonexty","tonext"].indexOf(y.fill)&&-1===f.indexOf(s)&&f.push(s),f.push(h)),s=h)}p(e,u,f,r,n)}},t.clean=function(e,t,r,n){var a,i,o,l=n._plots||{},s=t._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(o in l)(a=l[o]).plotgroup&&a.plotgroup.remove();var f=n._has&&n._has("gl"),d=t._has&&t._has("gl");if(f&&!d)for(o in l)(a=l[o])._scene&&a._scene.destroy();if(u.xaxis&&u.yaxis){var h=c.listIds({_fullLayout:n});for(i=0;i<h.length;i++){var p=h[i];t[c.id2name(p)]||n._infolayer.selectAll(".g-"+p+"title").remove()}}var y=n._has&&n._has("cartesian"),m=t._has&&t._has("cartesian");if(y&&!m)v(n._cartesianlayer.selectAll(".subplot"),n),n._defs.selectAll(".axesclip").remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(i=0;i<u.cartesian.length;i++){var x=u.cartesian[i];if(!s[x]){var b="."+x+",."+x+"-x,."+x+"-y";n._cartesianlayer.selectAll(b).remove(),g(x,n)}}},t.drawFramework=function(e){var t=e._fullLayout,r=function(e){var t,r,n,a,i,o,l=e._fullLayout,s=l._subplots.cartesian,c=s.length,u=[],f=[];for(t=0;t<c;t++){n=s[t],a=l._plots[n],i=a.xaxis,o=a.yaxis;var d=i._mainAxis,h=o._mainAxis,p=d._id+h._id,y=l._plots[p];a.overlays=[],p!==n&&y?(a.mainplot=p,a.mainplotinfo=y,f.push(n)):(a.mainplot=void 0,a.mainplotinfo=void 0,u.push(n))}for(t=0;t<f.length;t++)n=f[t],(a=l._plots[n]).mainplotinfo.overlays.push(a);var v=u.concat(f),g=new Array(c);for(t=0;t<c;t++){n=v[t],a=l._plots[n],i=a.xaxis,o=a.yaxis;var m=[n,i.layer,o.layer,i.overlaying||"",o.overlaying||""];for(r=0;r<a.overlays.length;r++)m.push(a.overlays[r].id);g[t]=m}return g}(e),a=t._cartesianlayer.selectAll(".subplot").data(r,String);a.enter().append("g").attr("class",function(e){return"subplot "+e[0]}),a.order(),a.exit().call(v,t),a.each(function(r){var a=r[0],i=t._plots[a];i.plotgroup=n.select(this),y(e,i),i.draglayer=d(t._draggers,"g",a)})},t.rangePlot=function(e,t,r){y(e,t),p(e,t,r),o.style(e)},t.toSVG=function(e){var t=e._fullLayout._glimages,r=n.select(e).selectAll(".svg-container");r.filter(function(e,t){return t===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus").each(function(){var e=this.toDataURL("image/png");t.append("svg:image").attr({xmlns:f.svg,"xlink:href":e,preserveAspectRatio:"none",x:0,y:0,width:this.style.width,height:this.style.height})})},t.updateFx=r(42464).updateFx},94724:function(e,t,r){"use strict";var n=r(25376),a=r(22548),i=r(98192).u,o=r(92880).extendFlat,l=r(31780).templatedArray,s=r(29736).descriptionWithDates,c=r(39032).ONEDAY,u=r(33816),f=u.HOUR_PATTERN,d=u.WEEKDAY_PATTERN,h={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},p=o({},h,{values:h.values.slice().concat(["sync"])});function y(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var v={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},g={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},m={valType:"data_array",editType:"ticks"},x={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function b(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function _(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var w={valType:"color",dflt:a.defaultLine,editType:"ticks"},k={valType:"color",dflt:a.lightLine,editType:"ticks"};function T(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var M=o({},i,{editType:"ticks"}),A={valType:"boolean",editType:"ticks"};e.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:a.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:n({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[u.idRegex.x.toString(),u.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:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"calc"},rangebreaks:l("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:[d,f,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:c},editType:"calc"}),tickmode:p,nticks:y(),tick0:v,dtick:g,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:m,ticktext:{valType:"data_array",editType:"ticks"},ticks:x,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:b(),tickwidth:_(),tickcolor:w,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:o({},i,{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:n({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:s("tick label")},tickformatstops:l("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:s("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:a.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:A,gridcolor:k,gridwidth:T(),griddash:M,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:a.defaultLine,editType:"ticks"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:a.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot"},minor:{tickmode:h,nticks:y("minor"),tick0:v,dtick:g,tickvals:m,ticks:x,ticklen:b("minor"),tickwidth:_("minor"),tickcolor:w,gridcolor:k,gridwidth:T("minor"),griddash:M,showgrid:A,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks"},title:{valType:"string",editType:"ticks"},titlefont:n({editType:"ticks"})}}},67352:function(e,t,r){"use strict";var n=r(3400),a=r(76308),i=r(10624).isUnifiedHover,o=r(41008),l=r(31780),s=r(64859),c=r(94724),u=r(14944),f=r(28336),d=r(71888),h=r(37668),p=r(79811),y=p.id2name,v=p.name2id,g=r(33816).AX_ID_PATTERN,m=r(24040),x=m.traceIs,b=m.getComponentMethod;function _(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}e.exports=function(e,t,r){var m,w,k=t.autotypenumbers,T={},M={},A={},S={},L={},O={},C={},D={},P={},E={};for(m=0;m<r.length;m++){var R=r[m];if(x(R,"cartesian")||x(R,"gl2d")){var I,z;if(R.xaxis)I=y(R.xaxis),_(T,I,R);else if(R.xaxes)for(w=0;w<R.xaxes.length;w++)_(T,y(R.xaxes[w]),R);if(R.yaxis)z=y(R.yaxis),_(T,z,R);else if(R.yaxes)for(w=0;w<R.yaxes.length;w++)_(T,y(R.yaxes[w]),R);if("funnel"===R.type?"h"===R.orientation?(I&&(M[I]=!0),z&&(C[z]=!0)):z&&(A[z]=!0):"image"===R.type?(z&&(D[z]=!0),I&&(D[I]=!0)):(z&&(L[z]=!0,O[z]=!0),x(R,"carpet")&&("carpet"!==R.type||R._cheater)||I&&(S[I]=!0)),"carpet"===R.type&&R._cheater&&I&&(M[I]=!0),x(R,"2dMap")&&(P[I]=!0,P[z]=!0),x(R,"oriented"))E["h"===R.orientation?z:I]=!0}}var N=t._subplots,F=N.xaxis,j=N.yaxis,B=n.simpleMap(F,y),H=n.simpleMap(j,y),U=B.concat(H),q=a.background;F.length&&j.length&&(q=n.coerce(e,t,s,"plot_bgcolor"));var Y,V,G,Z,W,J=a.combine(q,t.paper_bgcolor);function X(){var e=T[Y]||[];W._traceIndices=e.map(function(e){return e._expandedIndex}),W._annIndices=[],W._shapeIndices=[],W._selectionIndices=[],W._imgIndices=[],W._subplotsWith=[],W._counterAxes=[],W._name=W._attr=Y,W._id=V}function K(e,t){return n.coerce(Z,W,c,e,t)}function $(e,t){return n.coerce2(Z,W,c,e,t)}function Q(e){return"x"===e?j:F}function ee(t,r){for(var n="x"===t?B:H,a=[],i=0;i<n.length;i++){var o=n[i];o===r||(e[o]||{}).overlaying||a.push(v(o))}return a}var te={x:Q("x"),y:Q("y")},re=te.x.concat(te.y),ne={},ae=[];function ie(){var e=Z.matches;g.test(e)&&-1===re.indexOf(e)&&(ne[e]=Z.type,ae=Object.keys(ne))}var oe=o(e,t),le=i(oe);for(m=0;m<U.length;m++){Y=U[m],V=v(Y),G=Y.charAt(0),n.isPlainObject(e[Y])||(e[Y]={}),Z=e[Y],W=l.newContainer(t,Y,G+"axis"),X();var se="x"===G&&!S[Y]&&M[Y]||"y"===G&&!L[Y]&&A[Y],ce="y"===G&&(!O[Y]&&C[Y]||D[Y]),ue={hasMinor:!0,letter:G,font:t.font,outerTicks:P[Y],showGrid:!E[Y],data:T[Y]||[],bgColor:J,calendar:t.calendar,automargin:!0,visibleDflt:se,reverseDflt:ce,autotypenumbersDflt:k,splomStash:((t._splomAxes||{})[G]||{})[V],noAutotickangles:"y"===G};K("uirevision",t.uirevision),u(Z,W,K,ue),f(Z,W,K,ue,t);var fe=le&&G===oe.charAt(0),de=$("spikecolor",le?W.color:void 0),he=$("spikethickness",le?1.5:void 0),pe=$("spikedash",le?"dot":void 0),ye=$("spikemode",le?"across":void 0),ve=$("spikesnap");K("showspikes",!!(fe||de||he||pe||ye||ve))||(delete W.spikecolor,delete W.spikethickness,delete W.spikedash,delete W.spikemode,delete W.spikesnap);var ge=y(Z.overlaying),me=[0,1];if(void 0!==t[ge]){var xe=y(t[ge].anchor);void 0!==t[xe]&&(me=t[xe].domain)}h(Z,W,K,{letter:G,counterAxes:te[G],overlayableAxes:ee(G,Y),grid:t.grid,overlayingDomain:me}),K("title.standoff"),ie(),W._input=Z}for(m=0;m<ae.length;){V=ae[m++],G=(Y=y(V)).charAt(0),n.isPlainObject(e[Y])||(e[Y]={}),Z=e[Y],W=l.newContainer(t,Y,G+"axis"),X();var be={letter:G,font:t.font,outerTicks:P[Y],showGrid:!E[Y],data:[],bgColor:J,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:k,splomStash:((t._splomAxes||{})[G]||{})[V]};K("uirevision",t.uirevision),W.type=ne[V]||"linear",f(Z,W,K,be,t),h(Z,W,K,{letter:G,counterAxes:te[G],overlayableAxes:ee(G,Y),grid:t.grid}),K("fixedrange"),ie(),W._input=Z}var _e=b("rangeslider","handleDefaults"),we=b("rangeselector","handleDefaults");for(m=0;m<B.length;m++)Y=B[m],Z=e[Y],W=t[Y],_e(e,t,Y),"date"===W.type&&we(Z,W,t,H,W.calendar),K("fixedrange");for(m=0;m<H.length;m++){Y=H[m],Z=e[Y],W=t[Y];var ke=t[y(W.anchor)];K("fixedrange",b("rangeslider","isVisible")(ke))}d.handleDefaults(e,t,{axIds:re.concat(ae).sort(p.idSort),axHasImage:D})}},42136:function(e,t,r){"use strict";var n=r(49760).mix,a=r(22548),i=r(3400);e.exports=function(e,t,r,o){var l=(o=o||{}).dfltColor;function s(r,n){return i.coerce2(e,t,o.attributes,r,n)}var c=s("linecolor",l),u=s("linewidth");r("showline",o.showLine||!!c||!!u)||(delete t.linecolor,delete t.linewidth);var f=s("gridcolor",n(l,o.bgColor,o.blend||a.lightFraction).toRgbString()),d=s("gridwidth"),h=s("griddash");if(r("showgrid",o.showGrid||!!f||!!d||!!h)||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),o.hasMinor){var p=s("minor.gridcolor",n(t.gridcolor,o.bgColor,67).toRgbString()),y=s("minor.gridwidth",t.gridwidth||1),v=s("minor.griddash",t.griddash||"solid");r("minor.showgrid",!!p||!!y||!!v)||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!o.noZeroLine){var g=s("zerolinecolor",l),m=s("zerolinewidth");r("zeroline",o.showGrid||!!g||!!m)||(delete t.zerolinecolor,delete t.zerolinewidth)}}},37668:function(e,t,r){"use strict";var n=r(38248),a=r(3400);e.exports=function(e,t,r,i){var o,l,s,c,u,f,d=i.counterAxes||[],h=i.overlayableAxes||[],p=i.letter,y=i.grid,v=i.overlayingDomain;y&&(l=y._domains[p][y._axisMap[t._id]],o=y._anchors[t._id],l&&(s=y[p+"side"].split(" ")[0],c=y.domain[p]["right"===s||"top"===s?1:0])),l=l||[0,1],o=o||(n(e.position)?"free":d[0]||"free"),s=s||("x"===p?"bottom":"left"),c=c||0,u=0,f=!1;var g=a.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(d),dflt:o}},"anchor"),m=a.coerce(e,t,{side:{valType:"enumerated",values:"x"===p?["bottom","top"]:["left","right"],dflt:s}},"side");if("free"===g){if("y"===p)r("autoshift")&&(c="left"===m?v[0]:v[1],f=!t.automargin||t.automargin,u="left"===m?-3:3),r("shift",u);r("position",c)}r("automargin",f);var x=!1;if(h.length&&(x=a.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(h),dflt:!1}},"overlaying")),!x){var b=r("domain",l);b[0]>b[1]-1/4096&&(t.domain=l),a.noneOrAll(e.domain,t.domain,l),"sync"===t.tickmode&&(t.tickmode="auto")}return r("layer"),t}},42568:function(e,t,r){"use strict";var n=r(85024);e.exports=function(e,t,r,a,i){i||(i={});var o=i.tickSuffixDflt,l=n(e);r("tickprefix")&&r("showtickprefix",l),r("ticksuffix",o)&&r("showticksuffix",l)}},96312:function(e,t,r){"use strict";var n=r(76808);e.exports=function(e,t,r,a){var i=t._template||{},o=t.type||i.type||"-";r("minallowed"),r("maxallowed");var l,s=r("range");s||(a.noInsiderange||"log"===o||(!(l=r("insiderange"))||null!==l[0]&&null!==l[1]||(t.insiderange=!1,l=void 0),l&&(s=r("range",l))));var c,u=t.getAutorangeDflt(s,a),f=r("autorange",u);!s||(null!==s[0]||null!==s[1])&&(null!==s[0]&&null!==s[1]||"reversed"!==f&&!0!==f)&&(null===s[0]||"min"!==f&&"max reversed"!==f)&&(null===s[1]||"max"!==f&&"min reversed"!==f)||(s=void 0,delete t.range,t.autorange=!0,c=!0),c||(f=r("autorange",u=t.getAutorangeDflt(s,a))),f&&(n(r,f,s),"linear"!==o&&"-"!==o||r("rangemode")),t.cleanRange()}},21160:function(e,t,r){"use strict";var n=r(84284).FROM_BL;e.exports=function(e,t,r){void 0===r&&(r=n[e.constraintoward||"center"]);var a=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=a[0]+(a[1]-a[0])*r;e.range=e._input.range=[e.l2r(i+(a[0]-i)*t),e.l2r(i+(a[1]-i)*t)],e.setScale()}},78344:function(e,t,r){"use strict";var n=r(33428),a=r(94336).E9,i=r(3400),o=i.numberFormat,l=r(38248),s=i.cleanNumber,c=i.ms2DateTime,u=i.dateTime2ms,f=i.ensureNumber,d=i.isArrayOrTypedArray,h=r(39032),p=h.FP_SAFE,y=h.BADNUM,v=h.LOG_CLIP,g=h.ONEWEEK,m=h.ONEDAY,x=h.ONEHOUR,b=h.ONEMIN,_=h.ONESEC,w=r(79811),k=r(33816),T=k.HOUR_PATTERN,M=k.WEEKDAY_PATTERN;function A(e){return Math.pow(10,e)}function S(e){return null!=e}e.exports=function(e,t){t=t||{};var r=e._id||"x",h=r.charAt(0);function L(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var n=e.range[0],a=e.range[1];return.5*(n+a-2*v*Math.abs(n-a))}return y}function O(t,r,n,a){if((a||{}).msUTC&&l(t))return+t;var o=u(t,n||e.calendar);if(o===y){if(!l(t))return y;t=+t;var s=Math.floor(10*i.mod(t+.05,1)),c=Math.round(t-s/10);o=u(new Date(c))+s/10}return o}function C(t,r,n){return c(t,r,n||e.calendar)}function D(t){return e._categories[Math.round(t)]}function P(t){if(S(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"==typeof t?String(t):t);var r=e._categories.length-1;return e._categoriesMap[t]=r,r}return y}function E(t){if(e._categoriesMap)return e._categoriesMap[t]}function R(e){var t=E(e);return void 0!==t?t:l(e)?+e:void 0}function I(e){return l(e)?+e:E(e)}function z(e,t,r){return n.round(r+t*e,2)}function N(e,t,r){return(e-r)/t}var F=function(t){return l(t)?z(t,e._m,e._b):y},j=function(t){return N(t,e._m,e._b)};if(e.rangebreaks){var B="y"===h;F=function(t){if(!l(t))return y;var r=e._rangebreaks.length;if(!r)return z(t,e._m,e._b);var n=B;e.range[0]>e.range[1]&&(n=!n);for(var a=n?-1:1,i=a*t,o=0,s=0;s<r;s++){var c=a*e._rangebreaks[s].min,u=a*e._rangebreaks[s].max;if(i<c)break;if(!(i>u)){o=i<(c+u)/2?s:s+1;break}o=s+1}var f=e._B[o]||0;return isFinite(f)?z(t,e._m2,f):0},j=function(t){var r=e._rangebreaks.length;if(!r)return N(t,e._m,e._b);for(var n=0,a=0;a<r&&!(t<e._rangebreaks[a].pmin);a++)t>e._rangebreaks[a].pmax&&(n=a+1);return N(t,e._m2,e._B[n])}}e.c2l="log"===e.type?L:f,e.l2c="log"===e.type?A:f,e.l2p=F,e.p2l=j,e.c2p="log"===e.type?function(e,t){return F(L(e,t))}:F,e.p2c="log"===e.type?function(e){return A(j(e))}:j,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=s,e.c2d=e.c2r=e.l2d=e.l2r=f,e.d2p=e.r2p=function(t){return e.l2p(s(t))},e.p2d=e.p2r=j,e.cleanPos=f):"log"===e.type?(e.d2r=e.d2l=function(e,t){return L(s(e),t)},e.r2d=e.r2c=function(e){return A(s(e))},e.d2c=e.r2l=s,e.c2d=e.l2r=f,e.c2r=L,e.l2d=A,e.d2p=function(t,r){return e.l2p(e.d2r(t,r))},e.p2d=function(e){return A(j(e))},e.r2p=function(t){return e.l2p(s(t))},e.p2r=j,e.cleanPos=f):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=O,e.c2d=e.c2r=e.l2d=e.l2r=C,e.d2p=e.r2p=function(t,r,n){return e.l2p(O(t,0,n))},e.p2d=e.p2r=function(e,t,r){return C(j(e),t,r)},e.cleanPos=function(t){return i.cleanDate(t,y,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=P,e.r2d=e.c2d=e.l2d=D,e.d2r=e.d2l_noadd=R,e.r2c=function(t){var r=I(t);return void 0!==r?r:e.fraction2r(.5)},e.l2r=e.c2r=f,e.r2l=I,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return D(j(e))},e.r2p=e.d2p,e.p2r=j,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:f(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=D,e.d2r=e.d2l_noadd=R,e.r2c=function(t){var r=R(t);return void 0!==r?r:e.fraction2r(.5)},e.r2c_just_indices=E,e.l2r=e.c2r=f,e.r2l=R,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return D(j(e))},e.r2p=e.d2p,e.p2r=j,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:f(e)},e.setupMultiCategory=function(n){var a,o,l=e._traceIndices,s=e._matchGroup;if(s&&0===e._categories.length)for(var c in s)if(c!==r){var u=t[w.id2name(c)];l=l.concat(u._traceIndices)}var f=[[0,{}],[0,{}]],p=[];for(a=0;a<l.length;a++){var y=n[l[a]];if(h in y){var v=y[h],g=y._length||i.minRowLength(v);if(d(v[0])&&d(v[1]))for(o=0;o<g;o++){var m=v[0][o],x=v[1][o];S(m)&&S(x)&&(p.push([m,x]),m in f[0][1]||(f[0][1][m]=f[0][0]++),x in f[1][1]||(f[1][1][x]=f[1][0]++))}}}for(p.sort(function(e,t){var r=f[0][1],n=r[e[0]]-r[t[0]];if(n)return n;var a=f[1][1];return a[e[1]]-a[t[1]]}),a=0;a<p.length;a++)P(p[a])}),e.fraction2r=function(t){var r=e.r2l(e.range[0]),n=e.r2l(e.range[1]);return e.l2r(r+t*(n-r))},e.r2fraction=function(t){var r=e.r2l(e.range[0]),n=e.r2l(e.range[1]);return(e.r2l(t)-r)/(n-r)},e.limitRange=function(t){var r=e.minallowed,n=e.maxallowed;if(void 0!==r||void 0!==n){t||(t="range");var a=i.nestedProperty(e,t).get(),o=i.simpleMap(a,e.r2l),l=o[1]<o[0];l&&o.reverse();var s=i.simpleMap([r,n],e.r2l);if(void 0!==r&&o[0]<s[0]&&(a[l?1:0]=r),void 0!==n&&o[1]>s[1]&&(a[l?0:1]=n),a[0]===a[1]){var c=e.l2r(r),u=e.l2r(n);if(void 0!==r){var f=c+1;void 0!==n&&(f=Math.min(f,u)),a[l?1:0]=f}if(void 0!==n){var d=u+1;void 0!==r&&(d=Math.max(d,c)),a[l?0:1]=d}}}},e.cleanRange=function(t,r){e._cleanRange(t,r),e.limitRange(t)},e._cleanRange=function(t,r){r||(r={}),t||(t="range");var n,a,o=i.nestedProperty(e,t).get();if(a=(a="date"===e.type?i.dfltRange(e.calendar):"y"===h?k.DFLTRANGEY:"realaxis"===e._name?[0,1]:r.dfltRange||k.DFLTRANGEX).slice(),"tozero"!==e.rangemode&&"nonnegative"!==e.rangemode||(a[0]=0),o&&2===o.length){var s=null===o[0],c=null===o[1];for("date"!==e.type||e.autorange||(o[0]=i.cleanDate(o[0],y,e.calendar),o[1]=i.cleanDate(o[1],y,e.calendar)),n=0;n<2;n++)if("date"===e.type){if(!i.isDateTime(o[n],e.calendar)){e[t]=a;break}if(e.r2l(o[0])===e.r2l(o[1])){var u=i.constrain(e.r2l(o[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);o[0]=e.l2r(u-1e3),o[1]=e.l2r(u+1e3);break}}else{if(!l(o[n])){if(s||c||!l(o[1-n])){e[t]=a;break}o[n]=o[1-n]*(n?10:.1)}if(o[n]<-p?o[n]=-p:o[n]>p&&(o[n]=p),o[0]===o[1]){var f=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=f,o[1]+=f}}}else i.nestedProperty(e,t).set(a)},e.setScale=function(r){var n=t._size;if(e.overlaying){var a=w.getFromId({_fullLayout:t},e.overlaying);e.domain=a.domain}var i=r&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var l,s,c=e.r2l(e[i][0],o),u=e.r2l(e[i][1],o),f="y"===h;if((f?(e._offset=n.t+(1-e.domain[1])*n.h,e._length=n.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=n.l+e.domain[0]*n.w,e._length=n.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks)&&(e._rangebreaks=e.locateBreaks(Math.min(c,u),Math.max(c,u)),e._rangebreaks.length)){for(l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._lBreaks+=Math.abs(s.max-s.min);var d=f;c>u&&(d=!d),d&&e._rangebreaks.reverse();var p=d?-1:1;for(e._m2=p*e._length/(Math.abs(u-c)-e._lBreaks),e._B.push(-e._m2*(f?u:c)),l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._B.push(e._B[e._B.length-1]-p*e._m2*(s.max-s.min));for(l=0;l<e._rangebreaks.length;l++)(s=e._rangebreaks[l]).pmin=F(s.min),s.pmax=F(s.max)}if(!isFinite(e._m)||!isFinite(e._b)||e._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},e.maskBreaks=function(t){var r,n,a,o,l,c=e.rangebreaks||[];c._cachedPatterns||(c._cachedPatterns=c.map(function(t){return t.enabled&&t.bounds?i.simpleMap(t.bounds,t.pattern?s:e.d2c):null})),c._cachedValues||(c._cachedValues=c.map(function(t){return t.enabled&&t.values?i.simpleMap(t.values,e.d2c).sort(i.sorterAsc):null}));for(var u=0;u<c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var d=f.pattern;switch(n=(r=c._cachedPatterns[u])[0],a=r[1],d){case M:o=(l=new Date(t)).getUTCDay(),n>a&&(a+=7,o<n&&(o+=7));break;case T:o=(l=new Date(t)).getUTCHours()+(l.getUTCMinutes()/60+l.getUTCSeconds()/3600+l.getUTCMilliseconds()/36e5),n>a&&(a+=24,o<n&&(o+=24));break;case"":o=t}if(o>=n&&o<a)return y}else for(var h=c._cachedValues[u],p=0;p<h.length;p++)if(a=(n=h[p])+f.dvalue,t>=n&&t<a)return y}return t},e.locateBreaks=function(t,r){var n,a,o,l,c=[];if(!e.rangebreaks)return c;var u=e.rangebreaks.slice().sort(function(e,t){return e.pattern===M&&t.pattern===T?-1:t.pattern===M&&e.pattern===T?1:0}),f=function(e,n){if((e=i.constrain(e,t,r))!==(n=i.constrain(n,t,r))){for(var a=!0,o=0;o<c.length;o++){var l=c[o];e<l.max&&n>=l.min&&(e<l.min&&(l.min=e),n>l.max&&(l.max=n),a=!1)}a&&c.push({min:e,max:n})}};for(n=0;n<u.length;n++){var d=u[n];if(d.enabled)if(d.bounds){var h=t,p=r;d.pattern&&(h=Math.floor(h)),o=(a=i.simpleMap(d.bounds,d.pattern?s:e.r2l))[0],l=a[1];var y,v,w=new Date(h);switch(d.pattern){case M:v=g,y=(l-o+(l<o?7:0))*m,h+=o*m-(w.getUTCDay()*m+w.getUTCHours()*x+w.getUTCMinutes()*b+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;case T:v=m,y=(l-o+(l<o?24:0))*x,h+=o*x-(w.getUTCHours()*x+w.getUTCMinutes()*b+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;default:h=Math.min(a[0],a[1]),y=v=(p=Math.max(a[0],a[1]))-h}for(var k=h;k<p;k+=v)f(k,k+y)}else for(var A=i.simpleMap(d.values,e.d2c),S=0;S<A.length;S++)f(o=A[S],l=o+d.dvalue)}return c.sort(function(e,t){return e.min-t.min}),c},e.makeCalcdata=function(t,r,n){var a,o,l,s,c=e.type,u="date"===c&&t[r+"calendar"];if(r in t){if(a=t[r],s=t._length||i.minRowLength(a),i.isTypedArray(a)&&("linear"===c||"log"===c)){if(s===a.length)return a;if(a.subarray)return a.subarray(0,s)}if("multicategory"===c)return function(e,t){for(var r=new Array(t),n=0;n<t;n++){var a=(e[0]||[])[n],i=(e[1]||[])[n];r[n]=E([a,i])}return r}(a,s);for(o=new Array(s),l=0;l<s;l++)o[l]=e.d2c(a[l],0,u,n)}else{var f=r+"0"in t?e.d2c(t[r+"0"],0,u):0,d=t["d"+r]?Number(t["d"+r]):1;for(a=t[{x:"y",y:"x"}[r]],s=t._length||a.length,o=new Array(s),l=0;l<s;l++)o[l]=f+l*d}if(e.rangebreaks)for(l=0;l<s;l++)o[l]=e.maskBreaks(o[l]);return o},e.isValidRange=function(t,r){return Array.isArray(t)&&2===t.length&&(r&&null===t[0]||l(e.r2l(t[0])))&&(r&&null===t[1]||l(e.r2l(t[1])))},e.getAutorangeDflt=function(t,r){var n=!e.isValidRange(t,"nullOk");return n&&r&&r.reverseDflt?n="reversed":t&&(null===t[0]&&null===t[1]?n=!0:null===t[0]&&null!==t[1]?n="min":null!==t[0]&&null===t[1]&&(n="max")),n},e.isReversed=function(){var t=e.autorange;return"reversed"===t||"min reversed"===t||"max reversed"===t},e.isPtWithinRange=function(t,r){var n=e.c2l(t[h],null,r),a=e.r2l(e.range[0]),i=e.r2l(e.range[1]);return a<i?a<=n&&n<=i:i<=n&&n<=a},e._emptyCategories=function(){e._categories=[],e._categoriesMap={}},e.clearCalc=function(){var r=e._matchGroup;if(r){var n=null,a=null;for(var i in r){var o=t[w.id2name(i)];if(o._categories){n=o._categories,a=o._categoriesMap;break}}n&&a?(e._categories=n,e._categoriesMap=a):e._emptyCategories()}else e._emptyCategories();if(e._initialCategories)for(var l=0;l<e._initialCategories.length;l++)P(e._initialCategories[l])},e.sortByInitialCategories=function(){var n=[];if(e._emptyCategories(),e._initialCategories)for(var a=0;a<e._initialCategories.length;a++)P(e._initialCategories[a]);n=n.concat(e._traceIndices);var i=e._matchGroup;for(var o in i)if(r!==o){var l=t[w.id2name(o)];l._categories=e._categories,l._categoriesMap=e._categoriesMap,n=n.concat(l._traceIndices)}return n};var H=t._d3locale;"date"===e.type&&(e._dateFormat=H?H.timeFormat:a,e._extraFormat=t._extraFormat),e._separators=t.separators,e._numFormat=H?H.numberFormat:o,delete e._minDtick,delete e._forceTick0}},85024:function(e){"use strict";e.exports=function(e){var t=["showexponent","showtickprefix","showticksuffix"].filter(function(t){return void 0!==e[t]});if(t.every(function(r){return e[r]===e[t[0]]})||1===t.length)return e[t[0]]}},95936:function(e,t,r){"use strict";var n=r(3400),a=r(76308).contrast,i=r(94724),o=r(85024),l=r(51272);function s(e,t){function r(r,a){return n.coerce(e,t,i.tickformatstops,r,a)}r("enabled")&&(r("dtickrange"),r("value"))}e.exports=function(e,t,r,c,u){u||(u={});var f=r("labelalias");n.isPlainObject(f)||delete t.labelalias;var d=o(e);if(r("showticklabels")){var h=u.font||{},p=t.color,y=-1!==(t.ticklabelposition||"").indexOf("inside")?a(u.bgColor):p&&p!==i.color.dflt?p:h.color;if(n.coerceFont(r,"tickfont",{family:h.family,size:h.size,color:y}),u.noTicklabelstep||"multicategory"===c||"log"===c||r("ticklabelstep"),!u.noAng){var v=r("tickangle");u.noAutotickangles||"auto"!==v||r("autotickangles")}if("category"!==c){var g=r("tickformat");l(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:s}),t.tickformatstops.length||delete t.tickformatstops,u.noExp||g||"date"===c||(r("showexponent",d),r("exponentformat"),r("minexponent"),r("separatethousands"))}}}},25404:function(e,t,r){"use strict";var n=r(3400),a=r(94724);e.exports=function(e,t,r,i){var o=i.isMinor,l=o?e.minor||{}:e,s=o?t.minor:t,c=o?a.minor:a,u=o?"minor.":"",f=n.coerce2(l,s,c,"ticklen",o?.6*(t.ticklen||5):void 0),d=n.coerce2(l,s,c,"tickwidth",o?t.tickwidth||1:void 0),h=n.coerce2(l,s,c,"tickcolor",(o?t.tickcolor:void 0)||s.color);r(u+"ticks",!o&&i.outerTicks||f||d||h?"outside":"")||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}},26332:function(e,t,r){"use strict";var n=r(98728),a=r(3400).isArrayOrTypedArray,i=r(38116).isTypedArraySpec,o=r(38116).decodeTypedArraySpec;e.exports=function(e,t,r,l,s){s||(s={});var c=s.isMinor,u=c?e.minor||{}:e,f=c?t.minor:t,d=c?"minor.":"";function h(e){var t=u[e];return i(t)&&(t=o(t)),void 0!==t?t:(f._template||{})[e]}var p=h("tick0"),y=h("dtick"),v=h("tickvals"),g=r(d+"tickmode",a(v)?"array":y?"linear":"auto");if("auto"===g||"sync"===g)r(d+"nticks");else if("linear"===g){var m=f.dtick=n.dtick(y,l);f.tick0=n.tick0(p,l,t.calendar,m)}else if("multicategory"!==l){void 0===r(d+"tickvals")?f.tickmode="auto":c||r("ticktext")}}},73736:function(e,t,r){"use strict";var n=r(33428),a=r(24040),i=r(3400),o=r(43616),l=r(54460);e.exports=function(e,t,r,s){var c=e._fullLayout;if(0!==t.length){var u,f,d,h;s&&(u=s());var p=n.ease(r.easing);return e._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(h),h=null,function(){for(var r={},n=0;n<t.length;n++){var i=t[n],o=i.plotinfo.xaxis,l=i.plotinfo.yaxis;i.xr0&&(r[o._name+".range"]=i.xr0.slice()),i.yr0&&(r[l._name+".range"]=i.yr0.slice())}return a.call("relayout",e,r).then(function(){for(var e=0;e<t.length;e++)y(t[e].plotinfo)})}()}),f=Date.now(),h=window.requestAnimationFrame(function n(){d=Date.now();for(var i=Math.min(1,(d-f)/r.duration),o=p(i),l=0;l<t.length;l++)v(t[l],o);d-f>r.duration?(function(){for(var r={},n=0;n<t.length;n++){var i=t[n],o=i.plotinfo.xaxis,l=i.plotinfo.yaxis;i.xr1&&(r[o._name+".range"]=i.xr1.slice()),i.yr1&&(r[l._name+".range"]=i.yr1.slice())}u&&u(),a.call("relayout",e,r).then(function(){for(var e=0;e<t.length;e++)y(t[e].plotinfo)})}(),h=window.cancelAnimationFrame(n)):h=window.requestAnimationFrame(n)}),Promise.resolve()}function y(e){var t=e.xaxis,r=e.yaxis;c._defs.select("#"+e.clipId+"> rect").call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,r._offset).call(o.setScale,1,1);var n=e.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(o.setPointGroupScale,1,1),n.selectAll(".textpoint").call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,e)}function v(t,r){var n=t.plotinfo,a=n.xaxis,s=n.yaxis,c=a._length,u=s._length,f=!!t.xr1,d=!!t.yr1,h=[];if(f){var p=i.simpleMap(t.xr0,a.r2l),y=i.simpleMap(t.xr1,a.r2l),v=p[1]-p[0],g=y[1]-y[0];h[0]=(p[0]*(1-r)+r*y[0]-p[0])/(p[1]-p[0])*c,h[2]=c*(1-r+r*g/v),a.range[0]=a.l2r(p[0]*(1-r)+r*y[0]),a.range[1]=a.l2r(p[1]*(1-r)+r*y[1])}else h[0]=0,h[2]=c;if(d){var m=i.simpleMap(t.yr0,s.r2l),x=i.simpleMap(t.yr1,s.r2l),b=m[1]-m[0],_=x[1]-x[0];h[1]=(m[1]*(1-r)+r*x[1]-m[1])/(m[0]-m[1])*u,h[3]=u*(1-r+r*_/b),s.range[0]=a.l2r(m[0]*(1-r)+r*x[0]),s.range[1]=s.l2r(m[1]*(1-r)+r*x[1])}else h[1]=0,h[3]=u;l.drawOne(e,a,{skipTitle:!0}),l.drawOne(e,s,{skipTitle:!0}),l.redrawComponents(e,[a._id,s._id]);var w=f?c/h[2]:1,k=d?u/h[3]:1,T=f?h[0]:0,M=d?h[1]:0,A=f?h[0]/h[2]*c:0,S=d?h[1]/h[3]*u:0,L=a._offset-A,O=s._offset-S;n.clipRect.call(o.setTranslate,T,M).call(o.setScale,1/w,1/k),n.plot.call(o.setTranslate,L,O).call(o.setScale,w,k),o.setPointGroupScale(n.zoomScalePts,1/w,1/k),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/k)}l.redrawComponents(e)}},14944:function(e,t,r){"use strict";var n=r(24040).traceIs,a=r(52976);function i(e){return{v:"x",h:"y"}[e.orientation||"v"]}function o(e,t){var r=i(e),a=n(e,"box-violin"),o=n(e._fullInput||{},"candlestick");return a&&!o&&t===r&&void 0===e[r]&&void 0===e[r+"0"]}e.exports=function(e,t,r,l){r("autotypenumbers",l.autotypenumbersDflt),"-"===r("type",(l.splomStash||{}).type)&&(!function(e,t){if("-"!==e.type)return;var r,l=e._id,s=l.charAt(0);-1!==l.indexOf("scene")&&(l=s);var c=function(e,t,r){for(var n=0;n<e.length;n++){var a=e[n];if("splom"===a.type&&a._length>0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(o(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}(t,l,s);if(!c)return;if("histogram"===c.type&&s==={v:"y",h:"x"}[c.orientation||"v"])return void(e.type="linear");var u=s+"calendar",f=c[u],d={noMultiCategory:!n(c,"cartesian")||n(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(d.noMultiCategory=!0);if(d.autotypenumbers=e.autotypenumbers,o(c,s)){var h=i(c),p=[];for(r=0;r<t.length;r++){var y=t[r];n(y,"box-violin")&&(y[s+"axis"]||s)===l&&(void 0!==y[h]?p.push(y[h][0]):void 0!==y.name?p.push(y.name):p.push("text"),y[u]!==f&&(f=void 0))}e.type=a(p,f,d)}else if("splom"===c.type){var v=c.dimensions,g=v[c._axesDim[l]];g.visible&&(e.type=a(g.values,f,d))}else e.type=a(c[s]||[c[s+"0"]],f,d)}(t,l.data),"-"===t.type?t.type="linear":e.type=t.type)}},62460:function(e,t,r){"use strict";var n=r(24040),a=r(3400);function i(e,t,r){var n,i,o,l=!1;if("data"===t.type)n=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;n=e._fullLayout}return i=a.nestedProperty(n,t.prop).get(),(o=r[t.type]=r[t.type]||{}).hasOwnProperty(t.prop)&&o[t.prop]!==i&&(l=!0),o[t.prop]=i,{changed:l,value:i}}function o(e,t){var r=[],n=t[0],i={};if("string"==typeof n)i[n]=t[1];else{if(!a.isPlainObject(n))return r;i=n}return s(i,function(e,t,n){r.push({type:"layout",prop:e,value:n})},"",0),r}function l(e,t){var r,n,i,o,l=[];if(n=t[0],i=t[1],r=t[2],o={},"string"==typeof n)o[n]=i;else{if(!a.isPlainObject(n))return l;o=n,void 0===r&&(r=i)}return void 0===r&&(r=null),s(o,function(t,n,a){var i,o;if(Array.isArray(a)){o=a.slice();var s=Math.min(o.length,e.data.length);r&&(s=Math.min(s,r.length)),i=[];for(var c=0;c<s;c++)i[c]=r?r[c]:c}else o=a,i=r?r.slice():null;if(null===i)Array.isArray(o)&&(o=o[0]);else if(Array.isArray(i)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f<i.length;f++)o[f]=u}o.length=Math.min(i.length,o.length)}l.push({type:"data",prop:t,traces:i,value:o})},"",0),l}function s(e,t,r,n){Object.keys(e).forEach(function(i){var o=e[i];if("_"!==i[0]){var l=r+(n>0?".":"")+i;a.isPlainObject(o)?s(o,t,l,n+1):t(l,i,o)}})}t.manageCommandObserver=function(e,r,n,o){var l={},s=!0;r&&r._commandObserver&&(l=r._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var c=t.hasSimpleAPICommandBindings(e,n,l.lookupTable);if(r&&r._commandObserver){if(c)return l;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,l}if(c){i(e,c,l.cache),l.check=function(){if(s){var t=i(e,c,l.cache);return t.changed&&o&&void 0!==l.lookupTable[t.value]&&(l.disable(),Promise.resolve(o({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:l.lookupTable[t.value]})).then(l.enable,l.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f<u.length;f++)e._internalOn(u[f],l.check);l.remove=function(){for(var t=0;t<u.length;t++)e._removeInternalListener(u[t],l.check)}}else a.log("Unable to automatically bind plot updates to API command"),l.lookupTable={},l.remove=function(){};return l.disable=function(){s=!1},l.enable=function(){s=!0},r&&(r._commandObserver=l),l},t.hasSimpleAPICommandBindings=function(e,r,n){var a,i,o=r.length;for(a=0;a<o;a++){var l,s=r[a],c=s.method,u=s.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=t.computeAPICommandBindings(e,c,u);if(1!==f.length)return!1;if(i){if((l=f[0]).type!==i.type)return!1;if(l.prop!==i.prop)return!1;if(Array.isArray(i.traces)){if(!Array.isArray(l.traces))return!1;l.traces.sort();for(var d=0;d<i.traces.length;d++)if(i.traces[d]!==l.traces[d])return!1}else if(l.prop!==i.prop)return!1}else i=f[0],Array.isArray(i.traces)&&i.traces.sort();var h=(l=f[0]).value;if(Array.isArray(h)){if(1!==h.length)return!1;h=h[0]}n&&(n[h]=a)}return i},t.executeAPICommand=function(e,t,r){if("skip"===t)return Promise.resolve();var i=n.apiMethodRegistry[t],o=[e];Array.isArray(r)||(r=[]);for(var l=0;l<r.length;l++)o.push(r[l]);return i.apply(null,o).catch(function(e){return a.warn("API call to Plotly."+t+" rejected.",e),Promise.reject(e)})},t.computeAPICommandBindings=function(e,t,r){var n;switch(Array.isArray(r)||(r=[]),t){case"restyle":n=l(e,r);break;case"relayout":n=o(e,r);break;case"update":n=l(e,[r[0],r[2]]).concat(o(e,[r[1]]));break;case"animate":n=function(e,t){return Array.isArray(t[0])&&1===t[0].length&&-1!==["string","number"].indexOf(typeof t[0][0])?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},86968:function(e,t,r){"use strict";var n=r(92880).extendFlat;t.u=function(e,t){t=t||{};var r={valType:"info_array",editType:(e=e||{}).editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=(e.name&&e.name,e.trace,t.description&&t.description,{x:n({},r,{}),y:n({},r,{}),editType:e.editType});return e.noGridCell||(a.row={valType:"integer",min:0,dflt:0,editType:e.editType},a.column={valType:"integer",min:0,dflt:0,editType:e.editType}),a},t.Q=function(e,t,r,n){var a=n&&n.x||[0,1],i=n&&n.y||[0,1],o=t.grid;if(o){var l=r("domain.column");void 0!==l&&(l<o.columns?a=o._domains.x[l]:delete e.domain.column);var s=r("domain.row");void 0!==s&&(s<o.rows?i=o._domains.y[s]:delete e.domain.row)}var c=r("domain.x",a),u=r("domain.y",i);c[0]<c[1]||(e.domain.x=a.slice()),u[0]<u[1]||(e.domain.y=i.slice())}},25376:function(e){"use strict";e.exports=function(e){var t=e.editType,r=e.colorEditType;void 0===r&&(r=t);var n={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:r},editType:t};return e.autoSize&&(n.size.dflt="auto"),e.autoColor&&(n.color.dflt="auto"),e.arrayOk&&(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},16672:function(e){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}},84888:function(e,t,r){"use strict";var n=r(24040),a=r(33816).SUBPLOT_PATTERN;t.KY=function(e,t,r){var a=n.subplotsRegistry[t];if(!a)return[];for(var i=a.attr,o=[],l=0;l<e.length;l++){var s=e[l];s[0].trace[i]===r&&o.push(s)}return o},t._M=function(e,t){var r,a=[],i=[];if(!(r="string"==typeof t?n.getModule(t).plot:"function"==typeof t?t:t.plot))return[a,e];for(var o=0;o<e.length;o++){var l=e[o],s=l[0].trace;!0===s.visible&&0!==s._length&&(s._module&&s._module.plot===r?a.push(l):i.push(l))}return[a,i]}},94424:function(e){"use strict";function t(e,t){var r,n,a=[0,0,0,0];for(r=0;r<4;++r)for(n=0;n<4;++n)a[n]+=e[4*r+n]*t[r];return a}e.exports=function(e,r){return t(e.projection,t(e.view,t(e.model,[r[0],r[1],r[2],1])))}},64859:function(e,t,r){"use strict";var n=r(25376),a=r(85656),i=r(22548),o=r(92872),l=r(34200),s=r(66741),c=r(92880).extendFlat,u=n({editType:"calc"});u.family.dflt='"Open Sans", verdana, arial, sans-serif',u.size.dflt=12,u.color.dflt=i.defaultLine,e.exports={font:u,title:{text:{valType:"string",editType:"layoutstyle"},font:n({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:c(s({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:i.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:i.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:i.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:o.newshape,activeshape:o.activeshape,newselection:l.newselection,activeselection:l.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:c({},a.transition,{editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle"},titlefont:n({editType:"layoutstyle"})}}},66741:function(e){"use strict";e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}},7316:function(e,t,r){"use strict";var n=r(33428),a=r(94336).m_,i=r(57624).SO,o=r(38248),l=r(83160),s=r(24040),c=r(73060),u=r(31780),f=r(3400),d=r(76308),h=r(39032).BADNUM,p=r(79811),y=r(1936).clearOutline,v=r(55308),g=r(85656),m=r(16672),x=r(84888)._M,b=f.relinkPrivateKeys,_=f._,w=e.exports={};f.extendFlat(w,s),w.attributes=r(45464),w.attributes.type.values=w.allTypes,w.fontAttrs=r(25376),w.layoutAttributes=r(64859),w.fontWeight="normal";var k=w.transformsRegistry,T=r(62460);w.executeAPICommand=T.executeAPICommand,w.computeAPICommandBindings=T.computeAPICommandBindings,w.manageCommandObserver=T.manageCommandObserver,w.hasSimpleAPICommandBindings=T.hasSimpleAPICommandBindings,w.redrawText=function(e){return e=f.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(s.getComponentMethod("annotations","draw")(e),s.getComponentMethod("legend","draw")(e),s.getComponentMethod("colorbar","draw")(e),t(w.previousPromises(e)))},300)})},w.resize=function(e){var t;e=f.getGraphDiv(e);var r=new Promise(function(r,n){e&&!f.isHidden(e)||n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=r,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||f.isHidden(e))r(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,s.call("relayout",e,{autosize:!0}).then(function(){e.changed=t,e._resolveResize===r&&(delete e._resolveResize,r(e))})}},100)});return t&&t(r),r},w.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})},w.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,r=f.ensureSingle(t._paper,"text","js-plot-link-container",function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:d.defaultLine,"pointer-events":"all"}).each(function(){var e=n.select(this);e.append("tspan").classed("js-link-to-tool",!0),e.append("tspan").classed("js-link-spacer",!0),e.append("tspan").classed("js-sourcelinks",!0)})}),a=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var o=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)r.on("click",function(){w.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}(e,o),l.text(o.text()&&s.text()?" - ":"")}},w.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=n.select(e).append("div").attr("id","hiddenform").style("display","none"),a=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=w.graphJson(e,!1,"keepdata"),a.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var M=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],A=["year","month","dayMonth","dayMonthYear"];function S(e,t){var r=e._context.locale;r||(r="en-US");var n=!1,a={};function i(e){for(var r=!0,i=0;i<t.length;i++){var o=t[i];a[o]||(e[o]?a[o]=e[o]:r=!1)}r&&(n=!0)}for(var o=0;o<2;o++){for(var l=e._context.locales,c=0;c<2;c++){var u=(l[r]||{}).format;if(u&&(i(u),n))break;l=s.localeRegistry}var f=r.split("-")[0];if(n||f===r)break;r=f}return n||i(s.localeRegistry.en.format),a}function L(e,t){var r={_fullLayout:t},n="x"===e._id.charAt(0),a=e._mainAxis._anchorAxis,i="",o="",l="";if(a&&(l=a._mainAxis._id,i=n?e._id+l:l+e._id),!i||!t._plots[i]){i="";for(var s=e._counterAxes,c=0;c<s.length;c++){var u=s[c],f=n?e._id+u:u+e._id;o||(o=f);var d=p.getFromId(r,u);if(l&&d.overlaying===l){i=f;break}}}return i||o}function O(e){var t=e.transforms;if(Array.isArray(t)&&t.length)for(var r=0;r<t.length;r++){var n=t[r],a=n._module||k[n.type];if(a&&a.makesData)return!0}return!1}function C(e,t,r,n){for(var a=e.transforms,i=[e],o=0;o<a.length;o++){var l=a[o],s=k[l.type];s&&s.transform&&(i=s.transform(i,{transform:l,fullTrace:e,fullData:t,layout:r,fullLayout:n,transformIndex:o}))}return i}function D(e){return"string"==typeof e&&"px"===e.substr(e.length-2)&&parseFloat(e)}function P(e){var t=e.margin;if(!e._size){var r=e._size={l:Math.round(t.l),r:Math.round(t.r),t:Math.round(t.t),b:Math.round(t.b),p:Math.round(t.pad)};r.w=Math.round(e.width)-r.l-r.r,r.h=Math.round(e.height)-r.t-r.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={}),e._reservedMargin||(e._reservedMargin={})}w.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults)delete n._skipDefaults;else{var o,l=e._fullLayout={},c=e.layout||{},u=e._fullData||[],d=e._fullData=[],h=e.data||[],p=e.calcdata||[],v=e._context||{};e._transitionData||w.createTransitionData(e),l._dfltTitle={plot:_(e,"Click to enter Plot title"),x:_(e,"Click to enter X axis title"),y:_(e,"Click to enter Y axis title"),colorbar:_(e,"Click to enter Colorscale title"),annotation:_(e,"new text")},l._traceWord=_(e,"trace");var g=S(e,M);if(l._mapboxAccessToken=v.mapboxAccessToken,n._initialAutoSizeIsDone){var m=n.width,x=n.height;w.supplyLayoutGlobalDefaults(c,l,g),c.width||(l.width=m),c.height||(l.height=x),w.sanitizeMargins(l)}else{w.supplyLayoutGlobalDefaults(c,l,g);var k=!c.width||!c.height,T=l.autosize,L=v.autosizable;k&&(T||L)?w.plotAutoSize(e,c,l):k&&w.sanitizeMargins(l),!T&&k&&(c.width=l.width,c.height=l.height)}l._d3locale=function(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),{numberFormat:function(t){try{t=i(e).format(f.adjustFormat(t))}catch(e){return f.warnBadFormat(t),f.noFormat}return t},timeFormat:a(e).utcFormat}}(g,l.separators),l._extraFormat=S(e,A),l._initialAutoSizeIsDone=!0,l._dataLength=h.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var O=l._subplots=function(){var e,t,r=s.collectableSubplotTypes,n={};if(!r){r=[];var a=s.subplotsRegistry;for(var i in a){var o=a[i],l=o.attr;if(l&&(r.push(i),Array.isArray(l)))for(t=0;t<l.length;t++)f.pushUnique(r,l[t])}}for(e=0;e<r.length;e++)n[r[e]]=[];return n}(),C=l._splomAxes={x:{},y:{}},D=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(e,t){var r,n,a=t.length,i=[];for(r=0;r<e.length;r++){var o=e[r]._fullInput;o!==n&&i.push(o),n=o}var l=i.length,s=new Array(a),c={};function u(e,t){s[t]=e,c[e]=1}function d(e,t){if(e&&"string"==typeof e&&!c[e])return u(e,t),!0}for(r=0;r<a;r++){var h=t[r].uid;"number"==typeof h&&(h=String(h)),d(h,r)||(r<l&&d(i[r].uid,r)||u(f.randstr(c),r))}return s}(u,h),l._globalTransforms=(e._context||{}).globalTransforms,w.supplyDataDefaults(h,d,c,l);var E=Object.keys(C.x),R=Object.keys(C.y);if(E.length>1&&R.length>1){for(s.getComponentMethod("grid","sizeDefaults")(c,l),o=0;o<E.length;o++)f.pushUnique(O.xaxis,E[o]);for(o=0;o<R.length;o++)f.pushUnique(O.yaxis,R[o]);for(var I in D)f.pushUnique(O.cartesian,I)}if(l._has=w._hasPlotType.bind(l),u.length===d.length)for(o=0;o<d.length;o++)b(d[o],u[o]);w.supplyLayoutModuleDefaults(c,l,d,e._transitionData);var z=l._visibleModules,N=[];for(o=0;o<z.length;o++){var F=z[o].crossTraceDefaults;F&&f.pushUnique(N,F)}for(o=0;o<N.length;o++)N[o](d,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&&"splom"===l._basePlotModules[0].name&&E.length>15&&R.length>15&&0===l.shapes.length&&0===l.images.length,w.linkSubplots(d,l,u,n),w.cleanPlot(d,l,u,n);var j=!(!n._has||!n._has("gl2d")),B=!(!l._has||!l._has("gl2d")),H=!(!n._has||!n._has("cartesian"))||j,U=!(!l._has||!l._has("cartesian"))||B;H&&!U?n._bgLayer.remove():U&&!H&&(l._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&y({_fullLayout:n}),function(e,t){var r,n=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a<e.length;a++){var i=e[a];i.meta?n[i.index]=i._meta={meta:i.meta}:t.meta&&(i._meta={meta:t.meta}),t.meta&&(i._meta.layout={meta:t.meta})}n.length&&(r||(r=t._meta={}),r.data=n)}(d,l),b(l,n),s.getComponentMethod("colorscale","crossTraceDefaults")(d,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var q,Y=l._tracePreGUI,V={};for(q in Y)V[q]="old";for(o=0;o<d.length;o++)V[q=d[o]._fullInput.uid]||(Y[q]={}),V[q]="new";for(q in V)"old"===V[q]&&delete Y[q];P(l),s.getComponentMethod("rangeslider","makeData")(l),r||p.length!==d.length||w.supplyDefaultsUpdateCalc(p,d)}},w.supplyDefaultsUpdateCalc=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],a=(e[r]||[])[0];if(a&&a.trace){var i=a.trace;if(i._hasCalcTransform){var o,l,s,c=i._arrayAttrs;for(o=0;o<c.length;o++)l=c[o],s=f.nestedProperty(i,l).get().slice(),f.nestedProperty(n,l).set(s)}a.trace=n}}},w.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])},w._hasPlotType=function(e){var t,r=this._basePlotModules||[];for(t=0;t<r.length;t++)if(r[t].name===e)return!0;var n=this._modules||[];for(t=0;t<n.length;t++){var a=n[t].name;if(a===e)return!0;var i=s.modules[a];if(i&&i.categories[e])return!0}return!1},w.cleanPlot=function(e,t,r,n){var a,i,o=n._basePlotModules||[];for(a=0;a<o.length;a++){var l=o[a];l.clean&&l.clean(e,t,r,n)}var s=n._has&&n._has("gl"),c=t._has&&t._has("gl");s&&!c&&void 0!==n._glcontainer&&(n._glcontainer.selectAll(".gl-canvas").remove(),n._glcontainer.selectAll(".no-webgl").remove(),n._glcanvas=null);var u=!!n._infolayer;e:for(a=0;a<r.length;a++){var f=r[a].uid;for(i=0;i<e.length;i++){if(f===e[i].uid)continue e}u&&n._infolayer.select(".cb"+f).remove()}},w.linkSubplots=function(e,t,r,n){var a,i,o=n._plots||{},l=t._plots={},c=t._subplots,u={_fullData:e,_fullLayout:t},d=c.cartesian.concat(c.gl2d||[]);for(a=0;a<d.length;a++){var h,y=d[a],v=o[y],g=p.getFromId(u,y,"x"),m=p.getFromId(u,y,"y");for(v?h=l[y]=v:(h=l[y]={}).id=y,g._counterAxes.push(m._id),m._counterAxes.push(g._id),g._subplotsWith.push(y),m._subplotsWith.push(y),h.xaxis=g,h.yaxis=m,h._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var x=e[i];if(x.xaxis===h.xaxis._id&&x.yaxis===h.yaxis._id&&!1===x.cliponaxis){h._hasClipOnAxisFalse=!0;break}}}var b,_=p.list(u,null,!0);for(a=0;a<_.length;a++){var w=null;(b=_[a]).overlaying&&(w=p.getFromId(u,b.overlaying))&&w.overlaying&&(b.overlaying=!1,w=null),b._mainAxis=w||b,w&&(b.domain=w.domain.slice()),b._anchorAxis="free"===b.anchor?null:p.getFromId(u,b.anchor)}for(a=0;a<_.length;a++)if((b=_[a])._counterAxes.sort(p.idSort),b._subplotsWith.sort(f.subplotSort),b._mainSubplot=L(b,t),b._counterAxes.length&&(b.spikemode&&-1!==b.spikemode.indexOf("across")||b.automargin&&b.mirror&&"free"!==b.anchor||s.getComponentMethod("rangeslider","isVisible")(b))){var k=1,T=0;for(i=0;i<b._counterAxes.length;i++){var M=p.getFromId(u,b._counterAxes[i]);k=Math.min(k,M.domain[0]),T=Math.max(T,M.domain[1])}k<T&&(b._counterDomainMin=k,b._counterDomainMax=T)}},w.clearExpandedTraceDefaultColors=function(e){var t,r,n;for(r=[],(t=e._module._colorAttrs)||(e._module._colorAttrs=t=[],c.crawl(e._module.attributes,function(e,n,a,i){r[i]=n,r.length=i+1,"color"===e.valType&&void 0===e.dflt&&t.push(r.join("."))})),n=0;n<t.length;n++){f.nestedProperty(e,"_input."+t[n]).get()||f.nestedProperty(e,t[n]).set(null)}},w.supplyDataDefaults=function(e,t,r,n){var a,i,o,l=n._modules,c=n._visibleModules,d=n._basePlotModules,h=0,p=0;function y(e){t.push(e);var r=e._module;r&&(f.pushUnique(l,r),!0===e.visible&&f.pushUnique(c,r),f.pushUnique(d,e._module.basePlotModule),h++,!1!==e._input.visible&&p++)}n._transformModules=[];var v={},g=[],m=(r.template||{}).data||{},x=u.traceTemplater(m);for(a=0;a<e.length;a++){if(o=e[a],(i=x.newTrace(o)).uid=n._traceUids[a],w.supplyTraceDefaults(o,i,p,n,a),i.index=a,i._input=o,i._expandedIndex=h,i.transforms&&i.transforms.length)for(var _=!1!==o.visible&&!1===i.visible,k=C(i,t,r,n),T=0;T<k.length;T++){var M=k[T],A={_template:i._template,type:i.type,uid:i.uid+T};_&&!1===M.visible&&delete M.visible,w.supplyTraceDefaults(M,A,h,n,a),b(A,M),A.index=a,A._input=o,A._fullInput=i,A._expandedIndex=h,A._expandedInput=M,y(A)}else i._fullInput=i,i._expandedInput=i,y(i);s.traceIs(i,"carpetAxis")&&(v[i.carpet]=i),s.traceIs(i,"carpetDependent")&&g.push(a)}for(a=0;a<g.length;a++)if((i=t[g[a]]).visible){var S=v[i.carpet];i._carpet=S,S&&S.visible?(i.xaxis=S.xaxis,i.yaxis=S.yaxis):i.visible=!1}},w.supplyAnimationDefaults=function(e){var t;e=e||{};var r={};function n(t,n){return f.coerce(e||{},r,g,t,n)}if(n("mode"),n("direction"),n("fromcurrent"),Array.isArray(e.frame))for(r.frame=[],t=0;t<e.frame.length;t++)r.frame[t]=w.supplyAnimationFrameDefaults(e.frame[t]||{});else r.frame=w.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(r.transition=[],t=0;t<e.transition.length;t++)r.transition[t]=w.supplyAnimationTransitionDefaults(e.transition[t]||{});else r.transition=w.supplyAnimationTransitionDefaults(e.transition||{});return r},w.supplyAnimationFrameDefaults=function(e){var t={};function r(r,n){return f.coerce(e||{},t,g.frame,r,n)}return r("duration"),r("redraw"),t},w.supplyAnimationTransitionDefaults=function(e){var t={};function r(r,n){return f.coerce(e||{},t,g.transition,r,n)}return r("duration"),r("easing"),t},w.supplyFrameDefaults=function(e){var t={};function r(r,n){return f.coerce(e,t,m,r,n)}return r("group"),r("name"),r("traces"),r("baseframe"),r("data"),r("layout"),t},w.supplyTraceDefaults=function(e,t,r,n,a){var i,o=n.colorway||d.defaults,l=o[r%o.length];function c(r,n){return f.coerce(e,t,w.attributes,r,n)}var u=c("visible");c("type"),c("name",n._traceWord+" "+a),c("uirevision",n.uirevision);var h=w.getModule(t);if(t._module=h,h){var p=h.basePlotModule,y=p.attr,v=p.attributes;if(y&&v){var g=n._subplots,m="";if(u||"gl2d"!==p.name){if(Array.isArray(y))for(i=0;i<y.length;i++){var x=y[i],b=f.coerce(e,t,v,x);g[x]&&f.pushUnique(g[x],b),m+=b}else m=f.coerce(e,t,v,y);g[p.name]&&f.pushUnique(g[p.name],m)}}}if(u){if(c("customdata"),c("ids"),c("meta"),s.traceIs(t,"showLegend")?(f.coerce(e,t,h.attributes.showlegend?h.attributes:w.attributes,"showlegend"),c("legend"),c("legendwidth"),c("legendgroup"),c("legendgrouptitle.text"),c("legendrank"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,h&&h.supplyDefaults(e,t,l,n),s.traceIs(t,"noOpacity")||c("opacity"),s.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),s.traceIs(t,"noHover")||(t.hovertemplate||f.coerceHoverinfo(e,t,n),"parcats"!==t.type&&s.getComponentMethod("fx","supplyDefaults")(e,t,l,n)),h&&h.selectPoints){var _=c("selectedpoints");f.isTypedArray(_)&&(t.selectedpoints=Array.from(_))}w.supplyTransformDefaults(e,t,n)}return t},w.hasMakesDataTransform=O,w.supplyTransformDefaults=function(e,t,r){if(t._length||O(e)){var n=r._globalTransforms||[],a=r._transformModules||[];if(Array.isArray(e.transforms)||0!==n.length)for(var i=e.transforms||[],o=n.concat(i),l=t.transforms=[],s=0;s<o.length;s++){var c,u=o[s],d=u.type,h=k[d],p=!(u._module&&u._module===h),y=h&&"function"==typeof h.transform;h||f.warn("Unrecognized transform type "+d+"."),h&&h.supplyDefaults&&(p||y)?((c=h.supplyDefaults(u,t,r,e)).type=d,c._module=h,f.pushUnique(a,h)):c=f.extendFlat({},u),l.push(c)}}},w.supplyLayoutGlobalDefaults=function(e,t,r){function n(r,n){return f.coerce(e,t,w.layoutAttributes,r,n)}var a=e.template;f.isPlainObject(a)&&(t.template=a,t._template=a.layout,t._dataTemplate=a.data),n("autotypenumbers");var i=f.coerceFont(n,"font"),o=i.size;f.coerceFont(n,"title.font",f.extendFlat({},i,{size:Math.round(1.4*o)})),n("title.text",t._dfltTitle.plot),n("title.xref");var l=n("title.yref");n("title.pad.t"),n("title.pad.r"),n("title.pad.b"),n("title.pad.l");var c=n("title.automargin");n("title.x"),n("title.xanchor"),n("title.y"),n("title.yanchor"),c&&("paper"===l&&(0!==t.title.y&&(t.title.y=1),"auto"===t.title.yanchor&&(t.title.yanchor=0===t.title.y?"top":"bottom")),"container"===l&&("auto"===t.title.y&&(t.title.y=1),"auto"===t.title.yanchor&&(t.title.yanchor=t.title.y<.5?"bottom":"top"))),n("uniformtext.mode")&&n("uniformtext.minsize"),n("autosize",!(e.width&&e.height)),n("width"),n("height"),n("minreducedwidth"),n("minreducedheight"),n("margin.l"),n("margin.r"),n("margin.t"),n("margin.b"),n("margin.pad"),n("margin.autoexpand"),e.width&&e.height&&w.sanitizeMargins(t),s.getComponentMethod("grid","sizeDefaults")(e,t),n("paper_bgcolor"),n("separators",r.decimal+r.thousands),n("hidesources"),n("colorway"),n("datarevision");var u=n("uirevision");n("editrevision",u),n("selectionrevision",u),s.getComponentMethod("modebar","supplyLayoutDefaults")(e,t),s.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,n),s.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,t,n),n("meta"),f.isPlainObject(e.transition)&&(n("transition.duration"),n("transition.easing"),n("transition.ordering")),s.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),s.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,n),f.coerce(e,t,v,"scattermode")},w.plotAutoSize=function(e,t,r){var n,a,i=e._context||{},l=i.frameMargins,s=f.isPlotDiv(e);if(s&&e.emit("plotly_autosize"),i.fillFrame)n=window.innerWidth,a=window.innerHeight,document.body.style.overflow="hidden";else{var c=s?window.getComputedStyle(e):{};if(n=D(c.width)||D(c.maxWidth)||r.width,a=D(c.height)||D(c.maxHeight)||r.height,o(l)&&l>0){var u=1-2*l;n=Math.round(u*n),a=Math.round(u*a)}}var d=w.layoutAttributes.width.min,h=w.layoutAttributes.height.min;n<d&&(n=d),a<h&&(a=h);var p=!t.width&&Math.abs(r.width-n)>1,y=!t.height&&Math.abs(r.height-a)>1;(y||p)&&(p&&(r.width=n),y&&(r.height=a)),e._initialAutoSize||(e._initialAutoSize={width:n,height:a}),w.sanitizeMargins(r)},w.supplyLayoutModuleDefaults=function(e,t,r,n){var a,i,o,l=s.componentsRegistry,c=t._basePlotModules,u=s.subplotsRegistry.cartesian;for(a in l)(o=l[a]).includeBasePlot&&o.includeBasePlot(e,t);for(var d in c.length||c.push(u),t._has("cartesian")&&(s.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t)),t._subplots)t._subplots[d].sort(f.subplotSort);for(i=0;i<c.length;i++)(o=c[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r);var h=t._modules;for(i=0;i<h.length;i++)(o=h[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r);var p=t._transformModules;for(i=0;i<p.length;i++)(o=p[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r,n);for(a in l)(o=l[a]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r)},w.purge=function(e){var t=e._fullLayout||{};void 0!==t._glcontainer&&(t._glcontainer.selectAll(".gl-canvas").remove(),t._glcontainer.remove(),t._glcanvas=null),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),f.clearThrottle(),f.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()},w.style=function(e){var t,r=e._fullLayout._visibleModules,n=[];for(t=0;t<r.length;t++){var a=r[t];a.style&&f.pushUnique(n,a.style)}for(t=0;t<n.length;t++)n[t](e)},w.sanitizeMargins=function(e){if(e&&e.margin){var t,r=e.width,n=e.height,a=e.margin,i=r-(a.l+a.r),o=n-(a.t+a.b);i<0&&(t=(r-1)/(a.l+a.r),a.l=Math.floor(t*a.l),a.r=Math.floor(t*a.r)),o<0&&(t=(n-1)/(a.t+a.b),a.t=Math.floor(t*a.t),a.b=Math.floor(t*a.b))}},w.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}},w.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1};w.autoMargin=function(e,t,r){var n=e._fullLayout,a=n.width,i=n.height,o=n.margin,l=n.minreducedwidth,s=n.minreducedheight,c=f.constrain(a-o.l-o.r,2,l),u=f.constrain(i-o.t-o.b,2,s),d=Math.max(0,a-c),h=Math.max(0,i-u),p=n._pushmargin,y=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var v=r.pad;if(void 0===v&&(v=Math.min(12,o.l,o.r,o.t,o.b)),d){var g=(r.l+r.r)/d;g>1&&(r.l/=g,r.r/=g)}if(h){var m=(r.t+r.b)/h;m>1&&(r.t/=m,r.b/=m)}var x=void 0!==r.xl?r.xl:r.x,b=void 0!==r.xr?r.xr:r.x,_=void 0!==r.yt?r.yt:r.y,k=void 0!==r.yb?r.yb:r.y;p[t]={l:{val:x,size:r.l+v},r:{val:b,size:r.r+v},b:{val:k,size:r.b+v},t:{val:_,size:r.t+v}},y[t]=1}else delete p[t],delete y[t];if(!n._replotting)return w.doAutoMargin(e)}},w.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),P(t);var a=t._size,i=t.margin,l={t:0,b:0,l:0,r:0},c=f.extendFlat({},a),u=i.l,d=i.r,h=i.t,y=i.b,v=t._pushmargin,g=t._pushmarginIds,m=t.minreducedwidth,x=t.minreducedheight;if(!1!==i.autoexpand){for(var b in v)g[b]||delete v[b];var _=e._fullLayout._reservedMargin;for(var k in _)for(var T in _[k]){var M=_[k][T];l[T]=Math.max(l[T],M)}for(var A in v.base={l:{val:0,size:u},r:{val:1,size:d},t:{val:1,size:h},b:{val:0,size:y}},l){var S=0;for(var L in v)"base"!==L&&o(v[L][A].size)&&(S=v[L][A].size>S?v[L][A].size:S);var O=Math.max(0,i[A]-S);l[A]=Math.max(0,l[A]-O)}for(var C in v){var D=v[C].l||{},E=v[C].b||{},R=D.val,I=D.size,z=E.val,N=E.size,F=r-l.r-l.l,j=n-l.t-l.b;for(var B in v){if(o(I)&&v[B].r){var H=v[B].r.val,U=v[B].r.size;if(H>R){var q=(I*H+(U-F)*R)/(H-R),Y=(U*(1-R)+(I-F)*(1-H))/(H-R);q+Y>u+d&&(u=q,d=Y)}}if(o(N)&&v[B].t){var V=v[B].t.val,G=v[B].t.size;if(V>z){var Z=(N*V+(G-j)*z)/(V-z),W=(G*(1-z)+(N-j)*(1-V))/(V-z);Z+W>y+h&&(y=Z,h=W)}}}}}var J=f.constrain(r-i.l-i.r,2,m),X=f.constrain(n-i.t-i.b,2,x),K=Math.max(0,r-J),$=Math.max(0,n-X);if(K){var Q=(u+d)/K;Q>1&&(u/=Q,d/=Q)}if($){var ee=(y+h)/$;ee>1&&(y/=ee,h/=ee)}if(a.l=Math.round(u)+l.l,a.r=Math.round(d)+l.r,a.t=Math.round(h)+l.t,a.b=Math.round(y)+l.b,a.p=Math.round(i.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!t._replotting&&(w.didMarginChange(c,a)||function(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=p.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var te=3*(1+Object.keys(g).length);if(t._redrawFromAutoMarginCount<te)return s.call("_doPlot",e);t._size=c,f.warn("Too many auto-margin redraws.")}!function(e){var t=p.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(e){for(var r=0;r<t.length;r++){var n=t[r][e];n&&n()}})}(e)};var E=["l","r","t","b","p","w","h"];function R(e,t,r){var n=!1;var a=[w.previousPromises,function(){if(e._transitionData)return e._transitioning=!1,function(e){var t=Promise.resolve();if(!e)return t;for(;e.length;)t=t.then(e.shift());return t}(e._transitionData._interruptCallbacks)},r.prepareFn,w.rehover,w.reselect,function(){return e.emit("plotly_transitioning",[]),new Promise(function(a){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return s.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var i=0,o=0;function l(){return i++,function(){var t;o++,n||o!==i||(t=a,e._transitionData&&(function(e){if(e)for(;e.length;)e.shift()}(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return s.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(t)))}}r.runFn(l),setTimeout(l())})}],i=f.syncOrAsync(a,e);return i&&i.then||(i=Promise.resolve()),i.then(function(){return e})}w.didMarginChange=function(e,t){for(var r=0;r<E.length;r++){var n=E[r],a=e[n],i=t[n];if(!o(a)||Math.abs(i-a)>1)return!0}return!1},w.graphJson=function(e,t,r,n,a,i){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&w.supplyDefaults(e);var o=a?e._fullData:e.data,s=a?e._fullLayout:e.layout,c=(e._transitionData||{})._frames;function u(e,t){if("function"==typeof e)return t?"_function_":null;if(f.isPlainObject(e)){var n,a={};return Object.keys(e).sort().forEach(function(i){if(-1===["_","["].indexOf(i.charAt(0)))if("function"!=typeof e[i]){if("keepdata"===r){if("src"===i.substr(i.length-3))return}else if("keepstream"===r){if("string"==typeof(n=e[i+"src"])&&n.indexOf(":")>0&&!f.isPlainObject(e.stream))return}else if("keepall"!==r&&"string"==typeof(n=e[i+"src"])&&n.indexOf(":")>0)return;a[i]=u(e[i],t)}else t&&(a[i]="_function")}),a}var i=Array.isArray(e),o=f.isTypedArray(e);if((i||o)&&e.dtype&&e.shape){var s=e.bdata;return u({dtype:e.dtype,shape:e.shape,bdata:f.isArrayBuffer(s)?l.encode(s):s},t)}return i?e.map(function(e){return u(e,t)}):o?f.simpleMap(e,f.identity):f.isJSDate(e)?f.ms2DateTimeLocal(+e):e}var d={data:(o||[]).map(function(e){var r=u(e);return t&&delete r.fit,r})};if(!t&&(d.layout=u(s),a)){var h=s._size;d.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return c&&(d.frames=u(c)),i&&(d.config=u(e._context,!0)),"object"===n?d:JSON.stringify(d)},w.modifyFrames=function(e,t){var r,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r<t.length;r++)switch((n=t[r]).type){case"replace":a=n.value;var l=(i[n.index]||{}).name,s=a.name;i[n.index]=o[s]=a,s!==l&&(delete o[l],o[s]=a);break;case"insert":o[(a=n.value).name]=a,i.splice(n.index,0,a);break;case"delete":delete o[(a=i[n.index]).name],i.splice(n.index,1)}return Promise.resolve()},w.computeFrame=function(e,t){var r,n,a,i,o=e._transitionData._frameHash;if(!t)throw new Error("computeFrame must be given a string frame name");var l=o[t.toString()];if(!l)return!1;for(var s=[l],c=[l.name];l.baseframe&&(l=o[l.baseframe.toString()])&&-1===c.indexOf(l.name);)s.push(l),c.push(l.name);for(var u={};l=s.pop();)if(l.layout&&(u.layout=w.extendLayout(u.layout,l.layout)),l.data){if(u.data||(u.data=[]),!(n=l.traces))for(n=[],r=0;r<l.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r<l.data.length;r++)null!=(a=n[r])&&(-1===(i=u.traces.indexOf(a))&&(i=u.data.length,u.traces[i]=a),u.data[i]=w.extendTrace(u.data[i],l.data[r]))}return u},w.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},r=e._transitionData._frames,n=0;n<r.length;n++){var a=r[n];a&&a.name&&(t[a.name]=a)}},w.extendObjectWithContainers=function(e,t,r){var n,a,i,o,l,s,c,u=f.extendDeepNoArrays({},t||{}),d=f.expandObjectPaths(u),h={};if(r&&r.length)for(i=0;i<r.length;i++)void 0===(a=(n=f.nestedProperty(d,r[i])).get())?f.nestedProperty(h,r[i]).set(null):(n.set(null),f.nestedProperty(h,r[i]).set(a));if(e=f.extendDeepNoArrays(e||{},d),r&&r.length)for(i=0;i<r.length;i++)if(s=f.nestedProperty(h,r[i]).get()){for(c=(l=f.nestedProperty(e,r[i])).get(),Array.isArray(c)||(c=[],l.set(c)),o=0;o<s.length;o++){var p=s[o];c[o]=null===p?null:w.extendObjectWithContainers(c[o],p)}l.set(c)}return e},w.dataArrayContainers=["transforms","dimensions"],w.layoutArrayContainers=s.layoutArrayContainers,w.extendTrace=function(e,t){return w.extendObjectWithContainers(e,t,w.dataArrayContainers)},w.extendLayout=function(e,t){return w.extendObjectWithContainers(e,t,w.layoutArrayContainers)},w.transition=function(e,t,r,n,a,i){var o={redraw:a.redraw},l={},s=[];return o.prepareFn=function(){for(var a=Array.isArray(t)?t.length:0,i=n.slice(0,a),o=0;o<i.length;o++){var c=i[o],u=e._fullData[c]._module;if(u){if(u.animatable){var d=u.basePlotModule.name;l[d]||(l[d]=[]),l[d].push(c)}e.data[i[o]]=w.extendTrace(e.data[i[o]],t[o])}}var h=f.expandObjectPaths(f.extendDeepNoArrays({},r)),p=/^[xy]axis[0-9]*$/;for(var y in h)p.test(y)&&delete h[y].range;w.extendLayout(e.layout,h),delete e.calcdata,w.supplyDefaults(e),w.doCalcdata(e);var v=f.expandObjectPaths(r);if(v){var g=e._fullLayout._plots;for(var m in g){var x=g[m],b=x.xaxis,_=x.yaxis,k=b.range.slice(),T=_.range.slice(),M=null,A=null,S=null,L=null;Array.isArray(v[b._name+".range"])?M=v[b._name+".range"].slice():Array.isArray((v[b._name]||{}).range)&&(M=v[b._name].range.slice()),Array.isArray(v[_._name+".range"])?A=v[_._name+".range"].slice():Array.isArray((v[_._name]||{}).range)&&(A=v[_._name].range.slice()),k&&M&&(b.r2l(k[0])!==b.r2l(M[0])||b.r2l(k[1])!==b.r2l(M[1]))&&(S={xr0:k,xr1:M}),T&&A&&(_.r2l(T[0])!==_.r2l(A[0])||_.r2l(T[1])!==_.r2l(A[1]))&&(L={yr0:T,yr1:A}),(S||L)&&s.push(f.extendFlat({plotinfo:x},S,L))}}return Promise.resolve()},o.runFn=function(t){var n,a,o=e._fullLayout._basePlotModules,c=s.length;if(r)for(a=0;a<o.length;a++)o[a].transitionAxes&&o[a].transitionAxes(e,s,i,t);for(var u in c?((n=f.extendFlat({},i)).duration=0,delete l.cartesian):n=i,l){var d=l[u];e._fullData[d[0]]._module.basePlotModule.plot(e,d,n,t)}},R(e,i,o)},w.transitionFromReact=function(e,t,r,n){var a=e._fullLayout,i=a.transition,o={},l=[];return o.prepareFn=function(){var e=a._plots;for(var i in o.redraw=!1,"some"===t.anim&&(o.redraw=!0),"some"===r.anim&&(o.redraw=!0),e){var s=e[i],c=s.xaxis,u=s.yaxis,d=n[c._name].range.slice(),h=n[u._name].range.slice(),p=c.range.slice(),y=u.range.slice();c.setScale(),u.setScale();var v=null,g=null;c.r2l(d[0])===c.r2l(p[0])&&c.r2l(d[1])===c.r2l(p[1])||(v={xr0:d,xr1:p}),u.r2l(h[0])===u.r2l(y[0])&&u.r2l(h[1])===u.r2l(y[1])||(g={yr0:h,yr1:y}),(v||g)&&l.push(f.extendFlat({plotinfo:s},v,g))}return Promise.resolve()},o.runFn=function(r){for(var n,a,o,s=e._fullData,c=e._fullLayout._basePlotModules,u=[],d=0;d<s.length;d++)u.push(d);function h(){if(e._fullLayout)for(var t=0;t<c.length;t++)c[t].transitionAxes&&c[t].transitionAxes(e,l,n,r)}function p(){if(e._fullLayout)for(var t=0;t<c.length;t++)c[t].plot(e,o,a,r)}l.length&&t.anim?"traces first"===i.ordering?(n=f.extendFlat({},i,{duration:0}),o=u,a=i,setTimeout(h,i.duration),p()):(n=i,o=null,a=f.extendFlat({},i,{duration:0}),setTimeout(p,n.duration),h()):l.length?(n=i,h()):t.anim&&(o=u,a=i,p())},R(e,i,o)},w.doCalcdata=function(e,t){var r,n,a,i,o=p.list(e),l=e._fullData,u=e._fullLayout,d=new Array(l.length),y=(e.calcdata||[]).slice();for(e.calcdata=d,u._numBoxes=0,u._numViolins=0,u._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,u._piecolormap={},u._sunburstcolormap={},u._treemapcolormap={},u._iciclecolormap={},u._funnelareacolormap={},a=0;a<l.length;a++)Array.isArray(t)&&-1===t.indexOf(a)&&(d[a]=y[a]);for(a=0;a<l.length;a++)(r=l[a])._arrayAttrs=c.findArrayAttributes(r),r._extremes={};var v=u._subplots.polar||[];for(a=0;a<v.length;a++)o.push(u[v[a]].radialaxis,u[v[a]].angularaxis);for(var g in u._colorAxes){var m=u[g];!1!==m.cauto&&(delete m.cmin,delete m.cmax)}var x=!1;function b(t){if(r=l[t],n=r._module,!0===r.visible&&r.transforms){if(n&&n.calc){var a=n.calc(e,r);a[0]&&a[0].t&&a[0].t._scene&&delete a[0].t._scene.dirty}for(i=0;i<r.transforms.length;i++){var o=r.transforms[i];(n=k[o.type])&&n.calcTransform&&(r._hasCalcTransform=!0,x=!0,n.calcTransform(e,r,o))}}}function _(t,a){if(r=l[t],!!(n=r._module).isContainer===a){var o=[];if(!0===r.visible&&0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(i=s.length-1;i>=0;i--)if(s[i].enabled){r._indexToPoints=s[i]._indexToPoints;break}n&&n.calc&&(o=n.calc(e,r))}Array.isArray(o)&&o[0]||(o=[{x:h,y:h}]),o[0].t||(o[0].t={}),o[0].trace=r,d[t]=o}}for(z(o,l,u),a=0;a<l.length;a++)_(a,!0);for(a=0;a<l.length;a++)b(a);for(x&&z(o,l,u),a=0;a<l.length;a++)_(a,!0);for(a=0;a<l.length;a++)_(a,!1);N(e);var w=function(e,t){var r,n,a,i,o,l=[];function c(e,r,n){var a=r._id.charAt(0);if("histogram2dcontour"===e){var i=r._counterAxes[0],o=p.getFromId(t,i),l="x"===a||"x"===i&&"category"===o.type,s="y"===a||"y"===i&&"category"===o.type;return function(e,t){return 0===e||0===t?-1:l&&e===n[t].length-1?-1:s&&t===n.length-1?-1:("y"===a?t:e)-1}}return function(e,t){return"y"===a?t:e}}var u={min:function(e){return f.aggNums(Math.min,null,e)},max:function(e){return f.aggNums(Math.max,null,e)},sum:function(e){return f.aggNums(function(e,t){return e+t},null,e)},total:function(e){return f.aggNums(function(e,t){return e+t},null,e)},mean:function(e){return f.mean(e)},median:function(e){return f.median(e)}};function d(e,t){return e[1]-t[1]}function h(e,t){return t[1]-e[1]}for(r=0;r<e.length;r++){var y=e[r];if("category"===y.type){var v=y.categoryorder.match(I);if(v){var g=v[1],m=v[2],x=y._id.charAt(0),b="x"===x,_=[];for(n=0;n<y._categories.length;n++)_.push([y._categories[n],[]]);for(n=0;n<y._traceIndices.length;n++){var w=y._traceIndices[n],k=t._fullData[w];if(!0===k.visible){var T=k.type;s.traceIs(k,"histogram")&&(delete k._xautoBinFinished,delete k._yautoBinFinished);var M="splom"===T,A="scattergl"===T,S=t.calcdata[w];for(a=0;a<S.length;a++){var L,O,C=S[a];if(M){var D=k._axesDim[y._id];if(!b){var P=k._diag[D][0];P&&(y=t._fullLayout[p.id2name(P)])}var E=C.trace.dimensions[D].values;for(i=0;i<E.length;i++)for(L=y._categoriesMap[E[i]],o=0;o<C.trace.dimensions.length;o++)if(o!==D){var R=C.trace.dimensions[o];_[L][1].push(R.values[i])}}else if(A){for(i=0;i<C.t.x.length;i++)b?(L=C.t.x[i],O=C.t.y[i]):(L=C.t.y[i],O=C.t.x[i]),_[L][1].push(O);C.t&&C.t._scene&&delete C.t._scene.dirty}else if(C.hasOwnProperty("z")){O=C.z;var z=c(k.type,y,O);for(i=0;i<O.length;i++)for(o=0;o<O[i].length;o++)(L=z(o,i))+1&&_[L][1].push(O[i][o])}else for(void 0===(L=C.p)&&(L=C[x]),void 0===(O=C.s)&&(O=C.v),void 0===O&&(O=b?C.y:C.x),Array.isArray(O)||(O=void 0===O?[]:[O]),i=0;i<O.length;i++)_[L][1].push(O[i])}}}y._categoriesValue=_;var N=[];for(n=0;n<_.length;n++)N.push([_[n][0],u[g](_[n][1])]);N.sort("descending"===m?h:d),y._categoriesAggregatedValue=N,y._initialCategories=N.map(function(e){return e[0]}),l=l.concat(y.sortByInitialCategories())}}}return l}(o,e);if(w.length){for(u._numBoxes=0,u._numViolins=0,a=0;a<w.length;a++)_(w[a],!0);for(a=0;a<w.length;a++)_(w[a],!1);N(e)}s.getComponentMethod("fx","calc")(e),s.getComponentMethod("errorbars","calc")(e)};var I=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(e,t,r){var n={};function a(e){e.clearCalc(),"multicategory"===e.type&&e.setupMultiCategory(t),n[e._id]=1}f.simpleMap(e,a);for(var i=r._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])n[l]||a(r[p.id2name(l)])}function N(e){var t,r,n,a=e._fullLayout,i=a._visibleModules,o={};for(r=0;r<i.length;r++){var l=i[r],s=l.crossTraceCalc;if(s){var c=l.basePlotModule.name;o[c]?f.pushUnique(o[c],s):o[c]=[s]}}for(n in o){var u=o[n],d=a._subplots[n];if(Array.isArray(d))for(t=0;t<d.length;t++){var h=d[t],p="cartesian"===n?a._plots[h]:a[h];for(r=0;r<u.length;r++)u[r](e,p,h)}else for(r=0;r<u.length;r++)u[r](e)}}w.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},w.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()},w.reselect=function(e){var t=e._fullLayout,r=(e.layout||{}).selections,n=t._previousSelections;t._previousSelections=r;var a=t._reselect||JSON.stringify(r)!==JSON.stringify(n);s.getComponentMethod("selections","reselect")(e,a)},w.generalUpdatePerTraceModule=function(e,t,r,n){var a,i=t.traceHash,o={};for(a=0;a<r.length;a++){var l=r[a],s=l[0].trace;s.visible&&(o[s.type]=o[s.type]||[],o[s.type].push(l))}for(var c in i)if(!o[c]){var u=i[c][0];u[0].trace.visible=!1,o[c]=[u]}for(var d in o){var h=o[d];h[0][0].trace._module.plot(e,t,f.filterVisible(h),n)}t.traceHash=o},w.plotBasePlot=function(e,t,r,n,a){var i=s.getModule(e),o=x(t.calcdata,i)[0];i.plot(t,o,n,a)},w.cleanBasePlot=function(e,t,r,n,a){var i=a._has&&a._has(e),o=r._has&&r._has(e);i&&!o&&a["_"+e+"layer"].selectAll("g.trace").remove()}},168:function(e,t,r){"use strict";var n=r(3400),a=r(31780),i=r(86968).Q;e.exports=function(e,t,r,o){var l,s,c=o.type,u=o.attributes,f=o.handleDefaults,d=o.partition||"x",h=t._subplots[c],p=h.length,y=p&&h[0].replace(/\d+$/,"");function v(e,t){return n.coerce(l,s,u,e,t)}for(var g=0;g<p;g++){var m=h[g];l=e[m]?e[m]:e[m]={},s=a.newContainer(t,m,y),o.noUirevision||v("uirevision",t.uirevision);var x={};x[d]=[g/p,(g+1)/p],i(s,t,v,x),o.id=m,f(l,s,v,o)}}},21776:function(e,t,r){"use strict";var n=r(26880);n.FORMAT_LINK,n.DATE_FORMAT_LINK;function a(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],a=0;a<r.length;a++)n[a]="`"+r[a]+"`";t+="Finally, the template string has access to ",t=1===r.length?t+"variable "+n[0]:t+"variables "+n.slice(0,-1).join(", ")+" and "+n.slice(-1)+"."}return t}t.Ks=function(e,t){e=e||{};a(t=t||{});var r={valType:"string",dflt:"",editType:e.editType||"none"};return!1!==e.arrayOk&&(r.arrayOk=!0),r},t.Gw=function(e,t){e=e||{};a(t=t||{});var r={valType:"string",dflt:"",editType:e.editType||"calc"};return!1!==e.arrayOk&&(r.arrayOk=!0),r},t.ye=function(e,t){t=t||{};(e=e||{}).newshape,a(t);return{valType:"string",dflt:"",editType:e.editType||"arraydraw"}}},19352:function(e,t,r){"use strict";var n=r(24696),a=r(84888).KY,i=r(3400).counterRegex;t.name="ternary";var o=t.attr="subplot";t.idRoot="ternary",t.idRegex=t.attrRegex=i("ternary"),(t.attributes={})[o]={valType:"subplotid",dflt:"ternary",editType:"calc"},t.layoutAttributes=r(86379),t.supplyLayoutDefaults=r(38536),t.plot=function(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots.ternary,o=0;o<i.length;o++){var l=i[o],s=a(r,"ternary",l),c=t[l]._subplot;c||(c=new n({id:l,graphDiv:e,container:t._ternarylayer.node()},t),t[l]._subplot=c),c.plot(s,t,e._promises)}},t.clean=function(e,t,r,n){for(var a=n._subplots.ternary||[],i=0;i<a.length;i++){var o=a[i],l=n[o]._subplot;!t[o]&&l&&(l.plotContainer.remove(),l.clipDef.remove(),l.clipDefRelative.remove(),l.layers["a-title"].remove(),l.layers["b-title"].remove(),l.layers["c-title"].remove())}}},86379:function(e,t,r){"use strict";var n=r(22548),a=r(86968).u,i=r(94724),o=r(67824).overrideAll,l=r(92880).extendFlat,s={title:{text:i.title.text,font:i.title.font},color:i.color,tickmode:i.minor.tickmode,nticks:l({},i.nticks,{dflt:6,min:1}),tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,ticklabelstep:i.ticklabelstep,showticklabels:i.showticklabels,labelalias:i.labelalias,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:l({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:l({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth,griddash:i.griddash,layer:i.layer,min:{valType:"number",dflt:0,min:0},_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},c=e.exports=o({domain:a({name:"ternary"}),bgcolor:{valType:"color",dflt:n.background},sum:{valType:"number",dflt:1,min:0},aaxis:s,baxis:s,caxis:s},"plot","from-root");c.uirevision={valType:"any",editType:"none"},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:"any",editType:"none"}},38536:function(e,t,r){"use strict";var n=r(76308),a=r(31780),i=r(3400),o=r(168),l=r(95936),s=r(42568),c=r(25404),u=r(26332),f=r(42136),d=r(86379),h=["aaxis","baxis","caxis"];function p(e,t,r,i){var o,l,s,c=r("bgcolor"),u=r("sum");i.bgColor=n.combine(c,i.paper_bgcolor);for(var f=0;f<h.length;f++)l=e[o=h[f]]||{},(s=a.newContainer(t,o))._name=o,y(l,s,i,t);var d=t.aaxis,p=t.baxis,v=t.caxis;d.min+p.min+v.min>=u&&(d.min=0,p.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function y(e,t,r,n){var a=d[t._name];function o(r,n){return i.coerce(e,t,a,r,n)}o("uirevision",n.uirevision),t.type="linear";var h=o("color"),p=h!==a.color.dflt?h:r.font.color,y=t._name.charAt(0).toUpperCase(),v="Component "+y,g=o("title.text",v);t._hovertitle=g===v?g:y,i.coerceFont(o,"title.font",{family:r.font.family,size:i.bigFont(r.font.size),color:p}),o("min"),u(e,t,o,"linear"),s(e,t,o,"linear"),l(e,t,o,"linear",{noAutotickangles:!0}),c(e,t,o,{outerTicks:!0}),o("showticklabels")&&(i.coerceFont(o,"tickfont",{family:r.font.family,size:r.font.size,color:p}),o("tickangle"),o("tickformat")),f(e,t,o,{dfltColor:h,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:a}),o("hoverformat"),o("layer")}e.exports=function(e,t,r){o(e,t,r,{type:"ternary",attributes:d,handleDefaults:p,font:t.font,paper_bgcolor:t.paper_bgcolor})}},24696:function(e,t,r){"use strict";var n=r(33428),a=r(49760),i=r(24040),o=r(3400),l=o.strTranslate,s=o._,c=r(76308),u=r(43616),f=r(78344),d=r(92880).extendFlat,h=r(7316),p=r(54460),y=r(86476),v=r(93024),g=r(72760),m=g.freeMode,x=g.rectMode,b=r(81668),_=r(22676).prepSelect,w=r(22676).selectOnClick,k=r(22676).clearOutline,T=r(22676).clearSelectionsCache,M=r(33816);function A(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=A;var S=A.prototype;S.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}},S.plot=function(e,t){var r=t[this.id],n=t._size;this._hasClipOnAxisFalse=!1;for(var a=0;a<e.length;a++){if(!1===e[a][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),h.generalUpdatePerTraceModule(this.graphDiv,this,e,r),this.layers.plotbg.select("path").call(c.fill,r.bgcolor)},S.makeFramework=function(e){var t=this.graphDiv,r=e[this.id],n=this.clipId="clip"+this.layoutId+this.id,a=this.clipIdRelative="clip-relative"+this.layoutId+this.id;this.clipDef=o.ensureSingleById(e._clips,"clipPath",n,function(e){e.append("path").attr("d","M0,0Z")}),this.clipDefRelative=o.ensureSingleById(e._clips,"clipPath",a,function(e){e.append("path").attr("d","M0,0Z")}),this.plotContainer=o.ensureSingle(this.container,"g",this.id),this.updateLayers(r),u.setClipUrl(this.layers.backplot,n,t),u.setClipUrl(this.layers.grids,n,t)},S.updateLayers=function(e){var t=this.layers,r=["draglayer","plotbg","backplot","grids"];"below traces"===e.aaxis.layer&&r.push("aaxis","aline"),"below traces"===e.baxis.layer&&r.push("baxis","bline"),"below traces"===e.caxis.layer&&r.push("caxis","cline"),r.push("frontplot"),"above traces"===e.aaxis.layer&&r.push("aaxis","aline"),"above traces"===e.baxis.layer&&r.push("baxis","bline"),"above traces"===e.caxis.layer&&r.push("caxis","cline");var a=this.plotContainer.selectAll("g.toplevel").data(r,String),i=["agrid","bgrid","cgrid"];a.enter().append("g").attr("class",function(e){return"toplevel "+e}).each(function(e){var r=n.select(this);t[e]=r,"frontplot"===e?r.append("g").classed("scatterlayer",!0):"backplot"===e?r.append("g").classed("maplayer",!0):"plotbg"===e?r.append("path").attr("d","M0,0Z"):"aline"===e||"bline"===e||"cline"===e?r.append("path"):"grids"===e&&i.forEach(function(e){t[e]=r.append("g").classed("grid "+e,!0)})}),a.order()};var L=Math.sqrt(4/3);S.adjustLayout=function(e,t){var r,n,a,i,o,s,h=this,p=e.domain,y=(p.x[0]+p.x[1])/2,v=(p.y[0]+p.y[1])/2,g=p.x[1]-p.x[0],m=p.y[1]-p.y[0],x=g*t.w,b=m*t.h,_=e.sum,w=e.aaxis.min,k=e.baxis.min,T=e.caxis.min;x>L*b?a=(i=b)*L:i=(a=x)/L,o=g*a/x,s=m*i/b,r=t.l+t.w*y-a/2,n=t.t+t.h*(1-v)-i/2,h.x0=r,h.y0=n,h.w=a,h.h=i,h.sum=_,h.xaxis={type:"linear",range:[w+2*T-_,_-w-2*k],domain:[y-o/2,y+o/2],_id:"x"},f(h.xaxis,h.graphDiv._fullLayout),h.xaxis.setScale(),h.xaxis.isPtWithinRange=function(e){return e.a>=h.aaxis.range[0]&&e.a<=h.aaxis.range[1]&&e.b>=h.baxis.range[1]&&e.b<=h.baxis.range[0]&&e.c>=h.caxis.range[1]&&e.c<=h.caxis.range[0]},h.yaxis={type:"linear",range:[w,_-k-T],domain:[v-s/2,v+s/2],_id:"y"},f(h.yaxis,h.graphDiv._fullLayout),h.yaxis.setScale(),h.yaxis.isPtWithinRange=function(){return!0};var M=h.yaxis.domain[0],A=h.aaxis=d({},e.aaxis,{range:[w,_-k-T],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[M,M+s*L],anchor:"free",position:0,_id:"y",_length:a});f(A,h.graphDiv._fullLayout),A.setScale();var S=h.baxis=d({},e.baxis,{range:[_-w-T,k],side:"bottom",domain:h.xaxis.domain,anchor:"free",position:0,_id:"x",_length:a});f(S,h.graphDiv._fullLayout),S.setScale();var O=h.caxis=d({},e.caxis,{range:[_-w-k,T],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[M,M+s*L],anchor:"free",position:0,_id:"y",_length:a});f(O,h.graphDiv._fullLayout),O.setScale();var C="M"+r+","+(n+i)+"h"+a+"l-"+a/2+",-"+i+"Z";h.clipDef.select("path").attr("d",C),h.layers.plotbg.select("path").attr("d",C);var D="M0,"+i+"h"+a+"l-"+a/2+",-"+i+"Z";h.clipDefRelative.select("path").attr("d",D);var P=l(r,n);h.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),h.clipDefRelative.select("path").attr("transform",null);var E=l(r-S._offset,n+i);h.layers.baxis.attr("transform",E),h.layers.bgrid.attr("transform",E);var R=l(r+a/2,n)+"rotate(30)"+l(0,-A._offset);h.layers.aaxis.attr("transform",R),h.layers.agrid.attr("transform",R);var I=l(r+a/2,n)+"rotate(-30)"+l(0,-O._offset);h.layers.caxis.attr("transform",I),h.layers.cgrid.attr("transform",I),h.drawAxes(!0),h.layers.aline.select("path").attr("d",A.showline?"M"+r+","+(n+i)+"l"+a/2+",-"+i:"M0,0").call(c.stroke,A.linecolor||"#000").style("stroke-width",(A.linewidth||0)+"px"),h.layers.bline.select("path").attr("d",S.showline?"M"+r+","+(n+i)+"h"+a:"M0,0").call(c.stroke,S.linecolor||"#000").style("stroke-width",(S.linewidth||0)+"px"),h.layers.cline.select("path").attr("d",O.showline?"M"+(r+a/2)+","+n+"l"+a/2+","+i:"M0,0").call(c.stroke,O.linecolor||"#000").style("stroke-width",(O.linewidth||0)+"px"),h.graphDiv._context.staticPlot||h.initInteractions(),u.setClipUrl(h.layers.frontplot,h._hasClipOnAxisFalse?null:h.clipId,h.graphDiv)},S.drawAxes=function(e){var t=this.graphDiv,r=this.id.substr(7)+"title",n=this.layers,a=this.aaxis,i=this.baxis,o=this.caxis;if(this.drawAx(a),this.drawAx(i),this.drawAx(o),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+("outside"===o.ticks?.87*o.ticklen:0)),c=(i.showticklabels?i.tickfont.size:0)+("outside"===i.ticks?i.ticklen:0)+3;n["a-title"]=b.draw(t,"a"+r,{propContainer:a,propName:this.id+".aaxis.title",placeholder:s(t,"Click to enter Component A title"),attributes:{x:this.x0+this.w/2,y:this.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),n["b-title"]=b.draw(t,"b"+r,{propContainer:i,propName:this.id+".baxis.title",placeholder:s(t,"Click to enter Component B title"),attributes:{x:this.x0-c,y:this.y0+this.h+.83*i.title.font.size+c,"text-anchor":"middle"}}),n["c-title"]=b.draw(t,"c"+r,{propContainer:o,propName:this.id+".caxis.title",placeholder:s(t,"Click to enter Component C title"),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,"text-anchor":"middle"}})}},S.drawAx=function(e){var t,r=this.graphDiv,n=e._name,a=n.charAt(0),i=e._id,l=this.layers[n],s=a+"tickLayout",c=(t=e).ticks+String(t.ticklen)+String(t.showticklabels);this[s]!==c&&(l.selectAll("."+i+"tick").remove(),this[s]=c),e.setScale();var u=p.calcTicks(e),f=p.clipEnds(e,u),d=p.makeTransTickFn(e),h=p.getTickSigns(e)[2],y=o.deg2rad(30),v=h*(e.linewidth||1)/2,g=h*e.ticklen,m=this.w,x=this.h,b="b"===a?"M0,"+v+"l"+Math.sin(y)*g+","+Math.cos(y)*g:"M"+v+",0l"+Math.cos(y)*g+","+-Math.sin(y)*g,_={a:"M0,0l"+x+",-"+m/2,b:"M0,0l-"+m/2+",-"+x,c:"M0,0l-"+x+","+m/2}[a];p.drawTicks(r,e,{vals:"inside"===e.ticks?f:u,layer:l,path:b,transFn:d,crisp:!1}),p.drawGrid(r,e,{vals:f,layer:this.layers[a+"grid"],path:_,transFn:d,crisp:!1}),p.drawLabels(r,e,{vals:u,layer:l,transFn:d,labelFns:p.makeLabelFns(e,0,30)})};var O=M.MINZOOM/2+.87,C="m-0.87,.5h"+O+"v3h-"+(O+5.2)+"l"+(O/2+2.6)+",-"+(.87*O+4.5)+"l2.6,1.5l-"+O/2+","+.87*O+"Z",D="m0.87,.5h-"+O+"v3h"+(O+5.2)+"l-"+(O/2+2.6)+",-"+(.87*O+4.5)+"l-2.6,1.5l"+O/2+","+.87*O+"Z",P="m0,1l"+O/2+","+.87*O+"l2.6,-1.5l-"+(O/2+2.6)+",-"+(.87*O+4.5)+"l-"+(O/2+2.6)+","+(.87*O+4.5)+"l2.6,1.5l"+O/2+",-"+.87*O+"Z",E="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",R=!0;function I(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}S.clearOutline=function(){T(this.dragOptions),k(this.dragOptions.gd)},S.initInteractions=function(){var e,t,r,n,f,d,h,p,g,b,k,T,A=this,S=A.layers.plotbg.select("path").node(),O=A.graphDiv,z=O._fullLayout._zoomlayer;function N(e){var t={};return t[A.id+".aaxis.min"]=e.a,t[A.id+".baxis.min"]=e.b,t[A.id+".caxis.min"]=e.c,t}function F(e,t){var r=O._fullLayout.clickmode;I(O),2===e&&(O.emit("plotly_doubleclick",null),i.call("_guiRelayout",O,N({a:0,b:0,c:0}))),r.indexOf("select")>-1&&1===e&&w(t,O,[A.xaxis],[A.yaxis],A.id,A.dragOptions),r.indexOf("event")>-1&&v.click(O,t,A.id)}function j(e,t){return 1-t/A.h}function B(e,t){return 1-(e+(A.h-t)/Math.sqrt(3))/A.w}function H(e,t){return(e-(A.h-t)/Math.sqrt(3))/A.w}function U(a,i){var o=r+a*e,l=n+i*t,s=Math.max(0,Math.min(1,j(0,n),j(0,l))),c=Math.max(0,Math.min(1,B(r,n),B(o,l))),u=Math.max(0,Math.min(1,H(r,n),H(o,l))),y=(s/2+u)*A.w,v=(1-s/2-c)*A.w,m=(y+v)/2,x=v-y,_=(1-s)*A.h,w=_-x/L;x<M.MINZOOM?(h=f,k.attr("d",g),T.attr("d","M0,0Z")):(h={a:f.a+s*d,b:f.b+c*d,c:f.c+u*d},k.attr("d",g+"M"+y+","+_+"H"+v+"L"+m+","+w+"L"+y+","+_+"Z"),T.attr("d","M"+r+","+n+E+"M"+y+","+_+C+"M"+v+","+_+D+"M"+m+","+w+P)),b||(k.transition().style("fill",p>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),T.transition().style("opacity",1).duration(200),b=!0),O.emit("plotly_relayouting",N(h))}function q(){I(O),h!==f&&(i.call("_guiRelayout",O,N(h)),R&&O.data&&O._context.showTips&&(o.notifier(s(O,"Double-click to zoom back out"),"long"),R=!1))}function Y(e,t){var r=e/A.xaxis._m,n=t/A.yaxis._m,a=[(h={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,h.b,h.c].sort(o.sorterAsc),i=a.indexOf(h.a),s=a.indexOf(h.b),c=a.indexOf(h.c);a[0]<0&&(a[1]+a[0]/2<0?(a[2]+=a[0]+a[1],a[0]=a[1]=0):(a[2]+=a[0]/2,a[1]+=a[0]/2,a[0]=0),h={a:a[i],b:a[s],c:a[c]},t=(f.a-h.a)*A.yaxis._m,e=(f.c-h.c-f.b+h.b)*A.xaxis._m);var d=l(A.x0+e,A.y0+t);A.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",d);var p=l(-e,-t);A.clipDefRelative.select("path").attr("transform",p),A.aaxis.range=[h.a,A.sum-h.b-h.c],A.baxis.range=[A.sum-h.a-h.c,h.b],A.caxis.range=[A.sum-h.a-h.b,h.c],A.drawAxes(!1),A._hasClipOnAxisFalse&&A.plotContainer.select(".scatterlayer").selectAll(".trace").call(u.hideOutsideRangePoints,A),O.emit("plotly_relayouting",N(h))}function V(){i.call("_guiRelayout",O,N(h))}this.dragOptions={element:S,gd:O,plotinfo:{id:A.id,domain:O._fullLayout[A.id].domain,xaxis:A.xaxis,yaxis:A.yaxis},subplot:A.id,prepFn:function(i,s,u){A.dragOptions.xaxes=[A.xaxis],A.dragOptions.yaxes=[A.yaxis],e=O._fullLayout._invScaleX,t=O._fullLayout._invScaleY;var y=A.dragOptions.dragmode=O._fullLayout.dragmode;m(y)?A.dragOptions.minDrag=1:A.dragOptions.minDrag=void 0,"zoom"===y?(A.dragOptions.moveFn=U,A.dragOptions.clickFn=F,A.dragOptions.doneFn=q,function(e,t,i){var s=S.getBoundingClientRect();r=t-s.left,n=i-s.top,O._fullLayout._calcInverseTransform(O);var u=O._fullLayout._invTransform,y=o.apply3DTransform(u)(r,n);r=y[0],n=y[1],f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},h=f,d=A.aaxis.range[1]-f.a,p=a(A.graphDiv._fullLayout[A.id].bgcolor).getLuminance(),g="M0,"+A.h+"L"+A.w/2+", 0L"+A.w+","+A.h+"Z",b=!1,k=z.append("path").attr("class","zoombox").attr("transform",l(A.x0,A.y0)).style({fill:p>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",g),T=z.append("path").attr("class","zoombox-corners").attr("transform",l(A.x0,A.y0)).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),A.clearOutline(O)}(0,s,u)):"pan"===y?(A.dragOptions.moveFn=Y,A.dragOptions.clickFn=F,A.dragOptions.doneFn=V,f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},h=f,A.clearOutline(O)):(x(y)||m(y))&&_(i,s,u,A.dragOptions,y)}},S.onmousemove=function(e){v.hover(O,e,A.id),O._fullLayout._lasthover=S,O._fullLayout._hoversubplot=A.id},S.onmouseout=function(e){O._dragging||y.unhover(O,e)},y.init(this.dragOptions)}},24040:function(e,t,r){"use strict";var n=r(24248),a=r(16628),i=r(52416),o=r(63620),l=r(52200).addStyleRule,s=r(92880),c=r(45464),u=r(64859),f=s.extendFlat,d=s.extendDeepAll;function h(e){var r=e.name,a=e.categories,i=e.meta;if(t.modules[r])n.log("Type "+r+" already registered");else{t.subplotsRegistry[e.basePlotModule.name]||function(e){var r=e.name;if(t.subplotsRegistry[r])return void n.log("Plot type "+r+" already registered.");for(var a in g(e),t.subplotsRegistry[r]=e,t.componentsRegistry)b(a,e.name)}(e.basePlotModule);for(var o={},s=0;s<a.length;s++)o[a[s]]=!0,t.allCategories[a[s]]=!0;for(var c in t.modules[r]={_module:e,categories:o},i&&Object.keys(i).length&&(t.modules[r].meta=i),t.allTypes.push(r),t.componentsRegistry)m(c,r);e.layoutAttributes&&f(t.traceLayoutAttributes,e.layoutAttributes);var u=e.basePlotModule,d=u.name;if("mapbox"===d){var h=u.constants.styleRules;for(var p in h)l(".js-plotly-plot .plotly .mapboxgl-"+p,h[p])}"geo"!==d&&"mapbox"!==d||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function p(e){if("string"!=typeof e.name)throw new Error("Component module *name* must be a string.");var r=e.name;for(var n in t.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&i(t.layoutArrayContainers,r),g(e)),t.modules)m(r,n);for(var a in t.subplotsRegistry)b(r,a);for(var o in t.transformsRegistry)x(r,o);e.schema&&e.schema.layout&&d(u,e.schema.layout)}function y(e){if("string"!=typeof e.name)throw new Error("Transform module *name* must be a string.");var r="Transform module "+e.name,a="function"==typeof e.transform,i="function"==typeof e.calcTransform;if(!a&&!i)throw new Error(r+" is missing a *transform* or *calcTransform* method.");for(var l in a&&i&&n.log([r+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),o(e.attributes)||n.log(r+" registered without an *attributes* object."),"function"!=typeof e.supplyDefaults&&n.log(r+" registered without a *supplyDefaults* method."),t.transformsRegistry[e.name]=e,t.componentsRegistry)x(l,e.name)}function v(e){var r=e.name,n=r.split("-")[0],a=e.dictionary,i=e.format,o=a&&Object.keys(a).length,l=i&&Object.keys(i).length,s=t.localeRegistry,c=s[r];if(c||(s[r]=c={}),n!==r){var u=s[n];u||(s[n]=u={}),o&&u.dictionary===c.dictionary&&(u.dictionary=a),l&&u.format===c.format&&(u.format=i)}o&&(c.dictionary=a),l&&(c.format=i)}function g(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var n=0;n<r.length;n++)i(t.layoutArrayRegexes,r[n])}}function m(e,r){var n=t.componentsRegistry[e].schema;if(n&&n.traces){var a=n.traces[r];a&&d(t.modules[r]._module.attributes,a)}}function x(e,r){var n=t.componentsRegistry[e].schema;if(n&&n.transforms){var a=n.transforms[r];a&&d(t.transformsRegistry[r].attributes,a)}}function b(e,r){var n=t.componentsRegistry[e].schema;if(n&&n.subplots){var a=t.subplotsRegistry[r],i=a.layoutAttributes,o="subplot"===a.attr?a.name:a.attr;Array.isArray(o)&&(o=o[0]);var l=n.subplots[o];i&&l&&d(i,l)}}function _(e){return"object"==typeof e&&(e=e.type),e}t.modules={},t.allCategories={},t.allTypes=[],t.subplotsRegistry={},t.transformsRegistry={},t.componentsRegistry={},t.layoutArrayContainers=[],t.layoutArrayRegexes=[],t.traceLayoutAttributes={},t.localeRegistry={},t.apiMethodRegistry={},t.collectableSubplotTypes=null,t.register=function(e){if(t.collectableSubplotTypes=null,!e)throw new Error("No argument passed to Plotly.register.");e&&!Array.isArray(e)&&(e=[e]);for(var r=0;r<e.length;r++){var n=e[r];if(!n)throw new Error("Invalid module was attempted to be registered!");switch(n.moduleType){case"trace":h(n);break;case"transform":y(n);break;case"component":p(n);break;case"locale":v(n);break;case"apiMethod":var a=n.name;t.apiMethodRegistry[a]=n.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},t.getModule=function(e){var r=t.modules[_(e)];return!!r&&r._module},t.traceIs=function(e,r){if("various"===(e=_(e)))return!1;var a=t.modules[e];return a||(e&&n.log("Unrecognized trace type "+e+"."),a=t.modules[c.type.dflt]),!!a.categories[r]},t.getTransformIndices=function(e,t){for(var r=[],n=e.transforms||[],a=0;a<n.length;a++)n[a].type===t&&r.push(a);return r},t.hasTransform=function(e,t){for(var r=e.transforms||[],n=0;n<r.length;n++)if(r[n].type===t)return!0;return!1},t.getComponentMethod=function(e,r){var n=t.componentsRegistry[e];return n&&n[r]||a},t.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return t.apiMethodRegistry[e].apply(null,r)}},91536:function(e,t,r){"use strict";var n=r(24040),a=r(3400),i=a.extendFlat,o=a.extendDeep;function l(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}e.exports=function(e,t){var r,a,s=e.data,c=e.layout,u=o([],s),f=o({},c,l(t.tileClass)),d=e._context||{};if(t.width&&(f.width=t.width),t.height&&(f.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){f.annotations=[];var h=Object.keys(f);for(r=0;r<h.length;r++)a=h[r],["xaxis","yaxis","zaxis"].indexOf(a.slice(0,5))>-1&&(f[h[r]].title={text:""});for(r=0;r<u.length;r++){var p=u[r];p.showscale=!1,p.marker&&(p.marker.showscale=!1),n.traceIs(p,"pie-like")&&(p.textposition="none")}}if(Array.isArray(t.annotations))for(r=0;r<t.annotations.length;r++)f.annotations.push(t.annotations[r]);var y=Object.keys(f).filter(function(e){return e.match(/^scene\d*$/)});if(y.length){var v={};for("thumbnail"===t.tileClass&&(v={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r<y.length;r++){var g=f[y[r]];g.xaxis||(g.xaxis={}),g.yaxis||(g.yaxis={}),g.zaxis||(g.zaxis={}),i(g.xaxis,v),i(g.yaxis,v),i(g.zaxis,v),g._scene=null}}var m=document.createElement("div");t.tileClass&&(m.className=t.tileClass);var x={gd:m,td:m,layout:f,data:u,config:{staticPlot:void 0===t.staticPlot||t.staticPlot,plotGlPixelRatio:void 0===t.plotGlPixelRatio?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showLink:t.showLink||!1,showTips:t.showTips||!1,mapboxAccessToken:d.mapboxAccessToken}};return"transparent"!==t.setBackground&&(x.config.setBackground=t.setBackground||"opaque"),x.gd.defaultLayout=l(t.tileClass),x}},39792:function(e,t,r){"use strict";var n=r(3400),a=r(67024),i=r(48616),o=r(81792);e.exports=function(e,t){var r;return n.isPlainObject(e)||(r=n.getGraphDiv(e)),(t=t||{}).format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(l,s){r&&r._snapshotInProgress&&s(new Error("Snapshotting already in progress.")),n.isIE()&&"svg"!==t.format&&s(new Error(o.MSG_IE_BAD_FORMAT)),r&&(r._snapshotInProgress=!0);var c=a(e,t),u=t.filename||e.fn||"newplot";u+="."+t.format.replace("-","."),c.then(function(e){return r&&(r._snapshotInProgress=!1),i(e,u,t.format)}).then(function(e){l(e)}).catch(function(e){r&&(r._snapshotInProgress=!1),s(e)})})}},48616:function(e,t,r){"use strict";var n=r(3400),a=r(81792);e.exports=function(e,t,r){var i=document.createElement("a"),o="download"in i;return new Promise(function(l,s){var c,u;if(n.isIE())return c=a.createBlob(e,"svg"),window.navigator.msSaveBlob(c,t),c=null,l(t);if(o)return c=a.createBlob(e,r),u=a.createObjectURL(c),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),a.revokeObjectURL(u),c=null,l(t);if(n.isSafari()){var f="svg"===r?",":";base64,";return a.octetStream(f+encodeURIComponent(e)),l(t)}s(new Error("download error"))})}},81792:function(e,t,r){"use strict";var n=r(24040);t.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},t.getRedrawFunc=function(e){return function(){n.getComponentMethod("colorbar","draw")(e)}},t.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},t.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var a=window.URL||window.webkitURL;t.createObjectURL=function(e){return a.createObjectURL(e)},t.revokeObjectURL=function(e){return a.revokeObjectURL(e)},t.createBlob=function(e,t){if("svg"===t)return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if("full-json"===t)return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),a=0;a<t;a++)n[a]=e.charCodeAt(a);return r}(window.atob(e));return new window.Blob([r],{type:"image/"+t})},t.octetStream=function(e){document.location.href="data:application/octet-stream"+e},t.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,t.MSG_IE_BAD_FORMAT="Sorry IE does not support downloading from canvas. Try {format:'svg'} instead."},78904:function(e,t,r){"use strict";var n=r(81792),a={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:r(91536),toSVG:r(37164),svgToImg:r(63268),toImage:r(61808),downloadImage:r(39792)};e.exports=a},63268:function(e,t,r){"use strict";var n=r(3400),a=r(61252).EventEmitter,i=r(81792);e.exports=function(e){var t=e.emitter||new a,r=new Promise(function(a,o){var l=window.Image,s=e.svg,c=e.format||"png";if(n.isIE()&&"svg"!==c){var u=new Error(i.MSG_IE_BAD_FORMAT);return o(u),e.promise?r:t.emit("error",u)}var f,d,h=e.canvas,p=e.scale||1,y=e.width||300,v=e.height||150,g=p*y,m=p*v,x=h.getContext("2d",{willReadFrequently:!0}),b=new l;"svg"===c||n.isSafari()?d=i.encodeSVG(s):(f=i.createBlob(s,"svg"),d=i.createObjectURL(f)),h.width=g,h.height=m,b.onload=function(){var r;switch(f=null,i.revokeObjectURL(d),"svg"!==c&&x.drawImage(b,0,0,g,m),c){case"jpeg":r=h.toDataURL("image/jpeg");break;case"png":r=h.toDataURL("image/png");break;case"webp":r=h.toDataURL("image/webp");break;case"svg":r=d;break;default:var n="Image format is not jpeg, png, svg or webp.";if(o(new Error(n)),!e.promise)return t.emit("error",n)}a(r),e.promise||t.emit("success",r)},b.onerror=function(r){if(f=null,i.revokeObjectURL(d),o(r),!e.promise)return t.emit("error",r)},b.src=d});return e.promise?r:t}},61808:function(e,t,r){"use strict";var n=r(61252).EventEmitter,a=r(24040),i=r(3400),o=r(81792),l=r(91536),s=r(37164),c=r(63268);e.exports=function(e,t){var r=new n,u=l(e,{format:"png"}),f=u.gd;f.style.position="absolute",f.style.left="-5000px",document.body.appendChild(f);var d=o.getRedrawFunc(f);return a.call("_doPlot",f,u.data,u.layout,u.config).then(d).then(function(){var e=o.getDelay(f._fullLayout);setTimeout(function(){var e=s(f),n=document.createElement("canvas");n.id=i.randstr(),(r=c({format:t.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:e})).clean=function(){f&&document.body.removeChild(f)}},e)}).catch(function(e){r.emit("error",e)}),r}},37164:function(e,t,r){"use strict";var n=r(33428),a=r(3400),i=r(43616),o=r(76308),l=r(9616),s=/"/g,c=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t,r){var u,f=e._fullLayout,d=f._paper,h=f._toppaper,p=f.width,y=f.height;d.insert("rect",":first-child").call(i.setRect,0,0,p,y).call(o.fill,f.paper_bgcolor);var v=f._basePlotModules||[];for(u=0;u<v.length;u++){var g=v[u];g.toSVG&&g.toSVG(e)}if(h){var m=h.node().childNodes,x=Array.prototype.slice.call(m);for(u=0;u<x.length;u++){var b=x[u];b.childNodes.length&&d.node().appendChild(b)}}f._draggers&&f._draggers.remove(),d.node().style.background="",d.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var e=n.select(this);if("hidden"!==this.style.visibility&&"none"!==this.style.display){e.style({visibility:null,display:null});var t=this.style.fontFamily;t&&-1!==t.indexOf('"')&&e.style("font-family",t.replace(s,"TOBESTRIPPED"))}else e.remove()}),d.selectAll(".gradient_filled,.pattern_filled").each(function(){var e=n.select(this),t=this.style.fill;t&&-1!==t.indexOf("url(")&&e.style("fill",t.replace(s,"TOBESTRIPPED"));var r=this.style.stroke;r&&-1!==r.indexOf("url(")&&e.style("stroke",r.replace(s,"TOBESTRIPPED"))}),"pdf"!==t&&"eps"!==t||d.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),d.node().setAttributeNS(l.xmlns,"xmlns",l.svg),d.node().setAttributeNS(l.xmlns,"xmlns:xlink",l.xlink),"svg"===t&&r&&(d.attr("width",r*p),d.attr("height",r*y),d.attr("viewBox","0 0 "+p+" "+y));var _=(new window.XMLSerializer).serializeToString(d.node());return _=function(e){var t=n.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(e){return"<"===e?"<":"&rt;"===e?">":-1!==e.indexOf("<")||-1!==e.indexOf(">")?"":t.html(e).text()});return t.remove(),r}(_),_=(_=_.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(c,"'"),a.isIE()&&(_=(_=(_=_.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),_}},84664:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;n.mergeArray(t.text,e,"tx"),n.mergeArray(t.hovertext,e,"htx");var a=t.marker;if(a){n.mergeArray(a.opacity,e,"mo",!0),n.mergeArray(a.color,e,"mc");var i=a.line;i&&(n.mergeArray(i.color,e,"mlc"),n.mergeArrayCastPositive(i.width,e,"mlw"))}}},20832:function(e,t,r){"use strict";var n=r(52904),a=r(29736).axisHoverFormat,i=r(21776).Ks,o=r(21776).Gw,l=r(49084),s=r(25376),c=r(78048),u=r(98192).c,f=r(92880).extendFlat,d=s({editType:"calc",arrayOk:!0,colorEditType:"style"}),h=f({},n.marker.line.width,{dflt:0}),p=f({width:h,editType:"calc"},l("marker.line")),y=f({line:p,editType:"calc"},l("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:u,cornerradius:{valType:"any",editType:"calc"}});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:a("x"),yhoverformat:a("y"),text:n.text,texttemplate:o({editType:"plot"},{keys:c.eventDataKeys}),hovertext:n.hovertext,hovertemplate:i({},{keys:c.eventDataKeys}),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:f({},d,{}),insidetextfont:f({},d,{}),outsidetextfont:f({},d,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:f({},n.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:y,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:"style"},textfont:n.selected.textfont,editType:"style"},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:"style"},textfont:n.unselected.textfont,editType:"style"},_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"]}}}},71820:function(e,t,r){"use strict";var n=r(54460),a=r(1220),i=r(94288).hasColorscale,o=r(47128),l=r(84664),s=r(4500);e.exports=function(e,t){var r,c,u,f,d,h,p=n.getFromId(e,t.xaxis||"x"),y=n.getFromId(e,t.yaxis||"y"),v={msUTC:!(!t.base&&0!==t.base)};"h"===t.orientation?(r=p.makeCalcdata(t,"x",v),u=y.makeCalcdata(t,"y"),f=a(t,y,"y",u),d=!!t.yperiodalignment,h="y"):(r=y.makeCalcdata(t,"y",v),u=p.makeCalcdata(t,"x"),f=a(t,p,"x",u),d=!!t.xperiodalignment,h="x"),c=f.vals;for(var g=Math.min(c.length,r.length),m=new Array(g),x=0;x<g;x++)m[x]={p:c[x],s:r[x]},d&&(m[x].orig_p=u[x],m[x][h+"End"]=f.ends[x],m[x][h+"Start"]=f.starts[x]),t.ids&&(m[x].id=String(t.ids[x]));return i(t,"marker")&&o(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),i(t,"marker.line")&&o(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),l(m,t),s(m,t),m}},78048:function(e){"use strict";e.exports={TEXTPAD:3,eventDataKeys:["value","label"]}},96376:function(e,t,r){"use strict";var n=r(38248),a=r(3400).isArrayOrTypedArray,i=r(39032).BADNUM,o=r(24040),l=r(54460),s=r(71888).getAxisGroup,c=r(72592);function u(e,t,r,o,u){if(o.length){var b,_,w,k;switch(function(e,t){var r,i;for(r=0;r<t.length;r++){var o,l=t[r],s=l[0].trace,c="funnel"===s.type?s._base:s.base,u="h"===s.orientation?s.xcalendar:s.ycalendar,f="category"===e.type||"multicategory"===e.type?function(){return null}:e.d2c;if(a(c)){for(i=0;i<Math.min(c.length,l.length);i++)o=f(c[i],0,u),n(o)?(l[i].b=+o,l[i].hasB=1):l[i].b=0;for(;i<l.length;i++)l[i].b=0}else{o=f(c,0,u);var d=n(o);for(o=d?o:0,i=0;i<l.length;i++)l[i].b=o,d&&(l[i].hasB=1)}}}(r,o),u.mode){case"overlay":f(t,r,o,u);break;case"group":for(b=[],_=[],w=0;w<o.length;w++)void 0===(k=o[w])[0].trace.offset?_.push(k):b.push(k);_.length&&function(e,t,r,n,a){var o=new c(n,{posAxis:t,sepNegVal:!1,overlapNoMerge:!a.norm});(function(e,t,r,n){for(var a=e._fullLayout,i=r.positions,o=r.distinctPositions,l=r.minDiff,c=r.traces,u=c.length,f=i.length!==o.length,d=l*(1-n.gap),v=s(a,t._id)+c[0][0].trace.orientation,g=a._alignmentOpts[v]||{},m=0;m<u;m++){var x,b,_=c[m],w=_[0].trace,k=g[w.alignmentgroup]||{},T=Object.keys(k.offsetGroups||{}).length,M=(x=T?d/T:f?d/u:d)*(1-(n.groupgap||0));b=T?((2*w._offsetIndex+1-T)*x-M)/2:f?((2*m+1-u)*x-M)/2:-M/2;var A=_[0].t;A.barwidth=M,A.poffset=b,A.bargroupwidth=d,A.bardelta=l}r.binWidth=c[0][0].t.barwidth/100,h(r),p(t,r),y(t,r,f)})(e,t,o,a),function(e,t){for(var r=e.traces,n=0;n<r.length;n++){var a=r[n],o=a[0].trace;if(void 0===o.base)for(var l=new c([a],{posAxis:t,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<a.length;s++){var u=a[s];if(u.p!==i){var f=l.put(u.p,u.b+u.s);f&&(u.b=f)}}}}(o,t),a.norm?(g(o),m(r,o,a)):v(r,o)}(e,t,r,_,u),b.length&&f(t,r,b,u);break;case"stack":case"relative":for(b=[],_=[],w=0;w<o.length;w++)void 0===(k=o[w])[0].trace.base?_.push(k):b.push(k);!function(e){if(e.length<2)return;var t,r,a,i,o,l,s;for(t=0;t<e.length&&(r=e[t],a=r[0].trace,void 0===(o=a.marker?a.marker.cornerradius:void 0));t++);if(void 0!==o)for(l=n(o)?+o:+o.slice(0,-1),s=n(o)?"px":"%",t=0;t<e.length;t++)r=e[t],(i=r[0].t).cornerradiusvalue=l,i.cornerradiusform=s}(_),_.length&&function(e,t,r,n,a){var o=new c(n,{posAxis:t,sepNegVal:"relative"===a.mode,overlapNoMerge:!(a.norm||"stack"===a.mode||"relative"===a.mode)});d(t,o,a),function(e,t,r){var n,a,o,s,c,u,f=x(e),d=t.traces;for(s=0;s<d.length;s++)if(n=d[s],"funnel"===(a=n[0].trace).type)for(c=0;c<n.length;c++)(u=n[c]).s!==i&&t.put(u.p,-.5*u.s);for(s=0;s<d.length;s++){n=d[s],a=n[0].trace,o="funnel"===a.type;var h=[];for(c=0;c<n.length;c++)if((u=n[c]).s!==i){var p;p=o?u.s:u.s+u.b;var y=t.put(u.p,p),v=y+p;u.b=y,u[f]=v,r.norm||(h.push(v),u.hasB&&h.push(y))}r.norm||(a._extremes[e._id]=l.findExtremes(e,h,{tozero:!0,padded:!0}))}}(r,o,a);for(var s=0;s<n.length;s++)for(var u=n[s],f=0;f<u.length;f++){var h=u[f];if(h.s!==i){var p=h.b+h.s===o.get(h.p,h.s);p&&(h._outmost=!0)}}a.norm&&m(r,o,a)}(0,t,r,_,u),b.length&&f(t,r,b,u)}!function(e){var t,r,a,i,o,l,s;for(t=0;t<e.length;t++)r=e[t],a=r[0].trace,void 0===(i=r[0].t).cornerradiusvalue&&void 0!==(o=a.marker?a.marker.cornerradius:void 0)&&(l=n(o)?+o:+o.slice(0,-1),s=n(o)?"px":"%",i.cornerradiusvalue=l,i.cornerradiusform=s)}(o),function(e,t){var r,i,o,l=x(t),s={},c=1/0,u=-1/0;for(r=0;r<e.length;r++)for(o=e[r],i=0;i<o.length;i++){var f=o[i].p;n(f)&&(c=Math.min(c,f),u=Math.max(u,f))}var d=1e4/(u-c),h=s.round=function(e){return String(Math.round(d*(e-c)))},p={},y={},v=e.some(function(e){var t=e[0].trace;return"marker"in t&&t.marker.cornerradius});for(r=0;r<e.length;r++){(o=e[r])[0].t.extents=s;var g=o[0].t.poffset,m=a(g);for(i=0;i<o.length;i++){var b=o[i],_=b[l]-b.w/2;if(n(_)){var w=b[l]+b.w/2,k=h(b.p);s[k]?s[k]=[Math.min(_,s[k][0]),Math.max(w,s[k][1])]:s[k]=[_,w]}if(b.p0=b.p+(m?g[i]:g),b.p1=b.p0+b.w,b.s0=b.b,b.s1=b.s0+b.s,v){var T=Math.min(b.s0,b.s1)||0,M=Math.max(b.s0,b.s1)||0,A=b[l];p[A]=A in p?Math.min(p[A],T):T,y[A]=A in y?Math.max(y[A],M):M}}}v&&function(e,t,r,n){for(var a=x(n),i=0;i<e.length;i++)for(var o=e[i],l=0;l<o.length;l++){var s=o[l],c=s[a];s._sMin=t[c],s._sMax=r[c]}}(e,p,y,t)}(o,t)}}function f(e,t,r,n){for(var a=0;a<r.length;a++){var i=r[a],o=new c([i],{posAxis:e,sepNegVal:!1,overlapNoMerge:!n.norm});d(e,o,n),n.norm?(g(o),m(t,o,n)):v(t,o)}}function d(e,t,r){for(var n=t.minDiff,a=t.traces,i=n*(1-r.gap),o=i*(1-(r.groupgap||0)),l=-o/2,s=0;s<a.length;s++){var c=a[s][0].t;c.barwidth=o,c.poffset=l,c.bargroupwidth=i,c.bardelta=n}t.binWidth=a[0][0].t.barwidth/100,h(t),p(e,t),y(e,t)}function h(e){var t,r,i=e.traces;for(t=0;t<i.length;t++){var o,l=i[t],s=l[0],c=s.trace,u=s.t,f=c._offset||c.offset,d=u.poffset;if(a(f)){for(o=Array.prototype.slice.call(f,0,l.length),r=0;r<o.length;r++)n(o[r])||(o[r]=d);for(r=o.length;r<l.length;r++)o.push(d);u.poffset=o}else void 0!==f&&(u.poffset=f);var h=c._width||c.width,p=u.barwidth;if(a(h)){var y=Array.prototype.slice.call(h,0,l.length);for(r=0;r<y.length;r++)n(y[r])||(y[r]=p);for(r=y.length;r<l.length;r++)y.push(p);if(u.barwidth=y,void 0===f){for(o=[],r=0;r<l.length;r++)o.push(d+(p-y[r])/2);u.poffset=o}}else void 0!==h&&(u.barwidth=h,void 0===f&&(u.poffset=d+(p-h)/2))}}function p(e,t){for(var r=t.traces,n=x(e),i=0;i<r.length;i++)for(var o=r[i],l=o[0].t,s=l.poffset,c=a(s),u=l.barwidth,f=a(u),d=0;d<o.length;d++){var h=o[d],p=h.w=f?u[d]:u;void 0===h.p&&(h.p=h[n],h["orig_"+n]=h[n]);var y=(c?s[d]:s)+p/2;h[n]=h.p+y}}function y(e,t,r){var n=t.traces,i=t.minDiff/2;l.minDtick(e,t.minDiff,t.distinctPositions[0],r);for(var o=0;o<n.length;o++){var s,c,u,f,d=n[o],h=d[0],p=h.trace,y=[];for(f=0;f<d.length;f++)c=(s=d[f]).p-i,u=s.p+i,y.push(c,u);if(p.width||p.offset){var v=h.t,g=v.poffset,m=v.barwidth,x=a(g),b=a(m);for(f=0;f<d.length;f++){s=d[f];var _=x?g[f]:g,w=b?m[f]:m;u=(c=s.p+_)+w,y.push(c,u)}}p._extremes[e._id]=l.findExtremes(e,y,{padded:!1})}}function v(e,t){for(var r=t.traces,n=x(e),a=0;a<r.length;a++){for(var i=r[a],o=i[0].trace,s="scatter"===o.type,c="v"===o.orientation,u=[],f=!1,d=0;d<i.length;d++){var h=i[d],p=s?0:h.b,y=s?c?h.y:h.x:p+h.s;h[n]=y,u.push(y),h.hasB&&u.push(p),h.hasB&&h.b||(f=!0)}o._extremes[e._id]=l.findExtremes(e,u,{tozero:f,padded:!0})}}function g(e){for(var t=e.traces,r=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;a++){var o=n[a];o.s!==i&&e.put(o.p,o.b+o.s)}}function m(e,t,r){var a=t.traces,o=x(e),s="fraction"===r.norm?1:100,c=s/1e9,u=e.l2c(e.c2l(0)),f="stack"===r.mode?s:u;function d(t){return n(e.c2l(t))&&(t<u-c||t>f+c||!n(u))}for(var h=0;h<a.length;h++){for(var p=a[h],y=p[0].trace,v=[],g=!1,m=!1,b=0;b<p.length;b++){var _=p[b];if(_.s!==i){var w=Math.abs(s/t.get(_.p,_.s));_.b*=w,_.s*=w;var k=_.b,T=k+_.s;_[o]=T,v.push(T),m=m||d(T),_.hasB&&(v.push(k),m=m||d(k)),_.hasB&&_.b||(g=!0)}}y._extremes[e._id]=l.findExtremes(e,v,{tozero:g,padded:m})}}function x(e){return e._id.charAt(0)}e.exports={crossTraceCalc:function(e,t){for(var r=t.xaxis,n=t.yaxis,a=e._fullLayout,i=e._fullData,l=e.calcdata,s=[],c=[],f=0;f<i.length;f++){var d=i[f];if(!0===d.visible&&o.traceIs(d,"bar")&&d.xaxis===r._id&&d.yaxis===n._id&&("h"===d.orientation?s.push(l[f]):c.push(l[f]),d._computePh))for(var h=e.calcdata[f],p=0;p<h.length;p++)"function"==typeof h[p].ph0&&(h[p].ph0=h[p].ph0()),"function"==typeof h[p].ph1&&(h[p].ph1=h[p].ph1())}var y={xCat:"category"===r.type||"multicategory"===r.type,yCat:"category"===n.type||"multicategory"===n.type,mode:a.barmode,norm:a.barnorm,gap:a.bargap,groupgap:a.bargroupgap};u(e,r,n,c,y),u(e,n,r,s,y)},setGroupPositions:u}},31508:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=r(76308),o=r(24040),l=r(43980),s=r(31147),c=r(55592),u=r(20011),f=r(20832),d=a.coerceFont;function h(e){if(n(e)){if((e=+e)>=0)return e}else if("string"==typeof e&&"%"===(e=e.trim()).slice(-1)&&n(e.slice(0,-1))&&(e=+e.slice(0,-1))>=0)return e+"%"}function p(e,t,r,n,i,o){var l=!(!1===(o=o||{}).moduleHasSelected),s=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),f=!(!1===o.moduleHasTextangle),h=!(!1===o.moduleHasInsideanchor),p=!!o.hasPathbar,y=Array.isArray(i)||"auto"===i,v=y||"inside"===i,g=y||"outside"===i;if(v||g){var m=d(n,"textfont",r.font),x=a.extendFlat({},m),b=!(e.textfont&&e.textfont.color);if(b&&delete x.color,d(n,"insidetextfont",x),p){var _=a.extendFlat({},m);b&&delete _.color,d(n,"pathbar.textfont",_)}g&&d(n,"outsidetextfont",m),l&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),c&&n("constraintext"),u&&n("cliponaxis"),f&&n("textangle"),n("texttemplate")}v&&h&&n("insidetextanchor")}e.exports={supplyDefaults:function(e,t,r,n){function u(r,n){return a.coerce(e,t,f,r,n)}if(l(e,t,n,u)){s(e,t,n,u),u("xhoverformat"),u("yhoverformat"),u("orientation",t.x&&!t.y?"h":"v"),u("base"),u("offset"),u("width"),u("text"),u("hovertext"),u("hovertemplate");var d=u("textposition");p(e,0,n,u,d,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),c(e,t,u,r,n);var h=(t.marker.line||{}).color,y=o.getComponentMethod("errorbars","supplyDefaults");y(e,t,h||i.defaultLine,{axis:"y"}),y(e,t,h||i.defaultLine,{axis:"x",inherit:"y"}),a.coerceSelectionMarkerOpacity(t,u)}else t.visible=!1},crossTraceDefaults:function(e,t){var r,n;function i(e,t){return a.coerce(n._input,n,f,e,t)}for(var o=0;o<e.length;o++)if("bar"===(n=e[o]).type){r=n._input;var l=i("marker.cornerradius",t.barcornerradius);n.marker&&(n.marker.cornerradius=h(l)),"group"===t.barmode&&u(r,n,t,i)}},handleText:p,validateCornerradius:h}},52160:function(e){"use strict";e.exports=function(e,t,r){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),"h"===r.orientation?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},60444:function(e,t,r){"use strict";var n=r(38248),a=r(49760),i=r(3400).isArrayOrTypedArray;t.coerceString=function(e,t,r){if("string"==typeof t){if(t||!e.noBlank)return t}else if(("number"==typeof t||!0===t)&&!e.strict)return String(t);return void 0!==r?r:e.dflt},t.coerceNumber=function(e,t,r){if(n(t)){t=+t;var a=e.min,i=e.max;if(!(void 0!==a&&t<a||void 0!==i&&t>i))return t}return void 0!==r?r:e.dflt},t.coerceColor=function(e,t,r){return a(t).isValid()?t:void 0!==r?r:e.dflt},t.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==r?r:e.dflt},t.getValue=function(e,t){var r;return i(e)?t<e.length&&(r=e[t]):r=e,r},t.getLineWidth=function(e,t){return 0<t.mlw?t.mlw:i(e.marker.line.width)?0:e.marker.line.width}},63400:function(e,t,r){"use strict";var n=r(93024),a=r(24040),i=r(76308),o=r(3400).fillText,l=r(60444).getLineWidth,s=r(54460).hoverLabelText,c=r(39032).BADNUM;function u(e,t,r,a,i){var l,u,f,d,h,p,y,v=e.cd,g=v[0].trace,m=v[0].t,x="closest"===a,b="waterfall"===g.type,_=e.maxHoverDistance,w=e.maxSpikeDistance;"h"===g.orientation?(l=r,u=t,f="y",d="x",h=R,p=P):(l=t,u=r,f="x",d="y",p=R,h=P);var k=g[f+"period"],T=x||k;function M(e){return S(e,-1)}function A(e){return S(e,1)}function S(e,t){var r=e.w;return e[f]+t*r/2}function L(e){return e[f+"End"]-e[f+"Start"]}var O=x?M:k?function(e){return e.p-L(e)/2}:function(e){return Math.min(M(e),e.p-m.bardelta/2)},C=x?A:k?function(e){return e.p+L(e)/2}:function(e){return Math.max(A(e),e.p+m.bardelta/2)};function D(e,t,r){return i.finiteRange&&(r=0),n.inbox(e-l,t-l,r+Math.min(1,Math.abs(t-e)/y)-1)}function P(e){return D(O(e),C(e),_)}function E(e){var t=e[d];if(b){var r=Math.abs(e.rawS)||0;u>0?t+=r:u<0&&(t-=r)}return t}function R(e){var t=u,r=e.b,a=E(e);return n.inbox(r-t,a-t,_+(a-t)/(a-r)-1)}var I=e[f+"a"],z=e[d+"a"];y=Math.abs(I.r2c(I.range[1])-I.r2c(I.range[0]));var N=n.getDistanceFunction(a,h,p,function(e){return(h(e)+p(e))/2});if(n.getClosest(v,N,e),!1!==e.index&&v[e.index].p!==c){T||(O=function(e){return Math.min(M(e),e.p-m.bargroupwidth/2)},C=function(e){return Math.max(A(e),e.p+m.bargroupwidth/2)});var F=v[e.index],j=g.base?F.b+F.s:F.s;e[d+"0"]=e[d+"1"]=z.c2p(F[d],!0),e[d+"LabelVal"]=j;var B=m.extents[m.extents.round(F.p)];e[f+"0"]=I.c2p(x?O(F):B[0],!0),e[f+"1"]=I.c2p(x?C(F):B[1],!0);var H=void 0!==F.orig_p;return e[f+"LabelVal"]=H?F.orig_p:F.p,e.labelLabel=s(I,e[f+"LabelVal"],g[f+"hoverformat"]),e.valueLabel=s(z,e[d+"LabelVal"],g[d+"hoverformat"]),e.baseLabel=s(z,F.b,g[d+"hoverformat"]),e.spikeDistance=(function(e){var t=u,r=e.b,a=E(e);return n.inbox(r-t,a-t,w+(a-t)/(a-r)-1)}(F)+function(e){return D(M(e),A(e),w)}(F))/2,e[f+"Spike"]=I.c2p(F.p,!0),o(F,g,e),e.hovertemplate=g.hovertemplate,e}}function f(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,a=l(e,t);return i.opacity(r)?r:i.opacity(n)&&a?n:void 0}e.exports={hoverPoints:function(e,t,r,n,i){var o=u(e,t,r,n,i);if(o){var l=o.cd,s=l[0].trace,c=l[o.index];return o.color=f(s,c),a.getComponentMethod("errorbars","hoverInfo")(c,s,o),[o]}},hoverOnBars:u,getTraceColor:f}},51132:function(e,t,r){"use strict";e.exports={attributes:r(20832),layoutAttributes:r(39324),supplyDefaults:r(31508).supplyDefaults,crossTraceDefaults:r(31508).crossTraceDefaults,supplyLayoutDefaults:r(37156),calc:r(71820),crossTraceCalc:r(96376).crossTraceCalc,colorbar:r(5528),arraysToCalcdata:r(84664),plot:r(98184).plot,style:r(60100).style,styleOnSelect:r(60100).styleOnSelect,hoverPoints:r(63400).hoverPoints,eventData:r(52160),selectPoints:r(45784),moduleType:"trace",name:"bar",basePlotModule:r(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(e){"use strict";e.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"}}},37156:function(e,t,r){"use strict";var n=r(24040),a=r(54460),i=r(3400),o=r(39324),l=r(31508).validateCornerradius;e.exports=function(e,t,r){function s(r,n){return i.coerce(e,t,o,r,n)}for(var c=!1,u=!1,f=!1,d={},h=s("barmode"),p=0;p<r.length;p++){var y=r[p];if(n.traceIs(y,"bar")&&y.visible){if(c=!0,"group"===h){var v=y.xaxis+y.yaxis;d[v]&&(f=!0),d[v]=!0}if(y.visible&&"histogram"===y.type)"category"!==a.getFromId({_fullLayout:t},y["v"===y.orientation?"xaxis":"yaxis"]).type&&(u=!0)}}if(c){"overlay"!==h&&s("barnorm"),s("bargap",u&&!f?0:.2),s("bargroupgap");var g=s("barcornerradius");t.barcornerradius=l(g)}else delete t.barmode}},98184:function(e,t,r){"use strict";var n=r(33428),a=r(38248),i=r(3400),o=r(72736),l=r(76308),s=r(43616),c=r(24040),u=r(54460).tickText,f=r(82744),d=f.recordMinTextSize,h=f.clearMinTextSize,p=r(60100),y=r(60444),v=r(78048),g=r(20832),m=g.text,x=g.textposition,b=r(10624).appendArrayPointValue,_=v.TEXTPAD;function w(e){return e.id}function k(e){if(e.ids)return w}function T(e){return(e>0)-(e<0)}function M(e,t){return e<t?1:-1}function A(e,t,r,n){var a;return!t.uniformtext.mode&&S(r)?(n&&(a=n()),e.transition().duration(r.duration).ease(r.easing).each("end",function(){a&&a()}).each("interrupt",function(){a&&a()})):e}function S(e){return e&&e.duration>0}function L(e,t,r,n,a){return!(e<0||t<0)&&(r<=e&&n<=t||r<=t&&n<=e||(a?e>=r*(t/n):t>=n*(e/r)))}function O(e){return"auto"===e?0:e}function C(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),a=Math.abs(Math.cos(r));return{x:e.width*a+e.height*n,y:e.width*n+e.height*a}}function D(e,t,r,n,a,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor,u="end"===c,f="start"===c,d=((i.leftToRight||0)+1)/2,h=1-d,p=i.hasB,y=i.r,v=i.overhead,g=a.width,m=a.height,x=Math.abs(t-e),b=Math.abs(n-r),w=x>2*_&&b>2*_?_:0;x-=2*w,b-=2*w;var k=O(s);"auto"!==s||g<=x&&m<=b||!(g>x||m>b)||(g>b||m>x)&&g<m==x<b||(k+=90);var T,A,S=C(a,k);if(y&&y-v>_){var L=function(e,t,r,n,a,i,o,l,s){var c,u,f,d,h,p=Math.max(0,Math.abs(t-e)-2*_),y=Math.max(0,Math.abs(n-r)-2*_),v=i-_,g=o?v-Math.sqrt(v*v-(v-o)*(v-o)):v,m=s?2*v:l?v-o:2*g,x=s?2*v:l?2*g:v-o;a.y/a.x>=y/(p-m)?d=y/a.y:a.y/a.x<=(y-x)/p?d=p/a.x:!s&&l?(c=a.x*a.x+a.y*a.y/4,u=-2*a.x*(p-v)-a.y*(y/2-v),f=(p-v)*(p-v)+(y/2-v)*(y/2-v)-v*v,d=(-u+Math.sqrt(u*u-4*c*f))/(2*c)):s?(c=(a.x*a.x+a.y*a.y)/4,u=-a.x*(p/2-v)-a.y*(y/2-v),f=(p/2-v)*(p/2-v)+(y/2-v)*(y/2-v)-v*v,d=(-u+Math.sqrt(u*u-4*c*f))/(2*c)):(c=a.x*a.x/4+a.y*a.y,u=-a.x*(p/2-v)-2*a.y*(y-v),f=(p/2-v)*(p/2-v)+(y-v)*(y-v)-v*v,d=(-u+Math.sqrt(u*u-4*c*f))/(2*c));d=Math.min(1,d),h=l?Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(y-a.y*d)/2)*(v-(y-a.y*d)/2)))-o):Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(p-a.x*d)/2)*(v-(p-a.x*d)/2)))-o);return{scale:d,pad:h}}(e,t,r,n,S,y,v,o,p);T=L.scale,A=L.pad}else T=1,l&&(T=Math.min(1,x/S.x,b/S.y)),A=0;var D=a.left*h+a.right*d,P=(a.top+a.bottom)/2,E=(e+_)*h+(t-_)*d,R=(r+n)/2,I=0,z=0;if(f||u){var N=(o?S.x:S.y)/2;y&&(u||p)&&(w+=A);var F=o?M(e,t):M(r,n);o?f?(E=e+F*w,I=-F*N):(E=t-F*w,I=F*N):f?(R=r+F*w,z=-F*N):(R=n-F*w,z=F*N)}return{textX:D,textY:P,targetX:E,targetY:R,anchorX:I,anchorY:z,scale:T,rotate:k}}e.exports={plot:function(e,t,r,f,v,g){var w=t.xaxis,P=t.yaxis,E=e._fullLayout,R=e._context.staticPlot;v||(v={mode:E.barmode,norm:E.barmode,gap:E.bargap,groupgap:E.bargroupgap},h("bar",E));var I=i.makeTraceGroups(f,r,"trace bars").each(function(r){var c=n.select(this),f=r[0].trace,h=r[0].t,I="waterfall"===f.type,z="funnel"===f.type,N="histogram"===f.type,F="bar"===f.type,j=F||z,B=0;I&&f.connector.visible&&"between"===f.connector.mode&&(B=f.connector.line.width/2);var H="h"===f.orientation,U=S(v),q=i.ensureSingle(c,"g","points"),Y=k(f),V=q.selectAll("g.point").data(i.identity,Y);V.enter().append("g").classed("point",!0),V.exit().remove(),V.each(function(c,k){var S,I,z=n.select(this),q=function(e,t,r,n){var a=[],i=[],o=n?t:r,l=n?r:t;return a[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),a[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),n?[a,i]:[i,a]}(c,w,P,H),Y=q[0][0],V=q[0][1],G=q[1][0],Z=q[1][1],W=0==(H?V-Y:Z-G);if(W&&j&&y.getLineWidth(f,c)&&(W=!1),W||(W=!(a(Y)&&a(V)&&a(G)&&a(Z))),c.isBlank=W,W&&(H?V=Y:Z=G),B&&!W&&(H?(Y-=M(Y,V)*B,V+=M(Y,V)*B):(G-=M(G,Z)*B,Z+=M(G,Z)*B)),"waterfall"===f.type){if(!W){var J=f[c.dir].marker;S=J.line.width,I=J.color}}else S=y.getLineWidth(f,c),I=c.mc||f.marker.color;function X(e){var t=n.round(S/2%1,2);return 0===v.gap&&0===v.groupgap?n.round(Math.round(e)-t,2):e}var K=l.opacity(I)<1||S>.01?X:function(e,t,r){return r&&e===t?e:Math.abs(e-t)>=2?X(e):e>t?Math.ceil(e):Math.floor(e)};e._context.staticPlot||(Y=K(Y,V,H),V=K(V,Y,H),G=K(G,Z,!H),Z=K(Z,G,!H));var $,Q=H?w.c2p:P.c2p;$=c.s0>0?c._sMax:c.s0<0?c._sMin:c.s1>0?c._sMax:c._sMin;var ee,te,re=F||N?function(e,t){if(!e)return 0;var r,n=H?Math.abs(Z-G):Math.abs(V-Y),a=H?Math.abs(V-Y):Math.abs(Z-G),i=K(Math.abs(Q($,!0)-Q(0,!0))),o=c.hasB?Math.min(n/2,a/2):Math.min(n/2,i);return r="%"===t?n*(Math.min(50,e)/100):e,K(Math.max(Math.min(r,o),0))}(h.cornerradiusvalue,h.cornerradiusform):0,ne="M"+Y+","+G+"V"+Z+"H"+V+"V"+G+"Z",ae=0;if(re&&c.s){var ie=0===T(c.s0)||T(c.s)===T(c.s0)?c.s1:c.s0;if((ae=K(c.hasB?0:Math.abs(Q($,!0)-Q(ie,!0))))<re){var oe=M(Y,V),le=M(G,Z),se=oe===-le?1:0;if(H)if(c.hasB)ee="M"+(Y+re*oe)+","+G+"A "+re+","+re+" 0 0 "+se+" "+Y+","+(G+re*le)+"V"+(Z-re*le)+"A "+re+","+re+" 0 0 "+se+" "+(Y+re*oe)+","+Z+"H"+(V-re*oe)+"A "+re+","+re+" 0 0 "+se+" "+V+","+(Z-re*le)+"V"+(G+re*le)+"A "+re+","+re+" 0 0 "+se+" "+(V-re*oe)+","+G+"Z";else{var ce=(te=Math.abs(V-Y)+ae)<re?re-Math.sqrt(te*(2*re-te)):0,ue=ae>0?Math.sqrt(ae*(2*re-ae)):0,fe=oe>0?Math.max:Math.min;ee="M"+Y+","+G+"V"+(Z-ce*le)+"H"+fe(V-(re-ae)*oe,Y)+"A "+re+","+re+" 0 0 "+se+" "+V+","+(Z-re*le-ue)+"V"+(G+re*le+ue)+"A "+re+","+re+" 0 0 "+se+" "+fe(V-(re-ae)*oe,Y)+","+(G+ce*le)+"Z"}else if(c.hasB)ee="M"+(Y+re*oe)+","+G+"A "+re+","+re+" 0 0 "+se+" "+Y+","+(G+re*le)+"V"+(Z-re*le)+"A "+re+","+re+" 0 0 "+se+" "+(Y+re*oe)+","+Z+"H"+(V-re*oe)+"A "+re+","+re+" 0 0 "+se+" "+V+","+(Z-re*le)+"V"+(G+re*le)+"A "+re+","+re+" 0 0 "+se+" "+(V-re*oe)+","+G+"Z";else{var de=(te=Math.abs(Z-G)+ae)<re?re-Math.sqrt(te*(2*re-te)):0,he=ae>0?Math.sqrt(ae*(2*re-ae)):0,pe=le>0?Math.max:Math.min;ee="M"+(Y+de*oe)+","+G+"V"+pe(Z-(re-ae)*le,G)+"A "+re+","+re+" 0 0 "+se+" "+(Y+re*oe-he)+","+Z+"H"+(V-re*oe+he)+"A "+re+","+re+" 0 0 "+se+" "+(V-de*oe)+","+pe(Z-(re-ae)*le,G)+"V"+G+"Z"}}else ee=ne}else ee=ne;var ye=A(i.ensureSingle(z,"path"),E,v,g);if(ye.style("vector-effect",R?"none":"non-scaling-stroke").attr("d",isNaN((V-Y)*(Z-G))||W&&e._context.staticPlot?"M0,0Z":ee).call(s.setClipUrl,t.layerClipId,e),!E.uniformtext.mode&&U){var ve=s.makePointStyleFns(f);s.singlePointStyle(c,ye,f,ve,e)}!function(e,t,r,n,a,l,c,f,h,v,g,w,k){var T,S=t.xaxis,P=t.yaxis,E=e._fullLayout;function R(t,r,n){var a=i.ensureSingle(t,"text").text(r).attr({class:"bartext bartext-"+T,"text-anchor":"middle","data-notex":1}).call(s.font,n).call(o.convertToTspans,e);return a}var I=n[0].trace,z="h"===I.orientation,N=function(e,t,r,n,a){var o,l=t[0].trace;return o=l.texttemplate?function(e,t,r,n,a){var o=t[0].trace,l=i.castOption(o,r,"texttemplate");if(!l)return"";var s,c,f,d,h="histogram"===o.type,p="waterfall"===o.type,y="funnel"===o.type,v="h"===o.orientation;function g(e){return u(d,d.c2l(e),!0).text}v?(s="y",c=a,f="x",d=n):(s="x",c=n,f="y",d=a);var m,x=t[r],_={};_.label=x.p,_.labelLabel=_[s+"Label"]=(m=x.p,u(c,c.c2l(m),!0).text);var w=i.castOption(o,x.i,"text");(0===w||w)&&(_.text=w),_.value=x.s,_.valueLabel=_[f+"Label"]=g(x.s);var k={};b(k,o,x.i),(h||void 0===k.x)&&(k.x=v?_.value:_.label),(h||void 0===k.y)&&(k.y=v?_.label:_.value),(h||void 0===k.xLabel)&&(k.xLabel=v?_.valueLabel:_.labelLabel),(h||void 0===k.yLabel)&&(k.yLabel=v?_.labelLabel:_.valueLabel),p&&(_.delta=+x.rawS||x.s,_.deltaLabel=g(_.delta),_.final=x.v,_.finalLabel=g(_.final),_.initial=_.final-_.delta,_.initialLabel=g(_.initial)),y&&(_.value=x.s,_.valueLabel=g(_.value),_.percentInitial=x.begR,_.percentInitialLabel=i.formatPercent(x.begR),_.percentPrevious=x.difR,_.percentPreviousLabel=i.formatPercent(x.difR),_.percentTotal=x.sumR,_.percenTotalLabel=i.formatPercent(x.sumR));var T=i.castOption(o,x.i,"customdata");return T&&(_.customdata=T),i.texttemplateString(l,_,e._d3locale,k,_,o._meta||{})}(e,t,r,n,a):l.textinfo?function(e,t,r,n){var a=e[0].trace,o="h"===a.orientation,l="waterfall"===a.type,s="funnel"===a.type;function c(e){var t=o?r:n;return u(t,+e,!0).text}var f,d,h=a.textinfo,p=e[t],y=h.split("+"),v=[],g=function(e){return-1!==y.indexOf(e)};if(g("label")&&v.push((d=e[t].p,u(o?n:r,d,!0).text)),g("text")&&(0===(f=i.castOption(a,p.i,"text"))||f)&&v.push(f),l){var m=+p.rawS||p.s,x=p.v,b=x-m;g("initial")&&v.push(c(b)),g("delta")&&v.push(c(m)),g("final")&&v.push(c(x))}if(s){g("value")&&v.push(c(p.s));var _=0;g("percent initial")&&_++,g("percent previous")&&_++,g("percent total")&&_++;var w=_>1;g("percent initial")&&(f=i.formatPercent(p.begR),w&&(f+=" of initial"),v.push(f)),g("percent previous")&&(f=i.formatPercent(p.difR),w&&(f+=" of previous"),v.push(f)),g("percent total")&&(f=i.formatPercent(p.sumR),w&&(f+=" of total"),v.push(f))}return v.join("<br>")}(t,r,n,a):y.getValue(l.text,r),y.coerceString(m,o)}(E,n,a,S,P);T=function(e,t){var r=y.getValue(e.textposition,t);return y.coerceEnumerated(x,r)}(I,a);var F="stack"===w.mode||"relative"===w.mode,j=n[a],B=!F||j._outmost,H=j.hasB,U=v&&v-g>_;if(N&&"none"!==T&&(!j.isBlank&&l!==c&&f!==h||"auto"!==T&&"inside"!==T)){var q=E.font,Y=p.getBarColor(n[a],I),V=p.getInsideTextFont(I,a,q,Y),G=p.getOutsideTextFont(I,a,q),Z=I.insidetextanchor||"end",W=r.datum();z?"log"===S.type&&W.s0<=0&&(l=S.range[0]<S.range[1]?0:S._length):"log"===P.type&&W.s0<=0&&(f=P.range[0]<P.range[1]?P._length:0);var J,X,K,$,Q,ee=Math.abs(c-l),te=Math.abs(h-f),re=ee-2*_,ne=te-2*_;if("outside"===T&&(B||j.hasB||(T="inside")),"auto"===T)if(B){T="inside",Q=i.ensureUniformFontSize(e,V),J=R(r,N,Q),X=s.bBox(J.node()),K=X.width,$=X.height;var ae,ie=K>0&&$>0;ae=U?H?L(re-2*v,ne,K,$,z)||L(re,ne-2*v,K,$,z):z?L(re-(v-g),ne,K,$,z)||L(re,ne-2*(v-g),K,$,z):L(re,ne-(v-g),K,$,z)||L(re-2*(v-g),ne,K,$,z):L(re,ne,K,$,z),ie&&ae?T="inside":(T="outside",J.remove(),J=null)}else T="inside";if(!J){Q=i.ensureUniformFontSize(e,"outside"===T?G:V);var oe=(J=R(r,N,Q)).attr("transform");if(J.attr("transform",""),X=s.bBox(J.node()),K=X.width,$=X.height,J.attr("transform",oe),K<=0||$<=0)return void J.remove()}var le,se,ce=I.textangle;"outside"===T?(se="both"===I.constraintext||"outside"===I.constraintext,le=function(e,t,r,n,a,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,u=a.width,f=a.height,d=Math.abs(t-e),h=Math.abs(n-r);o=l?h>2*_?_:0:d>2*_?_:0;var p=1;s&&(p=l?Math.min(1,h/f):Math.min(1,d/u));var y=O(c),v=C(a,y),g=(l?v.x:v.y)/2,m=(a.left+a.right)/2,x=(a.top+a.bottom)/2,b=(e+t)/2,w=(r+n)/2,k=0,T=0,A=l?M(t,e):M(r,n);return l?(b=t-A*o,k=A*g):(w=n+A*o,T=-A*g),{textX:m,textY:x,targetX:b,targetY:w,anchorX:k,anchorY:T,scale:p,rotate:y}}(l,c,f,h,X,{isHorizontal:z,constrained:se,angle:ce})):(se="both"===I.constraintext||"inside"===I.constraintext,le=D(l,c,f,h,X,{isHorizontal:z,constrained:se,angle:ce,anchor:Z,hasB:H,r:v,overhead:g})),le.fontSize=Q.size,d("histogram"===I.type?"bar":I.type,le,E),j.transform=le;var ue=A(J,E,w,k);i.setTransormAndDisplay(ue,le)}else r.select("text").remove()}(e,t,z,r,k,Y,V,G,Z,re,ae,v,g),t.layerClipId&&s.hideOutsideRangePoint(c,z.select("text"),w,P,f.xcalendar,f.ycalendar)});var G=!1===f.cliponaxis;s.setClipUrl(c,G?null:t.layerClipId,e)});c.getComponentMethod("errorbars","plot")(e,I,t,v)},toMoveInsideBar:D}},45784:function(e){"use strict";function t(e,t,r,n,a){var i=t.c2p(n?e.s0:e.p0,!0),o=t.c2p(n?e.s1:e.p1,!0),l=r.c2p(n?e.p0:e.s0,!0),s=r.c2p(n?e.p1:e.s1,!0);return a?[(i+o)/2,(l+s)/2]:n?[o,(l+s)/2]:[(i+o)/2,s]}e.exports=function(e,r){var n,a=e.cd,i=e.xaxis,o=e.yaxis,l=a[0].trace,s="funnel"===l.type,c="h"===l.orientation,u=[];if(!1===r)for(n=0;n<a.length;n++)a[n].selected=0;else for(n=0;n<a.length;n++){var f=a[n],d="ct"in f?f.ct:t(f,i,o,c,s);r.contains(d,!1,n,e)?(u.push({pointNumber:n,x:i.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},72592:function(e,t,r){"use strict";e.exports=a;var n=r(3400).distinctVals;function a(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,a=t.posAxis._id.charAt(0),i=[],o=0;o<e.length;o++){for(var l=e[o],s=0;s<l.length;s++){var c=l[s],u=c.p;void 0===u&&(u=c[a]),void 0!==u&&i.push(u)}l[0]&&l[0].width1&&(r=Math.min(l[0].width1,r))}this.positions=i;var f=n(i);this.distinctPositions=f.vals,1===f.vals.length&&r!==1/0?this.minDiff=r:this.minDiff=Math.min(f.minDiff,r);var d=(t.posAxis||{}).type;"category"!==d&&"multicategory"!==d||(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(e,t){var r=this.getLabel(e,t),n=this.bins[r]||0;return this.bins[r]=n+t,n},a.prototype.get=function(e,t){var r=this.getLabel(e,t);return this.bins[r]||0},a.prototype.getLabel=function(e,t){return(t<0&&this.sepNegVal?"v":"^")+(this.overlapNoMerge?e:Math.round(e/this.binWidth))}},60100:function(e,t,r){"use strict";var n=r(33428),a=r(76308),i=r(43616),o=r(3400),l=r(24040),s=r(82744).resizeText,c=r(20832),u=c.textfont,f=c.insidetextfont,d=c.outsidetextfont,h=r(60444);function p(e,t,r){i.pointStyle(e.selectAll("path"),t,r),y(e,t,r)}function y(e,t,r){e.selectAll("text").each(function(e){var a=n.select(this),l=o.ensureUniformFontSize(r,v(a,e,t,r));i.font(a,l)})}function v(e,t,r,n){var a=n._fullLayout.font,i=r.textfont;if(e.classed("bartext-inside")){var o=_(t,r);i=m(r,t.i,a,o)}else e.classed("bartext-outside")&&(i=x(r,t.i,a));return i}function g(e,t,r){return b(u,e.textfont,t,r)}function m(e,t,r,n){var i=g(e,t,r);return(void 0===e._input.textfont||void 0===e._input.textfont.color||Array.isArray(e.textfont.color)&&void 0===e.textfont.color[t])&&(i={color:a.contrast(n),family:i.family,size:i.size}),b(f,e.insidetextfont,t,i)}function x(e,t,r){var n=g(e,t,r);return b(d,e.outsidetextfont,t,n)}function b(e,t,r,n){t=t||{};var a=h.getValue(t.family,r),i=h.getValue(t.size,r),o=h.getValue(t.color,r);return{family:h.coerceString(e.family,a,n.family),size:h.coerceNumber(e.size,i,n.size),color:h.coerceColor(e.color,o,n.color)}}function _(e,t){return"waterfall"===t.type?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}e.exports={style:function(e){var t=n.select(e).selectAll("g.barlayer").selectAll("g.trace");s(e,t,"bar");var r=t.size(),a=e._fullLayout;t.style("opacity",function(e){return e[0].trace.opacity}).each(function(e){("stack"===a.barmode&&r>1||0===a.bargap&&0===a.bargroupgap&&!e[0].trace.marker.line.width)&&n.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(t){p(n.select(this),t[0].trace,e)}),l.getComponentMethod("errorbars","style")(t)},styleTextPoints:y,styleOnSelect:function(e,t,r){var a=t[0].trace;a.selectedpoints?function(e,t,r){i.selectedPointStyle(e.selectAll("path"),t),function(e,t,r){e.each(function(e){var a,l=n.select(this);if(e.selected){a=o.ensureUniformFontSize(r,v(l,e,t,r));var s=t.selected.textfont&&t.selected.textfont.color;s&&(a.color=s),i.font(l,a)}else i.selectedTextStyle(l,t)})}(e.selectAll("text"),t,r)}(r,a,e):(p(r,a,e),l.getComponentMethod("errorbars","style")(r))},getInsideTextFont:m,getOutsideTextFont:x,getBarColor:_,resizeText:s}},55592:function(e,t,r){"use strict";var n=r(76308),a=r(94288).hasColorscale,i=r(27260),o=r(3400).coercePattern;e.exports=function(e,t,r,l,s){var c=r("marker.color",l),u=a(e,"marker");u&&i(e,t,s,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",n.defaultLine),a(e,"marker.line")&&i(e,t,s,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),o(r,"marker.pattern",c,u),r("selected.marker.color"),r("unselected.marker.color")}},82744:function(e,t,r){"use strict";var n=r(33428),a=r(3400);function i(e){return"_"+e+"Text_minsize"}e.exports={recordMinTextSize:function(e,t,r){if(r.uniformtext.mode){var n=i(e),a=r.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=o<a,r[n]=r[n]||1/0,t.hide||(r[n]=Math.min(r[n],Math.max(o,a)))}},clearMinTextSize:function(e,t){t[i(e)]=void 0},resizeText:function(e,t,r){var i=e._fullLayout,o=i["_"+r+"Text_minsize"];if(o){var l,s="hide"===i.uniformtext.mode;switch(r){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}t.selectAll(l).each(function(e){var t=e.transform;if(t){t.scale=s&&t.hide?0:o/t.fontSize;var r=n.select(this).select("text");a.setTransormAndDisplay(r,t)}})}}}},63188:function(e,t,r){"use strict";var n=r(98304),a=r(52904),i=r(20832),o=r(22548),l=r(29736).axisHoverFormat,s=r(21776).Ks,c=r(92880).extendFlat,u=a.marker,f=u.line;e.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:a.xperiod,yperiod:a.yperiod,xperiod0:a.xperiod0,yperiod0:a.yperiod0,xperiodalignment:a.xperiodalignment,yperiodalignment:a.yperiodalignment,xhoverformat:l("x"),yhoverformat:l("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:c({},u.symbol,{arrayOk:!1,editType:"plot"}),opacity:c({},u.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:c({},u.angle,{arrayOk:!1,editType:"calc"}),size:c({},u.size,{arrayOk:!1,editType:"calc"}),color:c({},u.color,{arrayOk:!1,editType:"style"}),line:{color:c({},f.color,{arrayOk:!1,dflt:o.defaultLine,editType:"style"}),width:c({},f.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:n(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:a.selected.marker,editType:"style"},unselected:{marker:a.unselected.marker,editType:"style"},text:c({},a.text,{}),hovertext:c({},a.hovertext,{}),hovertemplate:s({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},62555:function(e,t,r){"use strict";var n=r(38248),a=r(54460),i=r(1220),o=r(3400),l=r(39032).BADNUM,s=o._;e.exports=function(e,t){var r,c,m,x,b,_,w,k=e._fullLayout,T=a.getFromId(e,t.xaxis||"x"),M=a.getFromId(e,t.yaxis||"y"),A=[],S="violin"===t.type?"_numViolins":"_numBoxes";"h"===t.orientation?(m=T,x="x",b=M,_="y",w=!!t.yperiodalignment):(m=M,x="y",b=T,_="x",w=!!t.xperiodalignment);var L,O,C,D,P,E,R=function(e,t,r,a){var l,s=t+"0"in e,c="d"+t in e;if(t in e||s&&c){var u=r.makeCalcdata(e,t),f=i(e,r,t,u).vals;return[f,u]}l=s?e[t+"0"]:"name"in e&&("category"===r.type||n(e.name)&&-1!==["linear","log"].indexOf(r.type)||o.isDateTime(e.name)&&"date"===r.type)?e.name:a;for(var d="multicategory"===r.type?r.r2c_just_indices(l):r.d2c(l,0,e[t+"calendar"]),h=e._length,p=new Array(h),y=0;y<h;y++)p[y]=d;return[p]}(t,_,b,k[S]),I=R[0],z=R[1],N=o.distinctVals(I,b),F=N.vals,j=N.minDiff/2,B="all"===(t.boxpoints||t.points)?o.identity:function(e){return e.v<L.lf||e.v>L.uf};if(t._hasPreCompStats){var H=t[x],U=function(e){return m.d2c((t[e]||[])[r])},q=1/0,Y=-1/0;for(r=0;r<t._length;r++){var V=I[r];if(n(V)){if((L={}).pos=L[_]=V,w&&z&&(L.orig_p=z[r]),L.q1=U("q1"),L.med=U("median"),L.q3=U("q3"),O=[],H&&o.isArrayOrTypedArray(H[r]))for(c=0;c<H[r].length;c++)(E=m.d2c(H[r][c]))!==l&&(u(P={v:E,i:[r,c]},t,[r,c]),O.push(P));if(L.pts=O.sort(f),D=(C=L[x]=O.map(d)).length,L.med!==l&&L.q1!==l&&L.q3!==l&&L.med>=L.q1&&L.q3>=L.med){var G=U("lowerfence");L.lf=G!==l&&G<=L.q1?G:h(L,C,D);var Z=U("upperfence");L.uf=Z!==l&&Z>=L.q3?Z:p(L,C,D);var W=U("mean");L.mean=W!==l?W:D?o.mean(C,D):(L.q1+L.q3)/2;var J=U("sd");L.sd=W!==l&&J>=0?J:D?o.stdev(C,D,L.mean):L.q3-L.q1,L.lo=y(L),L.uo=v(L);var X=U("notchspan");X=X!==l&&X>0?X:g(L,D),L.ln=L.med-X,L.un=L.med+X;var K=L.lf,$=L.uf;t.boxpoints&&C.length&&(K=Math.min(K,C[0]),$=Math.max($,C[D-1])),t.notched&&(K=Math.min(K,L.ln),$=Math.max($,L.un)),L.min=K,L.max=$}else{var Q;o.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join("\n")),Q=L.med!==l?L.med:L.q1!==l?L.q3!==l?(L.q1+L.q3)/2:L.q1:L.q3!==l?L.q3:0,L.med=Q,L.q1=L.q3=Q,L.lf=L.uf=Q,L.mean=L.sd=Q,L.ln=L.un=Q,L.min=L.max=Q}q=Math.min(q,L.min),Y=Math.max(Y,L.max),L.pts2=O.filter(B),A.push(L)}}t._extremes[m._id]=a.findExtremes(m,[q,Y],{padded:!0})}else{var ee=m.makeCalcdata(t,x),te=function(e,t){for(var r=e.length,n=new Array(r+1),a=0;a<r;a++)n[a]=e[a]-t;return n[r]=e[r-1]+t,n}(F,j),re=F.length,ne=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=[];return t}(re);for(r=0;r<t._length;r++)if(E=ee[r],n(E)){var ae=o.findBin(I[r],te);ae>=0&&ae<re&&(u(P={v:E,i:r},t,r),ne[ae].push(P))}var ie=1/0,oe=-1/0,le=t.quartilemethod,se="exclusive"===le,ce="inclusive"===le;for(r=0;r<re;r++)if(ne[r].length>0){var ue,fe;if((L={}).pos=L[_]=F[r],O=L.pts=ne[r].sort(f),D=(C=L[x]=O.map(d)).length,L.min=C[0],L.max=C[D-1],L.mean=o.mean(C,D),L.sd=o.stdev(C,D,L.mean)*t.sdmultiple,L.med=o.interp(C,.5),D%2&&(se||ce))se?(ue=C.slice(0,D/2),fe=C.slice(D/2+1)):ce&&(ue=C.slice(0,D/2+1),fe=C.slice(D/2)),L.q1=o.interp(ue,.5),L.q3=o.interp(fe,.5);else L.q1=o.interp(C,.25),L.q3=o.interp(C,.75);L.lf=h(L,C,D),L.uf=p(L,C,D),L.lo=y(L),L.uo=v(L);var de=g(L,D);L.ln=L.med-de,L.un=L.med+de,ie=Math.min(ie,L.ln),oe=Math.max(oe,L.un),L.pts2=O.filter(B),A.push(L)}t.notched&&o.isTypedArray(ee)&&(ee=Array.from(ee)),t._extremes[m._id]=a.findExtremes(m,t.notched?ee.concat([ie,oe]):ee,{padded:!0})}return function(e,t){if(o.isArrayOrTypedArray(t.selectedpoints))for(var r=0;r<e.length;r++){for(var n=e[r].pts||[],a={},i=0;i<n.length;i++)a[n[i].i]=i;o.tagSelected(n,t,a)}}(A,t),A.length>0?(A[0].t={num:k[S],dPos:j,posLetter:_,valLetter:x,labels:{med:s(e,"median:"),min:s(e,"min:"),q1:s(e,"q1:"),q3:s(e,"q3:"),max:s(e,"max:"),mean:"sd"===t.boxmean||"sd"===t.sizemode?s(e,"mean ± σ:").replace("σ",1===t.sdmultiple?"σ":t.sdmultiple+"σ"):s(e,"mean:"),lf:s(e,"lower fence:"),uf:s(e,"upper fence:")}},k[S]++,A):[{t:{empty:!0}}]};var c={text:"tx",hovertext:"htx"};function u(e,t,r){for(var n in c)o.isArrayOrTypedArray(t[n])&&(Array.isArray(r)?o.isArrayOrTypedArray(t[n][r[0]])&&(e[c[n]]=t[n][r[0]][r[1]]):e[c[n]]=t[n][r])}function f(e,t){return e.v-t.v}function d(e){return e.v}function h(e,t,r){return 0===r?e.q1:Math.min(e.q1,t[Math.min(o.findBin(2.5*e.q1-1.5*e.q3,t,!0)+1,r-1)])}function p(e,t,r){return 0===r?e.q3:Math.max(e.q3,t[Math.max(o.findBin(2.5*e.q3-1.5*e.q1,t),0)])}function y(e){return 4*e.q1-3*e.q3}function v(e){return 4*e.q3-3*e.q1}function g(e,t){return 0===t?0:1.57*(e.q3-e.q1)/Math.sqrt(t)}},96404:function(e,t,r){"use strict";var n=r(54460),a=r(3400),i=r(71888).getAxisGroup,o=["v","h"];function l(e,t,r,o){var l,s,c,u=t.calcdata,f=t._fullLayout,d=o._id,h=d.charAt(0),p=[],y=0;for(l=0;l<r.length;l++)for(c=u[r[l]],s=0;s<c.length;s++)p.push(o.c2l(c[s].pos,!0)),y+=(c[s].pts2||[]).length;if(p.length){var v=a.distinctVals(p);"category"!==o.type&&"multicategory"!==o.type||(v.minDiff=1);var g=v.minDiff/2;n.minDtick(o,v.minDiff,v.vals[0],!0);var m=f["violin"===e?"_numViolins":"_numBoxes"],x="group"===f[e+"mode"]&&m>1,b=1-f[e+"gap"],_=1-f[e+"groupgap"];for(l=0;l<r.length;l++){var w,k,T,M,A,S,L=(c=u[r[l]])[0].trace,O=c[0].t,C=L.width,D=L.side;if(C)w=k=M=C/2,T=0;else if(w=g,x){var P=i(f,o._id)+L.orientation,E=(f._alignmentOpts[P]||{})[L.alignmentgroup]||{},R=Object.keys(E.offsetGroups||{}).length,I=R||m;k=w*b*_/I,T=2*w*(((R?L._offsetIndex:O.num)+.5)/I-.5)*b,M=w*b/I}else k=w*b*_,T=0,M=w;O.dPos=w,O.bPos=T,O.bdPos=k,O.wHover=M;var z,N,F,j,B,H,U=T+k,q=Boolean(C);if("positive"===D?(A=w*(C?1:.5),z=U,S=z=T):"negative"===D?(A=z=T,S=w*(C?1:.5),N=U):(A=S=w,z=N=U),(L.boxpoints||L.points)&&y>0){var Y=L.pointpos,V=L.jitter,G=L.marker.size/2,Z=0;Y+V>=0&&((Z=U*(Y+V))>A?(q=!0,B=G,F=Z):Z>z&&(B=G,F=A)),Z<=A&&(F=A);var W=0;Y-V<=0&&((W=-U*(Y-V))>S?(q=!0,H=G,j=W):W>N&&(H=G,j=S)),W<=S&&(j=S)}else F=A,j=S;var J=new Array(c.length);for(s=0;s<c.length;s++)J[s]=c[s].pos;L._extremes[d]=n.findExtremes(o,J,{padded:q,vpadminus:j,vpadplus:F,vpadLinearized:!0,ppadminus:{x:H,y:B}[h],ppadplus:{x:B,y:H}[h]})}}}e.exports={crossTraceCalc:function(e,t){for(var r=e.calcdata,n=t.xaxis,a=t.yaxis,i=0;i<o.length;i++){for(var s=o[i],c="h"===s?a:n,u=[],f=0;f<r.length;f++){var d=r[f],h=d[0].t,p=d[0].trace;!0!==p.visible||"box"!==p.type&&"candlestick"!==p.type||h.empty||(p.orientation||"v")!==s||p.xaxis!==n._id||p.yaxis!==a._id||u.push(f)}l("box",e,u,c)}},setPositionOffset:l}},90624:function(e,t,r){"use strict";var n=r(3400),a=r(24040),i=r(76308),o=r(31147),l=r(20011),s=r(52976),c=r(63188);function u(e,t,r,i){function o(e){var t=0;return e&&e.length&&(t+=1,n.isArrayOrTypedArray(e[0])&&e[0].length&&(t+=1)),t}function l(t){return n.validate(e[t],c[t])}var u,f=r("y"),d=r("x");if("box"===t.type){var h=r("q1"),p=r("median"),y=r("q3");t._hasPreCompStats=h&&h.length&&p&&p.length&&y&&y.length,u=Math.min(n.minRowLength(h),n.minRowLength(p),n.minRowLength(y))}var v,g,m=o(f),x=o(d),b=m&&n.minRowLength(f),_=x&&n.minRowLength(d),w=i.calendar,k={autotypenumbers:i.autotypenumbers};if(t._hasPreCompStats)switch(String(x)+String(m)){case"00":var T=l("x0")||l("dx");v=(l("y0")||l("dy"))&&!T?"h":"v",g=u;break;case"10":v="v",g=Math.min(u,_);break;case"20":v="h",g=Math.min(u,d.length);break;case"01":v="h",g=Math.min(u,b);break;case"02":v="v",g=Math.min(u,f.length);break;case"12":v="v",g=Math.min(u,_,f.length);break;case"21":v="h",g=Math.min(u,d.length,b);break;case"11":g=0;break;case"22":var M,A=!1;for(M=0;M<d.length;M++)if("category"===s(d[M],w,k)){A=!0;break}if(A)v="v",g=Math.min(u,_,f.length);else{for(M=0;M<f.length;M++)if("category"===s(f[M],w,k)){A=!0;break}A?(v="h",g=Math.min(u,d.length,b)):(v="v",g=Math.min(u,_,f.length))}}else m>0?(v="v",g=x>0?Math.min(_,b):Math.min(b)):x>0?(v="h",g=Math.min(_)):g=0;if(g){t._length=g;var S=r("orientation",v);t._hasPreCompStats?"v"===S&&0===x?(r("x0",0),r("dx",1)):"h"===S&&0===m&&(r("y0",0),r("dy",1)):"v"===S&&0===x?r("x0"):"h"===S&&0===m&&r("y0"),a.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],i)}else t.visible=!1}function f(e,t,r,a){var i=a.prefix,o=n.coerce2(e,t,c,"marker.outliercolor"),l=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(o||l)&&(s="suspectedoutliers");var u=r(i+"points",s);u?(r("jitter","all"===u?.3:0),r("pointpos","all"===u?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),"suspectedoutliers"===u&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var f=r("hoveron");"all"!==f&&-1===f.indexOf("points")||r("hovertemplate"),n.coerceSelectionMarkerOpacity(t,r)}e.exports={supplyDefaults:function(e,t,r,a){function l(r,a){return n.coerce(e,t,c,r,a)}if(u(e,t,l,a),!1!==t.visible){o(e,t,a,l),l("xhoverformat"),l("yhoverformat");var s=t._hasPreCompStats;s&&(l("lowerfence"),l("upperfence")),l("line.color",(e.marker||{}).color||r),l("line.width"),l("fillcolor",i.addOpacity(t.line.color,.5));var d=!1;if(s){var h=l("mean"),p=l("sd");h&&h.length&&(d=!0,p&&p.length&&(d="sd"))}l("whiskerwidth");var y,v=l("sizemode");"quartiles"===v&&(y=l("boxmean",d)),l("showwhiskers","quartiles"===v),"sd"!==v&&"sd"!==y||l("sdmultiple"),l("width"),l("quartilemethod");var g=!1;if(s){var m=l("notchspan");m&&m.length&&(g=!0)}else n.validate(e.notchwidth,c.notchwidth)&&(g=!0);l("notched",g)&&l("notchwidth"),f(e,t,l,{prefix:"box"})}},crossTraceDefaults:function(e,t){var r,a;function i(e){return n.coerce(a._input,a,c,e)}for(var o=0;o<e.length;o++){var s=(a=e[o]).type;"box"!==s&&"violin"!==s||(r=a._input,"group"===t[s+"mode"]&&l(r,a,t,i))}},handleSampleDefaults:u,handlePointsDefaults:f}},10392:function(e){"use strict";e.exports=function(e,t){return t.hoverOnBox&&(e.hoverOnBox=t.hoverOnBox),"xVal"in t&&(e.x=t.xVal),"yVal"in t&&(e.y=t.yVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},27576:function(e,t,r){"use strict";var n=r(54460),a=r(3400),i=r(93024),o=r(76308),l=a.fillText;function s(e,t,r,l){var s,c,u,f,d,h,p,y,v,g,m,x,b,_,w=e.cd,k=e.xa,T=e.ya,M=w[0].trace,A=w[0].t,S="violin"===M.type,L=A.bdPos,O=A.wHover,C=function(e){return u.c2l(e.pos)+A.bPos-u.c2l(h)};S&&"both"!==M.side?("positive"===M.side&&(v=function(e){var t=C(e);return i.inbox(t,t+O,g)},x=L,b=0),"negative"===M.side&&(v=function(e){var t=C(e);return i.inbox(t-O,t,g)},x=0,b=L)):(v=function(e){var t=C(e);return i.inbox(t-O,t+O,g)},x=b=L),_=S?function(e){return i.inbox(e.span[0]-d,e.span[1]-d,g)}:function(e){return i.inbox(e.min-d,e.max-d,g)},"h"===M.orientation?(d=t,h=r,p=_,y=v,s="y",u=T,c="x",f=k):(d=r,h=t,p=v,y=_,s="x",u=k,c="y",f=T);var D=Math.min(1,L/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function P(e){return(p(e)+y(e))/2}g=e.maxHoverDistance-D,m=e.maxSpikeDistance-D;var E=i.getDistanceFunction(l,p,y,P);if(i.getClosest(w,E,e),!1===e.index)return[];var R=w[e.index],I=M.line.color,z=(M.marker||{}).color;o.opacity(I)&&M.line.width?e.color=I:o.opacity(z)&&M.boxpoints?e.color=z:e.color=M.fillcolor,e[s+"0"]=u.c2p(R.pos+A.bPos-b,!0),e[s+"1"]=u.c2p(R.pos+A.bPos+x,!0),e[s+"LabelVal"]=void 0!==R.orig_p?R.orig_p:R.pos;var N=s+"Spike";e.spikeDistance=P(R)*m/g,e[N]=u.c2p(R.pos,!0);var F=M.boxmean||"sd"===M.sizemode||(M.meanline||{}).visible,j=M.boxpoints||M.points,B=j&&F?["max","uf","q3","med","mean","q1","lf","min"]:j&&!F?["max","uf","q3","med","q1","lf","min"]:!j&&F?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],H=f.range[1]<f.range[0];M.orientation===(H?"v":"h")&&B.reverse();for(var U=e.spikeDistance,q=e[N],Y=[],V=0;V<B.length;V++){var G=B[V];if(G in R){var Z=R[G],W=f.c2p(Z,!0),J=a.extendFlat({},e);J.attr=G,J[c+"0"]=J[c+"1"]=W,J[c+"LabelVal"]=Z,J[c+"Label"]=(A.labels?A.labels[G]+" ":"")+n.hoverLabelText(f,Z,M[c+"hoverformat"]),J.hoverOnBox=!0,"mean"===G&&"sd"in R&&("sd"===M.boxmean||"sd"===M.sizemode)&&(J[c+"err"]=R.sd),J.hovertemplate=!1,Y.push(J)}}e.name="",e.spikeDistance=void 0,e[N]=void 0;for(var X=0;X<Y.length;X++)"med"!==Y[X].attr?(Y[X].name="",Y[X].spikeDistance=void 0,Y[X][N]=void 0):(Y[X].spikeDistance=U,Y[X][N]=q);return Y}function c(e,t,r){for(var n,o,s,c=e.cd,u=e.xa,f=e.ya,d=c[0].trace,h=u.c2p(t),p=f.c2p(r),y=i.quadrature(function(e){var t=Math.max(3,e.mrc||0);return Math.max(Math.abs(u.c2p(e.x)-h)-t,1-3/t)},function(e){var t=Math.max(3,e.mrc||0);return Math.max(Math.abs(f.c2p(e.y)-p)-t,1-3/t)}),v=!1,g=0;g<c.length;g++){o=c[g];for(var m=0;m<(o.pts||[]).length;m++){var x=y(s=o.pts[m]);x<=e.distance&&(e.distance=x,v=[g,m])}}if(!v)return!1;s=(o=c[v[0]]).pts[v[1]];var b=u.c2p(s.x,!0),_=f.c2p(s.y,!0),w=s.mrc||1;n=a.extendFlat({},e,{index:s.i,color:(d.marker||{}).color,name:d.name,x0:b-w,x1:b+w,y0:_-w,y1:_+w,spikeDistance:e.distance,hovertemplate:d.hovertemplate});var k,T=o.orig_p,M=void 0!==T?T:o.pos;return"h"===d.orientation?(k=f,n.xLabelVal=s.x,n.yLabelVal=M):(k=u,n.xLabelVal=M,n.yLabelVal=s.y),n[k._id.charAt(0)+"Spike"]=k.c2p(o.pos,!0),l(s,d,n),n}e.exports={hoverPoints:function(e,t,r,n){var a,i=e.cd[0].trace.hoveron,o=[];return-1!==i.indexOf("boxes")&&(o=o.concat(s(e,t,r,n))),-1!==i.indexOf("points")&&(a=c(e,t,r)),"closest"===n?a?[a]:o:a?(o.push(a),o):o},hoverOnBoxes:s,hoverOnPoints:c}},67244:function(e,t,r){"use strict";e.exports={attributes:r(63188),layoutAttributes:r(16560),supplyDefaults:r(90624).supplyDefaults,crossTraceDefaults:r(90624).crossTraceDefaults,supplyLayoutDefaults:r(68832).supplyLayoutDefaults,calc:r(62555),crossTraceCalc:r(96404).crossTraceCalc,plot:r(18728).plot,style:r(25776).style,styleOnSelect:r(25776).styleOnSelect,hoverPoints:r(27576).hoverPoints,eventData:r(10392),selectPoints:r(8264),moduleType:"trace",name:"box",basePlotModule:r(57952),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}},16560:function(e){"use strict";e.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"}}},68832:function(e,t,r){"use strict";var n=r(24040),a=r(3400),i=r(16560);function o(e,t,r,a,i){for(var o=i+"Layout",l=!1,s=0;s<r.length;s++){var c=r[s];if(n.traceIs(c,o)){l=!0;break}}l&&(a(i+"mode"),a(i+"gap"),a(i+"groupgap"))}e.exports={supplyLayoutDefaults:function(e,t,r){o(0,0,r,function(r,n){return a.coerce(e,t,i,r,n)},"box")},_supply:o}},18728:function(e,t,r){"use strict";var n=r(33428),a=r(3400),i=r(43616),o=5,l=.01;function s(e,t,r,i,o){var l,s,c="h"===r.orientation,u=t.val,f=t.pos,d=!!f.rangebreaks,h=i.bPos,p=i.wdPos||0,y=i.bPosPxOffset||0,v=r.whiskerwidth||0,g=!1!==r.showwhiskers,m=r.notched||!1,x=m?1-2*r.notchwidth:1;Array.isArray(i.bdPos)?(l=i.bdPos[0],s=i.bdPos[1]):(l=i.bdPos,s=i.bdPos);var b=e.selectAll("path.box").data("violin"!==r.type||r.box.visible?a.identity:[]);b.enter().append("path").style("vector-effect",o?"none":"non-scaling-stroke").attr("class","box"),b.exit().remove(),b.each(function(e){if(e.empty)return n.select(this).attr("d","M0,0Z");var t=f.c2l(e.pos+h,!0),i=f.l2p(t-l)+y,o=f.l2p(t+s)+y,b=d?(i+o)/2:f.l2p(t)+y,_=r.whiskerwidth,w=d?i*_+(1-_)*b:f.l2p(t-p)+y,k=d?o*_+(1-_)*b:f.l2p(t+p)+y,T=f.l2p(t-l*x)+y,M=f.l2p(t+s*x)+y,A="sd"===r.sizemode,S=u.c2p(A?e.mean-e.sd:e.q1,!0),L=A?u.c2p(e.mean+e.sd,!0):u.c2p(e.q3,!0),O=a.constrain(A?u.c2p(e.mean,!0):u.c2p(e.med,!0),Math.min(S,L)+1,Math.max(S,L)-1),C=void 0===e.lf||!1===r.boxpoints||A,D=u.c2p(C?e.min:e.lf,!0),P=u.c2p(C?e.max:e.uf,!0),E=u.c2p(e.ln,!0),R=u.c2p(e.un,!0);c?n.select(this).attr("d","M"+O+","+T+"V"+M+"M"+S+","+i+"V"+o+(m?"H"+E+"L"+O+","+M+"L"+R+","+o:"")+"H"+L+"V"+i+(m?"H"+R+"L"+O+","+T+"L"+E+","+i:"")+"Z"+(g?"M"+S+","+b+"H"+D+"M"+L+","+b+"H"+P+(0===v?"":"M"+D+","+w+"V"+k+"M"+P+","+w+"V"+k):"")):n.select(this).attr("d","M"+T+","+O+"H"+M+"M"+i+","+S+"H"+o+(m?"V"+E+"L"+M+","+O+"L"+o+","+R:"")+"V"+L+"H"+i+(m?"V"+R+"L"+T+","+O+"L"+i+","+E:"")+"Z"+(g?"M"+b+","+S+"V"+D+"M"+b+","+L+"V"+P+(0===v?"":"M"+w+","+D+"H"+k+"M"+w+","+P+"H"+k):""))})}function c(e,t,r,n){var s=t.x,c=t.y,u=n.bdPos,f=n.bPos,d=r.boxpoints||r.points;a.seedPseudoRandom();var h=e.selectAll("g.points").data(d?function(e){return e.forEach(function(e){e.t=n,e.trace=r}),e}:[]);h.enter().append("g").attr("class","points"),h.exit().remove();var p=h.selectAll("path").data(function(e){var t,n,i=e.pts2,s=Math.max((e.max-e.min)/10,e.q3-e.q1),c=1e-9*s,h=s*l,p=[],y=0;if(r.jitter){if(0===s)for(y=1,p=new Array(i.length),t=0;t<i.length;t++)p[t]=1;else for(t=0;t<i.length;t++){var v=Math.max(0,t-o),g=i[v].v,m=Math.min(i.length-1,t+o),x=i[m].v;"all"!==d&&(i[t].v<e.lf?x=Math.min(x,e.lf):g=Math.max(g,e.uf));var b=Math.sqrt(h*(m-v)/(x-g+c))||0;b=a.constrain(Math.abs(b),0,1),p.push(b),y=Math.max(b,y)}n=2*r.jitter/(y||1)}for(t=0;t<i.length;t++){var _=i[t],w=_.v,k=r.jitter?n*p[t]*(a.pseudoRandom()-.5):0,T=e.pos+f+u*(r.pointpos+k);"h"===r.orientation?(_.y=T,_.x=w):(_.x=T,_.y=w),"suspectedoutliers"===d&&w<e.uo&&w>e.lo&&(_.so=!0)}return i});p.enter().append("path").classed("point",!0),p.exit().remove(),p.call(i.translatePoints,s,c)}function u(e,t,r,i){var o,l,s=t.val,c=t.pos,u=!!c.rangebreaks,f=i.bPos,d=i.bPosPxOffset||0,h=r.boxmean||(r.meanline||{}).visible;Array.isArray(i.bdPos)?(o=i.bdPos[0],l=i.bdPos[1]):(o=i.bdPos,l=i.bdPos);var p=e.selectAll("path.mean").data("box"===r.type&&r.boxmean||"violin"===r.type&&r.box.visible&&r.meanline.visible?a.identity:[]);p.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),p.exit().remove(),p.each(function(e){var t=c.c2l(e.pos+f,!0),a=c.l2p(t-o)+d,i=c.l2p(t+l)+d,p=u?(a+i)/2:c.l2p(t)+d,y=s.c2p(e.mean,!0),v=s.c2p(e.mean-e.sd,!0),g=s.c2p(e.mean+e.sd,!0);"h"===r.orientation?n.select(this).attr("d","M"+y+","+a+"V"+i+("sd"===h?"m0,0L"+v+","+p+"L"+y+","+a+"L"+g+","+p+"Z":"")):n.select(this).attr("d","M"+a+","+y+"H"+i+("sd"===h?"m0,0L"+p+","+v+"L"+a+","+y+"L"+p+","+g+"Z":""))})}e.exports={plot:function(e,t,r,i){var o=e._context.staticPlot,l=t.xaxis,f=t.yaxis;a.makeTraceGroups(i,r,"trace boxes").each(function(e){var t,r,a=n.select(this),i=e[0],d=i.t,h=i.trace;d.wdPos=d.bdPos*h.whiskerwidth,!0!==h.visible||d.empty?a.remove():("h"===h.orientation?(t=f,r=l):(t=l,r=f),s(a,{pos:t,val:r},h,d,o),c(a,{x:l,y:f},h,d),u(a,{pos:t,val:r},h,d))})},plotBoxAndWhiskers:s,plotPoints:c,plotBoxMean:u}},8264:function(e){"use strict";e.exports=function(e,t){var r,n,a=e.cd,i=e.xaxis,o=e.yaxis,l=[];if(!1===t)for(r=0;r<a.length;r++)for(n=0;n<(a[r].pts||[]).length;n++)a[r].pts[n].selected=0;else for(r=0;r<a.length;r++)for(n=0;n<(a[r].pts||[]).length;n++){var s=a[r].pts[n],c=i.c2p(s.x),u=o.c2p(s.y);t.contains([c,u],null,s.i,e)?(l.push({pointNumber:s.i,x:i.c2d(s.x),y:o.c2d(s.y)}),s.selected=1):s.selected=0}return l}},25776:function(e,t,r){"use strict";var n=r(33428),a=r(76308),i=r(43616);e.exports={style:function(e,t,r){var o=r||n.select(e).selectAll("g.trace.boxes");o.style("opacity",function(e){return e[0].trace.opacity}),o.each(function(t){var r=n.select(this),o=t[0].trace,l=o.line.width;function s(e,t,r,n){e.style("stroke-width",t+"px").call(a.stroke,r).call(a.fill,n)}var c=r.selectAll("path.box");if("candlestick"===o.type)c.each(function(e){if(!e.empty){var t=n.select(this),r=o[e.dir];s(t,r.line.width,r.line.color,r.fillcolor),t.style("opacity",o.selectedpoints&&!e.selected?.3:1)}});else{s(c,l,o.line.color,o.fillcolor),r.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(a.stroke,o.line.color);var u=r.selectAll("path.point");i.pointStyle(u,o,e)}})},styleOnSelect:function(e,t,r){var n=t[0].trace,a=r.selectAll("path.point");n.selectedpoints?i.selectedPointStyle(a,n):i.pointStyle(a,n,e)}}},67104:function(e,t,r){"use strict";var n=r(83328),a=r(52904),i=r(29736),o=i.axisHoverFormat,l=i.descriptionOnlyNumbers,s=r(49084),c=r(98192).u,u=r(25376),f=r(92880).extendFlat,d=r(69104),h=d.COMPARISON_OPS2,p=d.INTERVAL_OPS,y=a.line;e.exports=f({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:a.xperiod0,yperiod0:a.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,xhoverformat:o("x"),yhoverformat:o("y"),zhoverformat:o("z",1),hovertemplate:n.hovertemplate,texttemplate:f({},n.texttemplate,{}),textfont:f({},n.textfont,{}),hoverongaps:n.hoverongaps,connectgaps:f({},n.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:u({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:l("contour label")},operation:{valType:"enumerated",values:[].concat(h).concat(p),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:f({},y.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:c,smoothing:f({},y.smoothing,{}),editType:"plot"}},s("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))},20688:function(e,t,r){"use strict";var n=r(8932),a=r(19512),i=r(54444),o=r(46960);e.exports=function(e,t){var r=a(e,t),l=r[0].z;i(t,l);var s,c=t.contours,u=n.extractOpts(t);if("heatmap"===c.coloring&&u.auto&&!1===t.autocontour){var f=c.start,d=o(c),h=c.size||1,p=Math.floor((d-f)/h)+1;isFinite(h)||(h=1,p=1);var y=f-h/2;s=[y,y+p*h]}else s=l;return n.calc(e,t,{vals:s,cLetter:"z"}),r}},56008:function(e){"use strict";e.exports=function(e,t){var r,n=e[0],a=n.z;switch(t.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(r=0;r<e.length;r++){var o=e[r];o.prefixBoundary=!o.edgepaths.length&&(i>o.level||o.starts.length&&i===o.level)}break;case"constraint":if(n.prefixBoundary=!1,n.edgepaths.length)return;var l=n.x.length,s=n.y.length,c=-1/0,u=1/0;for(r=0;r<s;r++)u=Math.min(u,a[r][0]),u=Math.min(u,a[r][l-1]),c=Math.max(c,a[r][0]),c=Math.max(c,a[r][l-1]);for(r=1;r<l-1;r++)u=Math.min(u,a[0][r]),u=Math.min(u,a[s-1][r]),c=Math.max(c,a[0][r]),c=Math.max(c,a[s-1][r]);var f,d,h=t.value;switch(t._operation){case">":h>c&&(n.prefixBoundary=!0);break;case"<":(h<u||n.starts.length&&h===u)&&(n.prefixBoundary=!0);break;case"[]":f=Math.min(h[0],h[1]),((d=Math.max(h[0],h[1]))<u||f>c||n.starts.length&&d===u)&&(n.prefixBoundary=!0);break;case"][":f=Math.min(h[0],h[1]),d=Math.max(h[0],h[1]),f<u&&d>c&&(n.prefixBoundary=!0)}}}},55296:function(e,t,r){"use strict";var n=r(8932),a=r(41076),i=r(46960);e.exports={min:"zmin",max:"zmax",calc:function(e,t,r){var o=t.contours,l=t.line,s=o.size||1,c=o.coloring,u=a(t,{isColorbar:!0});if("heatmap"===c){var f=n.extractOpts(t);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else"fill"===c&&(r._fillcolor=u);r._line={color:"lines"===c?u:l.color,width:!1!==o.showlines?l.width:0,dash:l.dash},r._levels={start:o.start,end:i(o),size:s}}}},93252:function(e){"use strict";e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(e,t,r){"use strict";var n=r(38248),a=r(17428),i=r(76308),o=i.addOpacity,l=i.opacity,s=r(69104),c=r(3400).isArrayOrTypedArray,u=s.CONSTRAINT_REDUCTION,f=s.COMPARISON_OPS2;e.exports=function(e,t,r,i,s,d){var h,p,y,v=t.contours,g=r("contours.operation");(v._operation=u[g],function(e,t){var r;-1===f.indexOf(t.operation)?(e("contours.value",[0,1]),c(t.value)?t.value.length>2?t.value=t.value.slice(2):0===t.length?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:n(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),n(t.value)||(c(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}(r,v),"="===g?h=v.showlines=!0:(h=r("contours.showlines"),y=r("fillcolor",o((e.line||{}).color||s,.5))),h)&&(p=r("line.color",y&&l(y)?o(t.fillcolor,1):s),r("line.width",2),r("line.dash"));r("line.smoothing"),a(r,i,p,d)}},3212:function(e,t,r){"use strict";var n=r(69104),a=r(38248);function i(e,t){var r,i=Array.isArray(t);function o(e){return a(e)?+e:null}return-1!==n.COMPARISON_OPS2.indexOf(e)?r=o(i?t[0]:t):-1!==n.INTERVAL_OPS.indexOf(e)?r=i?[o(t[0]),o(t[1])]:[o(t),o(t)]:-1!==n.SET_OPS.indexOf(e)&&(r=i?t.map(o):[o(t)]),r}function o(e){return function(t){t=i(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function l(e){return function(t){return{start:t=i(e,t),end:1/0,size:1/0}}}e.exports={"[]":o("[]"),"][":o("]["),">":l(">"),"<":l("<"),"=":l("=")}},84952:function(e){"use strict";e.exports=function(e,t,r,n){var a=n("contours.start"),i=n("contours.end"),o=!1===a||!1===i,l=r("contours.size");!(o?t.autocontour=!0:r("autocontour",!1))&&l||r("ncontours")}},82172:function(e,t,r){"use strict";var n=r(3400);function a(e){return n.extendFlat({},e,{edgepaths:n.extendDeep([],e.edgepaths),paths:n.extendDeep([],e.paths),starts:n.extendDeep([],e.starts)})}e.exports=function(e,t){var r,i,o,l=function(e){return e.reverse()},s=function(e){return e};switch(t){case"=":case"<":return e;case">":for(1!==e.length&&n.warn("Contour data invalid for the specified inequality operation."),i=e[0],r=0;r<i.edgepaths.length;r++)i.edgepaths[r]=l(i.edgepaths[r]);for(r=0;r<i.paths.length;r++)i.paths[r]=l(i.paths[r]);for(r=0;r<i.starts.length;r++)i.starts[r]=l(i.starts[r]);return e;case"][":var c=l;l=s,s=c;case"[]":for(2!==e.length&&n.warn("Contour data invalid for the specified inequality range operation."),i=a(e[0]),o=a(e[1]),r=0;r<i.edgepaths.length;r++)i.edgepaths[r]=l(i.edgepaths[r]);for(r=0;r<i.paths.length;r++)i.paths[r]=l(i.paths[r]);for(r=0;r<i.starts.length;r++)i.starts[r]=l(i.starts[r]);for(;o.edgepaths.length;)i.edgepaths.push(s(o.edgepaths.shift()));for(;o.paths.length;)i.paths.push(s(o.paths.shift()));for(;o.starts.length;)i.starts.push(s(o.starts.shift()));return[i]}}},57004:function(e,t,r){"use strict";var n=r(3400),a=r(51264),i=r(31147),o=r(95536),l=r(84952),s=r(97680),c=r(39096),u=r(67104);e.exports=function(e,t,r,f){function d(r,a){return n.coerce(e,t,u,r,a)}if(a(e,t,d,f)){i(e,t,f,d),d("xhoverformat"),d("yhoverformat"),d("text"),d("hovertext"),d("hoverongaps"),d("hovertemplate");var h="constraint"===d("contours.type");d("connectgaps",n.isArray1D(t.z)),h?o(e,t,d,f,r):(l(e,t,d,function(r){return n.coerce2(e,t,u,r)}),s(e,t,d,f)),t.contours&&"heatmap"===t.contours.coloring&&c(d,f)}else t.visible=!1}},61512:function(e,t,r){"use strict";var n=r(3400),a=r(3212),i=r(46960);e.exports=function(e,t,r){for(var o="constraint"===e.type?a[e._operation](e.value):e,l=o.size,s=[],c=i(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:r.x,y:r.y},d=o.start;d<c;d+=l)if(s.push(n.extendFlat({level:d,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),s.length>1e3){n.warn("Too many contours, clipping at 1000",e);break}return s}},46960:function(e){"use strict";e.exports=function(e){return e.end+e.size/1e6}},88748:function(e,t,r){"use strict";var n=r(3400),a=r(93252);function i(e,t,r,n){return Math.abs(e[0]-t[0])<r&&Math.abs(e[1]-t[1])<n}function o(e,t,r,o,s){var c,u=t.join(","),f=e.crossings[u],d=function(e,t,r){var n=0,i=0;e>20&&t?208===e||1114===e?n=0===r[0]?1:-1:i=0===r[1]?1:-1:-1!==a.BOTTOMSTART.indexOf(e)?i=1:-1!==a.LEFTSTART.indexOf(e)?n=1:-1!==a.TOPSTART.indexOf(e)?i=-1:n=-1;return[n,i]}(f,r,t),h=[l(e,t,[-d[0],-d[1]])],p=e.z.length,y=e.z[0].length,v=t.slice(),g=d.slice();for(c=0;c<1e4;c++){if(f>20?(f=a.CHOOSESADDLE[f][(d[0]||d[1])<0?0:1],e.crossings[u]=a.SADDLEREMAINDER[f]):delete e.crossings[u],!(d=a.NEWDELTA[f])){n.log("Found bad marching index:",f,t,e.level);break}h.push(l(e,t,d)),t[0]+=d[0],t[1]+=d[1],u=t.join(","),i(h[h.length-1],h[h.length-2],o,s)&&h.pop();var m=d[0]&&(t[0]<0||t[0]>y-2)||d[1]&&(t[1]<0||t[1]>p-2);if(t[0]===v[0]&&t[1]===v[1]&&d[0]===g[0]&&d[1]===g[1]||r&&m)break;f=e.crossings[u]}1e4===c&&n.log("Infinite loop in contour?");var x,b,_,w,k,T,M,A,S,L,O,C,D,P,E,R=i(h[0],h[h.length-1],o,s),I=0,z=.2*e.smoothing,N=[],F=0;for(c=1;c<h.length;c++)C=h[c],D=h[c-1],P=void 0,E=void 0,P=C[2]-D[2],E=C[3]-D[3],I+=M=Math.sqrt(P*P+E*E),N.push(M);var j=I/N.length*z;function B(e){return h[e%h.length]}for(c=h.length-2;c>=F;c--)if((x=N[c])<j){for(_=0,b=c-1;b>=F&&x+N[b]<j;b--)x+=N[b];if(R&&c===h.length-2)for(_=0;_<b&&x+N[_]<j;_++)x+=N[_];k=c-b+_+1,T=Math.floor((c+b+_+2)/2),w=R||c!==h.length-2?R||-1!==b?k%2?B(T):[(B(T)[0]+B(T+1)[0])/2,(B(T)[1]+B(T+1)[1])/2]:h[0]:h[h.length-1],h.splice(b+1,c-b+1,w),c=b+1,_&&(F=_),R&&(c===h.length-2?h[_]=h[h.length-1]:0===c&&(h[h.length-1]=h[0]))}for(h.splice(0,F),c=0;c<h.length;c++)h[c].length=2;if(!(h.length<2))if(R)h.pop(),e.paths.push(h);else{r||n.log("Unclosed interior contour?",e.level,v.join(","),h.join("L"));var H=!1;for(A=0;A<e.edgepaths.length;A++)if(L=e.edgepaths[A],!H&&i(L[0],h[h.length-1],o,s)){h.pop(),H=!0;var U=!1;for(S=0;S<e.edgepaths.length;S++)if(i((O=e.edgepaths[S])[O.length-1],h[0],o,s)){U=!0,h.shift(),e.edgepaths.splice(A,1),S===A?e.paths.push(h.concat(O)):(S>A&&S--,e.edgepaths[S]=O.concat(h,L));break}U||(e.edgepaths[A]=h.concat(L))}for(A=0;A<e.edgepaths.length&&!H;A++)i((L=e.edgepaths[A])[L.length-1],h[0],o,s)&&(h.shift(),e.edgepaths[A]=L.concat(h),H=!0);H||e.edgepaths.push(h)}}function l(e,t,r){var n=t[0]+Math.max(r[0],0),a=t[1]+Math.max(r[1],0),i=e.z[a][n],o=e.xaxis,l=e.yaxis;if(r[1]){var s=(e.level-i)/(e.z[a][n+1]-i),c=(1!==s?(1-s)*o.c2l(e.x[n]):0)+(0!==s?s*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(c),!0),l.c2p(e.y[a],!0),n+s,a]}var u=(e.level-i)/(e.z[a+1][n]-i),f=(1!==u?(1-u)*l.c2l(e.y[a]):0)+(0!==u?u*l.c2l(e.y[a+1]):0);return[o.c2p(e.x[n],!0),l.c2p(l.l2c(f),!0),n,a+u]}e.exports=function(e,t,r){var a,i,l,s;for(t=t||.01,r=r||.01,i=0;i<e.length;i++){for(l=e[i],s=0;s<l.starts.length;s++)o(l,l.starts[s],"edge",t,r);for(a=0;Object.keys(l.crossings).length&&a<1e4;)a++,o(l,Object.keys(l.crossings)[0].split(",").map(Number),void 0,t,r);1e4===a&&n.log("Infinite loop in contour?")}}},38200:function(e,t,r){"use strict";var n=r(76308),a=r(55512);e.exports=function(e,t,r,i,o){o||(o={}),o.isContour=!0;var l=a(e,t,r,i,o);return l&&l.forEach(function(e){var t=e.trace;"constraint"===t.contours.type&&(t.fillcolor&&n.opacity(t.fillcolor)?e.color=n.addOpacity(t.fillcolor,1):t.contours.showlines&&n.opacity(t.line.color)&&(e.color=n.addOpacity(t.line.color,1)))}),l}},66240:function(e,t,r){"use strict";e.exports={attributes:r(67104),supplyDefaults:r(57004),calc:r(20688),plot:r(23676).plot,style:r(52440),colorbar:r(55296),hoverPoints:r(38200),moduleType:"trace",name:"contour",basePlotModule:r(57952),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}},17428:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e,t,r,a){if(a||(a={}),e("contours.showlabels")){var i=t.font;n.coerceFont(e,"contours.labelfont",{family:i.family,size:i.size,color:r}),e("contours.labelformat")}!1!==a.hasHover&&e("zhoverformat")}},41076:function(e,t,r){"use strict";var n=r(33428),a=r(8932),i=r(46960);e.exports=function(e){var t=e.contours,r=t.start,o=i(t),l=t.size||1,s=Math.floor((o-r)/l)+1,c="lines"===t.coloring?0:1,u=a.extractOpts(e);isFinite(l)||(l=1,s=1);var f,d,h=u.reversescale?a.flipScale(u.colorscale):u.colorscale,p=h.length,y=new Array(p),v=new Array(p),g=u.min,m=u.max;if("heatmap"===t.coloring){for(d=0;d<p;d++)f=h[d],y[d]=f[0]*(m-g)+g,v[d]=f[1];var x=n.extent([g,m,t.start,t.start+l*(s-1)]),b=x[g<m?0:1],_=x[g<m?1:0];b!==g&&(y.splice(0,0,b),v.splice(0,0,v[0])),_!==m&&(y.push(_),v.push(v[v.length-1]))}else{var w=e._input&&"number"==typeof e._input.zmin&&"number"==typeof e._input.zmax;for(w&&(r<=g||o>=m)&&(r<=g&&(r=g),o>=m&&(o=m),s=Math.floor((o-r)/l)+1,c=0),d=0;d<p;d++)f=h[d],y[d]=(f[0]*(s+c-1)-c/2)*l+r,v[d]=f[1];(w||e.autocontour)&&(y[0]>g&&(y.unshift(g),v.unshift(v[0])),y[y.length-1]<m&&(y.push(m),v.push(v[v.length-1])))}return a.makeColorScaleFunc({domain:y,range:v},{noNumericCheck:!0})}},72424:function(e,t,r){"use strict";var n=r(93252);function a(e,t){var r=(t[0][0]>e?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);return 5===r||10===r?e>(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(e){var t,r,i,o,l,s,c,u,f,d=e[0].z,h=d.length,p=d[0].length,y=2===h||2===p;for(r=0;r<h-1;r++)for(o=[],0===r&&(o=o.concat(n.BOTTOMSTART)),r===h-2&&(o=o.concat(n.TOPSTART)),t=0;t<p-1;t++)for(i=o.slice(),0===t&&(i=i.concat(n.LEFTSTART)),t===p-2&&(i=i.concat(n.RIGHTSTART)),l=t+","+r,s=[[d[r][t],d[r][t+1]],[d[r+1][t],d[r+1][t+1]]],f=0;f<e.length;f++)(c=a((u=e[f]).level,s))&&(u.crossings[l]=c,-1!==i.indexOf(c)&&(u.starts.push([t,r]),y&&-1!==i.indexOf(c,i.indexOf(c)+1)&&u.starts.push([t,r])))}},23676:function(e,t,r){"use strict";var n=r(33428),a=r(3400),i=r(43616),o=r(8932),l=r(72736),s=r(54460),c=r(78344),u=r(41420),f=r(72424),d=r(88748),h=r(61512),p=r(82172),y=r(56008),v=r(93252),g=v.LABELOPTIMIZER;function m(e,t){var r,n,o,l,s,c,u,f="",d=0,h=e.edgepaths.map(function(e,t){return t}),p=!0;function y(e){return Math.abs(e[1]-t[2][1])<.01}function v(e){return Math.abs(e[0]-t[0][0])<.01}function g(e){return Math.abs(e[0]-t[2][0])<.01}for(;h.length;){for(c=i.smoothopen(e.edgepaths[d],e.smoothing),f+=p?c:c.replace(/^M/,"L"),h.splice(h.indexOf(d),1),r=e.edgepaths[d][e.edgepaths[d].length-1],l=-1,o=0;o<4;o++){if(!r){a.log("Missing end?",d,e);break}for(u=r,Math.abs(u[1]-t[0][1])<.01&&!g(r)?n=t[1]:v(r)?n=t[0]:y(r)?n=t[3]:g(r)&&(n=t[2]),s=0;s<e.edgepaths.length;s++){var m=e.edgepaths[s][0];Math.abs(r[0]-n[0])<.01?Math.abs(r[0]-m[0])<.01&&(m[1]-r[1])*(n[1]-m[1])>=0&&(n=m,l=s):Math.abs(r[1]-n[1])<.01?Math.abs(r[1]-m[1])<.01&&(m[0]-r[0])*(n[0]-m[0])>=0&&(n=m,l=s):a.log("endpt to newendpt is not vert. or horz.",r,n,m)}if(r=n,l>=0)break;f+="L"+n}if(l===e.edgepaths.length){a.log("unclosed perimeter path");break}d=l,(p=-1===h.indexOf(d))&&(d=h[0],f+="Z")}for(d=0;d<e.paths.length;d++)f+=i.smoothclosed(e.paths[d],e.smoothing);return f}function x(e,t,r,n){var i=t.width/2,o=t.height/2,l=e.x,s=e.y,c=e.theta,u=Math.cos(c)*i,f=Math.sin(c)*i,d=(l>n.center?n.right-l:l-n.left)/(u+Math.abs(Math.sin(c)*o)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(f)+Math.cos(c)*o);if(d<1||h<1)return 1/0;var p=g.EDGECOST*(1/(d-1)+1/(h-1));p+=g.ANGLECOST*c*c;for(var y=l-u,v=s-f,m=l+u,x=s+f,b=0;b<r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,k=Math.sin(_.theta)*_.width/2,T=2*a.segmentDistance(y,v,m,x,_.x-w,_.y-k,_.x+w,_.y+k)/(t.height+_.height),M=_.level===t.level,A=M?g.SAMELEVELDISTANCE:1;if(T<=A)return 1/0;p+=g.NEIGHBORCOST*(M?g.SAMELEVELFACTOR:1)/(T-A)}return p}function b(e){var t,r,n=e.trace._emptypoints,a=[],i=e.z.length,o=e.z[0].length,l=[];for(t=0;t<o;t++)l.push(1);for(t=0;t<i;t++)a.push(l.slice());for(t=0;t<n.length;t++)a[(r=n[t])[0]][r[1]]=0;return e.zmask=a,a}t.plot=function(e,r,o,l){var s=r.xaxis,c=r.yaxis;a.makeTraceGroups(l,o,"contour").each(function(o){var l=n.select(this),g=o[0],x=g.trace,_=g.x,w=g.y,k=x.contours,T=h(k,r,g),M=a.ensureSingle(l,"g","heatmapcoloring"),A=[];"heatmap"===k.coloring&&(A=[o]),u(e,r,A,M),f(T),d(T);var S=s.c2p(_[0],!0),L=s.c2p(_[_.length-1],!0),O=c.c2p(w[0],!0),C=c.c2p(w[w.length-1],!0),D=[[S,C],[L,C],[L,O],[S,O]],P=T;"constraint"===k.type&&(P=p(T,k._operation)),function(e,t,r){var n=a.ensureSingle(e,"g","contourbg").selectAll("path").data("fill"===r.coloring?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+t.join("L")+"Z").style("stroke","none")}(l,D,k),function(e,t,r,i){var o="fill"===i.coloring||"constraint"===i.type&&"="!==i._operation,l="M"+r.join("L")+"Z";o&&y(t,i);var s=a.ensureSingle(e,"g","contourfill").selectAll("path").data(o?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(e){var t=(e.prefixBoundary?l:"")+m(e,r);t?n.select(this).attr("d",t).style("stroke","none"):n.select(this).remove()})}(l,P,D,k),function(e,r,o,l,s){var c=o._context.staticPlot,u=a.ensureSingle(e,"g","contourlines"),f=!1!==s.showlines,d=s.showlabels,h=f&&d,p=t.createLines(u,f||d,r,c),y=t.createLineClip(u,h,o,l.trace.uid),g=e.selectAll("g.contourlabels").data(d?[0]:[]);if(g.exit().remove(),g.enter().append("g").classed("contourlabels",!0),d){var m=[],x=[];a.clearLocationCache();var b=t.labelFormatter(o,l),_=i.tester.append("text").attr("data-notex",1).call(i.font,s.labelfont),w=r[0].xaxis,k=r[0].yaxis,T=w._length,M=k._length,A=w.range,S=k.range,L=a.aggNums(Math.min,null,l.x),O=a.aggNums(Math.max,null,l.x),C=a.aggNums(Math.min,null,l.y),D=a.aggNums(Math.max,null,l.y),P=Math.max(w.c2p(L,!0),0),E=Math.min(w.c2p(O,!0),T),R=Math.max(k.c2p(D,!0),0),I=Math.min(k.c2p(C,!0),M),z={};A[0]<A[1]?(z.left=P,z.right=E):(z.left=E,z.right=P),S[0]<S[1]?(z.top=R,z.bottom=I):(z.top=I,z.bottom=R),z.middle=(z.top+z.bottom)/2,z.center=(z.left+z.right)/2,m.push([[z.left,z.top],[z.right,z.top],[z.right,z.bottom],[z.left,z.bottom]]);var N=Math.sqrt(T*T+M*M),F=v.LABELDISTANCE*N/Math.max(1,r.length/v.LABELINCREASE);p.each(function(e){var r=t.calcTextOpts(e.level,b,_,o);n.select(this).selectAll("path").each(function(){var e=a.getVisibleSegment(this,z,r.height/2);if(e&&!(e.len<(r.width+r.height)*v.LABELMIN))for(var n=Math.min(Math.ceil(e.len/F),v.LABELMAX),i=0;i<n;i++){var o=t.findBestTextLocation(this,e,r,x,z);if(!o)break;t.addLabelData(o,r,x,m)}})}),_.remove(),t.drawLabels(g,x,o,y,h?m:null)}d&&!f&&p.remove()}(l,T,e,g,k),function(e,t,r,n,o){var l=n.trace,s=r._fullLayout._clips,c="clip"+l.uid,u=s.selectAll("#"+c).data(l.connectgaps?[]:[0]);if(u.enter().append("clipPath").classed("contourclip",!0).attr("id",c),u.exit().remove(),!1===l.connectgaps){var h={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:t.xaxis,yaxis:t.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};f([h]),d([h]),y([h],{type:"levels"});var p=a.ensureSingle(u,"path","");p.attr("d",(h.prefixBoundary?"M"+o.join("L")+"Z":"")+m(h,o))}else c=null;i.setClipUrl(e,c,r)}(l,r,e,g,D)})},t.createLines=function(e,t,r,n){var a=r[0].smoothing,o=e.selectAll("g.contourlevel").data(t?r:[]);if(o.exit().remove(),o.enter().append("g").classed("contourlevel",!0),t){var l=o.selectAll("path.openline").data(function(e){return e.pedgepaths||e.edgepaths});l.exit().remove(),l.enter().append("path").classed("openline",!0),l.attr("d",function(e){return i.smoothopen(e,a)}).style("stroke-miterlimit",1).style("vector-effect",n?"none":"non-scaling-stroke");var s=o.selectAll("path.closedline").data(function(e){return e.ppaths||e.paths});s.exit().remove(),s.enter().append("path").classed("closedline",!0),s.attr("d",function(e){return i.smoothclosed(e,a)}).style("stroke-miterlimit",1).style("vector-effect",n?"none":"non-scaling-stroke")}return o},t.createLineClip=function(e,t,r,n){var a=t?"clipline"+n:null,o=r._fullLayout._clips.selectAll("#"+a).data(t?[0]:[]);return o.exit().remove(),o.enter().append("clipPath").classed("contourlineclip",!0).attr("id",a),i.setClipUrl(e,a,r),o},t.labelFormatter=function(e,t){var r=e._fullLayout,n=t.trace,i=n.contours,l={type:"linear",_id:"ycontour",showexponent:"all",exponentformat:"B"};if(i.labelformat)l.tickformat=i.labelformat,c(l,r);else{var u=o.extractOpts(n);if(u&&u.colorbar&&u.colorbar._axis)l=u.colorbar._axis;else{if("constraint"===i.type){var f=i.value;a.isArrayOrTypedArray(f)?l.range=[f[0],f[f.length-1]]:l.range=[f,f]}else l.range=[i.start,i.end],l.nticks=(i.end-i.start)/i.size;l.range[0]===l.range[1]&&(l.range[1]+=l.range[0]||1),l.nticks||(l.nticks=1e3),c(l,r),s.prepTicks(l),l._tmin=null,l._tmax=null}}return function(e){return s.tickText(l,e).text}},t.calcTextOpts=function(e,t,r,n){var a=t(e);r.text(a).call(l.convertToTspans,n);var o=r.node(),s=i.bBox(o,!0);return{text:a,width:s.width,height:s.height,fontSize:+o.style["font-size"].replace("px",""),level:e,dy:(s.top+s.bottom)/2}},t.findBestTextLocation=function(e,t,r,n,i){var o,l,s,c,u,f=r.width;t.isClosed?(l=t.len/g.INITIALSEARCHPOINTS,o=t.min+l/2,s=t.max):(l=(t.len-f)/(g.INITIALSEARCHPOINTS+1),o=t.min+l+f/2,s=t.max-(l+f)/2);for(var d=1/0,h=0;h<g.ITERATIONS;h++){for(var p=o;p<s;p+=l){var y=a.getTextLocation(e,t.total,p,f),v=x(y,r,n,i);v<d&&(d=v,u=y,c=p)}if(d>2*g.MAXCOST)break;h&&(l/=2),s=(o=c-l/2)+1.5*l}if(d<=g.MAXCOST)return u},t.addLabelData=function(e,t,r,n){var a=t.fontSize,i=t.width+a/3,o=Math.max(0,t.height-a/3),l=e.x,s=e.y,c=e.theta,u=Math.sin(c),f=Math.cos(c),d=function(e,t){return[l+e*f-t*u,s+e*u+t*f]},h=[d(-i/2,-o/2),d(-i/2,o/2),d(i/2,o/2),d(i/2,-o/2)];r.push({text:t.text,x:l,y:s,dy:t.dy,theta:c,level:t.level,width:i,height:o}),n.push(h)},t.drawLabels=function(e,t,r,i,o){var s=e.selectAll("text").data(t,function(e){return e.text+","+e.x+","+e.y+","+e.theta});if(s.exit().remove(),s.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(e){var t=e.x+Math.sin(e.theta)*e.dy,a=e.y-Math.cos(e.theta)*e.dy;n.select(this).text(e.text).attr({x:t,y:a,transform:"rotate("+180*e.theta/Math.PI+" "+t+" "+a+")"}).call(l.convertToTspans,r)}),o){for(var c="",u=0;u<o.length;u++)c+="M"+o[u].join("L")+"Z";a.ensureSingle(i,"path","").attr("d",c)}}},54444:function(e,t,r){"use strict";var n=r(54460),a=r(3400);function i(e,t,r){var a={type:"linear",range:[e,t]};return n.autoTicks(a,(t-e)/(r||15)),a}e.exports=function(e,t){var r=e.contours;if(e.autocontour){var o=e.zmin,l=e.zmax;(e.zauto||void 0===o)&&(o=a.aggNums(Math.min,null,t)),(e.zauto||void 0===l)&&(l=a.aggNums(Math.max,null,t));var s=i(o,l,e.ncontours);r.size=s.dtick,r.start=n.tickFirst(s),s.range.reverse(),r.end=n.tickFirst(s),r.start===o&&(r.start+=r.size),r.end===l&&(r.end-=r.size),r.start>r.end&&(r.start=r.end=(r.start+r.end)/2),e._input.contours||(e._input.contours={}),a.extendFlat(e._input.contours,{start:r.start,end:r.end,size:r.size}),e._input.autocontour=!0}else if("constraint"!==r.type){var c,u=r.start,f=r.end,d=e._input.contours;if(u>f&&(r.start=d.start=f,f=r.end=d.end=u,u=r.start),!(r.size>0))c=u===f?1:i(u,f,e.ncontours).dtick,d.size=r.size=c}}},52440:function(e,t,r){"use strict";var n=r(33428),a=r(43616),i=r(41648),o=r(41076);e.exports=function(e){var t=n.select(e).selectAll("g.contour");t.style("opacity",function(e){return e[0].trace.opacity}),t.each(function(e){var t=n.select(this),r=e[0].trace,i=r.contours,l=r.line,s=i.size||1,c=i.start,u="constraint"===i.type,f=!u&&"lines"===i.coloring,d=!u&&"fill"===i.coloring,h=f||d?o(r):null;t.selectAll("g.contourlevel").each(function(e){n.select(this).selectAll("path").call(a.lineGroupStyle,l.width,f?h(e.level):l.color,l.dash)});var p=i.labelfont;if(t.selectAll("g.contourlabels text").each(function(e){a.font(n.select(this),{family:p.family,size:p.size,color:p.color||(f?h(e.level):l.color)})}),u)t.selectAll("g.contourfill path").style("fill",r.fillcolor);else if(d){var y;t.selectAll("g.contourfill path").style("fill",function(e){return void 0===y&&(y=e.level),h(e.level+.5*s)}),void 0===y&&(y=c),t.selectAll("g.contourbg path").style("fill",h(y-.5*s))}}),i(e)}},97680:function(e,t,r){"use strict";var n=r(27260),a=r(17428);e.exports=function(e,t,r,i,o){var l,s=r("contours.coloring"),c="";"fill"===s&&(l=r("contours.showlines")),!1!==l&&("lines"!==s&&(c=r("line.color","#000")),r("line.width",.5),r("line.dash")),"none"!==s&&(!0!==e.showlegend&&(t.showlegend=!1),t._dfltShowLegend=!1,n(e,t,i,r,{prefix:"",cLetter:"z"})),r("line.smoothing"),a(r,i,c,o)}},83328:function(e,t,r){"use strict";var n=r(52904),a=r(45464),i=r(25376),o=r(29736).axisHoverFormat,l=r(21776).Ks,s=r(21776).Gw,c=r(49084),u=r(92880).extendFlat;e.exports=u({z:{valType:"data_array",editType:"calc"},x:u({},n.x,{impliedEdits:{xtype:"array"}}),x0:u({},n.x0,{impliedEdits:{xtype:"scaled"}}),dx:u({},n.dx,{impliedEdits:{xtype:"scaled"}}),y:u({},n.y,{impliedEdits:{ytype:"array"}}),y0:u({},n.y0,{impliedEdits:{ytype:"scaled"}}),dy:u({},n.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:u({},n.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:u({},n.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:u({},n.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:u({},n.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:u({},n.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:u({},n.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:o("x"),yhoverformat:o("y"),zhoverformat:o("z",1),hovertemplate:l(),texttemplate:s({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:i({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:u({},a.showlegend,{dflt:!1})},{transforms:void 0},c("",{cLetter:"z",autoColorDflt:!1}))},19512:function(e,t,r){"use strict";var n=r(24040),a=r(3400),i=r(54460),o=r(1220),l=r(55480),s=r(47128),c=r(2872),u=r(26136),f=r(70448),d=r(11240),h=r(35744),p=r(39032).BADNUM;function y(e){for(var t=[],r=e.length,n=0;n<r;n++){var a=e[n];a!==p&&t.push(a)}return t}e.exports=function(e,t){var r,v,g,m,x,b,_,w,k,T,M,A=i.getFromId(e,t.xaxis||"x"),S=i.getFromId(e,t.yaxis||"y"),L=n.traceIs(t,"contour"),O=n.traceIs(t,"histogram"),C=n.traceIs(t,"gl2d"),D=L?"best":t.zsmooth;if(A._minDtick=0,S._minDtick=0,O)m=(M=l(e,t)).orig_x,r=M.x,v=M.x0,g=M.dx,w=M.orig_y,x=M.y,b=M.y0,_=M.dy,k=M.z;else{var P=t.z;a.isArray1D(P)?(c(t,A,S,"x","y",["z"]),r=t._x,x=t._y,P=t._z):(m=t.x?A.makeCalcdata(t,"x"):[],w=t.y?S.makeCalcdata(t,"y"):[],r=o(t,A,"x",m).vals,x=o(t,S,"y",w).vals,t._x=r,t._y=x),v=t.x0,g=t.dx,b=t.y0,_=t.dy,k=u(P,t,A,S)}function E(e){D=t._input.zsmooth=t.zsmooth=!1,a.warn('cannot use zsmooth: "fast": '+e)}function R(e){if(e.length>1){var t=(e[e.length-1]-e[0])/(e.length-1),r=Math.abs(t/100);for(T=0;T<e.length-1;T++)if(Math.abs(e[T+1]-e[T]-t)>r)return!1}return!0}(A.rangebreaks||S.rangebreaks)&&(k=function(e,t,r){for(var n=[],a=-1,i=0;i<r.length;i++)if(t[i]!==p){n[++a]=[];for(var o=0;o<r[i].length;o++)e[o]!==p&&n[a].push(r[i][o])}return n}(r,x,k),O||(r=y(r),x=y(x),t._x=r,t._y=x)),O||!L&&!t.connectgaps||(t._emptypoints=d(k),f(k,t._emptypoints)),t._islinear=!1,"log"===A.type||"log"===S.type?"fast"===D&&E("log axis found"):R(r)?R(x)?t._islinear=!0:"fast"===D&&E("y scale is not linear"):"fast"===D&&E("x scale is not linear");var I=a.maxRowLength(k),z="scaled"===t.xtype?"":r,N=h(t,z,v,g,I,A),F="scaled"===t.ytype?"":x,j=h(t,F,b,_,k.length,S);C||(t._extremes[A._id]=i.findExtremes(A,N),t._extremes[S._id]=i.findExtremes(S,j));var B={x:N,y:j,z:k,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&m&&(B.orig_x=m),t.yperiodalignment&&w&&(B.orig_y=w),z&&z.length===N.length-1&&(B.xCenter=z),F&&F.length===j.length-1&&(B.yCenter=F),O&&(B.xRanges=M.xRanges,B.yRanges=M.yRanges,B.pts=M.pts),L||s(e,t,{vals:k,cLetter:"z"}),L&&t.contours&&"heatmap"===t.contours.coloring){var H={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};B.xfill=h(H,z,v,g,I,A),B.yfill=h(H,F,b,_,k.length,S)}return[B]}},26136:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=r(39032).BADNUM;e.exports=function(e,t,r,o){var l,s,c,u,f,d;function h(e){if(n(e))return+e}if(t&&t.transpose){for(l=0,f=0;f<e.length;f++)l=Math.max(l,e[f].length);if(0===l)return!1;c=function(e){return e.length},u=function(e,t,r){return(e[r]||[])[t]}}else l=e.length,c=function(e,t){return e[t].length},u=function(e,t,r){return(e[t]||[])[r]};var p=function(e,t,r){return t===i||r===i?i:u(e,t,r)};function y(e){if(t&&"carpet"!==t.type&&"contourcarpet"!==t.type&&e&&"category"===e.type&&t["_"+e._id.charAt(0)].length){var r=e._id.charAt(0),n={},o=t["_"+r+"CategoryMap"]||t[r];for(f=0;f<o.length;f++)n[o[f]]=f;return function(t){var r=n[e._categories[t]];return r+1?r:i}}return a.identity}var v=y(r),g=y(o);o&&"category"===o.type&&(l=o._categories.length);var m=new Array(l);for(f=0;f<l;f++)for(s=r&&"category"===r.type?r._categories.length:c(e,f),m[f]=new Array(s),d=0;d<s;d++)m[f][d]=h(p(e,g(f),v(d)));return m}},96288:function(e){"use strict";e.exports={min:"zmin",max:"zmax"}},2872:function(e,t,r){"use strict";var n=r(3400),a=r(39032).BADNUM,i=r(1220);e.exports=function(e,t,r,o,l,s){var c=e._length,u=t.makeCalcdata(e,o),f=r.makeCalcdata(e,l);u=i(e,t,o,u).vals,f=i(e,r,l,f).vals;var d,h,p,y,v=e.text,g=void 0!==v&&n.isArray1D(v),m=e.hovertext,x=void 0!==m&&n.isArray1D(m),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(f),k=w.vals,T=[],M=k.length,A=_.length;for(d=0;d<s.length;d++)T[d]=n.init2dArray(M,A);g&&(p=n.init2dArray(M,A)),x&&(y=n.init2dArray(M,A));var S=n.init2dArray(M,A);for(d=0;d<c;d++)if(u[d]!==a&&f[d]!==a){var L=n.findBin(u[d]+b.minDiff/2,_),O=n.findBin(f[d]+w.minDiff/2,k);for(h=0;h<s.length;h++){var C=e[s[h]];T[h][O][L]=C[d],S[O][L]=d}g&&(p[O][L]=v[d]),x&&(y[O][L]=m[d])}for(e["_"+o]=_,e["_"+l]=k,h=0;h<s.length;h++)e["_"+s[h]]=T[h];g&&(e._text=p),x&&(e._hovertext=y),t&&"category"===t.type&&(e["_"+o+"CategoryMap"]=_.map(function(e){return t._categories[e]})),r&&"category"===r.type&&(e["_"+l+"CategoryMap"]=k.map(function(e){return r._categories[e]})),e._after2before=S}},24480:function(e,t,r){"use strict";var n=r(3400),a=r(51264),i=r(39096),o=r(31147),l=r(82748),s=r(27260),c=r(83328);e.exports=function(e,t,r,u){function f(r,a){return n.coerce(e,t,c,r,a)}a(e,t,f,u)?(o(e,t,u,f),f("xhoverformat"),f("yhoverformat"),f("text"),f("hovertext"),f("hovertemplate"),i(f,u),l(e,t,f,u),f("hoverongaps"),f("connectgaps",n.isArray1D(t.z)&&!1!==t.zsmooth),s(e,t,u,f,{prefix:"",cLetter:"z"})):t.visible=!1}},11240:function(e,t,r){"use strict";var n=r(3400).maxRowLength;e.exports=function(e){var t,r,a,i,o,l,s,c,u=[],f={},d=[],h=e[0],p=[],y=[0,0,0],v=n(e);for(r=0;r<e.length;r++)for(t=p,p=h,h=e[r+1]||[],a=0;a<v;a++)void 0===p[a]&&((l=(void 0!==p[a-1]?1:0)+(void 0!==p[a+1]?1:0)+(void 0!==t[a]?1:0)+(void 0!==h[a]?1:0))?(0===r&&l++,0===a&&l++,r===e.length-1&&l++,a===p.length-1&&l++,l<4&&(f[[r,a]]=[r,a,l]),u.push([r,a,l])):d.push([r,a]));for(;d.length;){for(s={},c=!1,o=d.length-1;o>=0;o--)(l=((f[[(r=(i=d[o])[0])-1,a=i[1]]]||y)[2]+(f[[r+1,a]]||y)[2]+(f[[r,a-1]]||y)[2]+(f[[r,a+1]]||y)[2])/20)&&(s[i]=[r,a,l],d.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(i in s)f[i]=s[i],u.push(s[i])}return u.sort(function(e,t){return t[2]-e[2]})}},55512:function(e,t,r){"use strict";var n=r(93024),a=r(3400),i=a.isArrayOrTypedArray,o=r(54460),l=r(8932).extractOpts;e.exports=function(e,t,r,s,c){c||(c={});var u,f,d,h,p=c.isContour,y=e.cd[0],v=y.trace,g=e.xa,m=e.ya,x=y.x,b=y.y,_=y.z,w=y.xCenter,k=y.yCenter,T=y.zmask,M=v.zhoverformat,A=x,S=b;if(!1!==e.index){try{d=Math.round(e.index[1]),h=Math.round(e.index[0])}catch(t){return void a.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(d<0||d>=_[0].length||h<0||h>_.length)return}else{if(n.inbox(t-x[0],t-x[x.length-1],0)>0||n.inbox(r-b[0],r-b[b.length-1],0)>0)return;if(p){var L;for(A=[2*x[0]-x[1]],L=1;L<x.length;L++)A.push((x[L]+x[L-1])/2);for(A.push([2*x[x.length-1]-x[x.length-2]]),S=[2*b[0]-b[1]],L=1;L<b.length;L++)S.push((b[L]+b[L-1])/2);S.push([2*b[b.length-1]-b[b.length-2]])}d=Math.max(0,Math.min(A.length-2,a.findBin(t,A))),h=Math.max(0,Math.min(S.length-2,a.findBin(r,S)))}var O,C,D=g.c2p(x[d]),P=g.c2p(x[d+1]),E=m.c2p(b[h]),R=m.c2p(b[h+1]);p?(O=y.orig_x||x,C=y.orig_y||b,P=D,u=O[d],R=E,f=C[h]):(O=y.orig_x||w||x,C=y.orig_y||k||b,u=w?O[d]:(O[d]+O[d+1])/2,f=k?C[h]:(C[h]+C[h+1])/2,g&&"category"===g.type&&(u=x[d]),m&&"category"===m.type&&(f=b[h]),v.zsmooth&&(D=P=g.c2p(u),E=R=m.c2p(f)));var I=_[h][d];if(T&&!T[h][d]&&(I=void 0),void 0!==I||v.hoverongaps){var z;i(y.hovertext)&&i(y.hovertext[h])?z=y.hovertext[h][d]:i(y.text)&&i(y.text[h])&&(z=y.text[h][d]);var N=l(v),F={type:"linear",range:[N.min,N.max],hoverformat:M,_separators:g._separators,_numFormat:g._numFormat},j=o.tickText(F,I,"hover").text;return[a.extendFlat(e,{index:v._after2before?v._after2before[h][d]:[h,d],distance:e.maxHoverDistance,spikeDistance:e.maxSpikeDistance,x0:D,x1:P,y0:E,y1:R,xLabelVal:u,yLabelVal:f,zLabelVal:I,zLabel:j,text:z})]}}},81932:function(e,t,r){"use strict";e.exports={attributes:r(83328),supplyDefaults:r(24480),calc:r(19512),plot:r(41420),colorbar:r(96288),style:r(41648),hoverPoints:r(55512),moduleType:"trace",name:"heatmap",basePlotModule:r(57952),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}},70448:function(e,t,r){"use strict";var n=r(3400),a=[[-1,0],[1,0],[0,-1],[0,1]];function i(e){return.5-.25*Math.min(1,.5*e)}function o(e,t,r){var n,i,o,l,s,c,u,f,d,h,p,y,v,g=0;for(l=0;l<t.length;l++){for(i=(n=t[l])[0],o=n[1],p=e[i][o],h=0,d=0,s=0;s<4;s++)(u=e[i+(c=a[s])[0]])&&void 0!==(f=u[o+c[1]])&&(0===h?y=v=f:(y=Math.min(y,f),v=Math.max(v,f)),d++,h+=f);if(0===d)throw"iterateInterp2d order is wrong: no defined neighbors";e[i][o]=h/d,void 0===p?d<4&&(g=1):(e[i][o]=(1+r)*e[i][o]-r*p,v>y&&(g=Math.max(g,Math.abs(e[i][o]-p)/(v-y))))}return g}e.exports=function(e,t){var r,a=1;for(o(e,t),r=0;r<t.length&&!(t[r][2]<4);r++);for(t=t.slice(r),r=0;r<100&&a>.01;r++)a=o(e,t,i(a));return a>.01&&n.log("interp2d didn't converge quickly",a),e}},39096:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e,t){e("texttemplate");var r=n.extendFlat({},t.font,{color:"auto",size:"auto"});n.coerceFont(e,"textfont",r)}},35744:function(e,t,r){"use strict";var n=r(24040),a=r(3400).isArrayOrTypedArray;e.exports=function(e,t,r,i,o,l){var s,c,u,f=[],d=n.traceIs(e,"contour"),h=n.traceIs(e,"histogram"),p=n.traceIs(e,"gl2d");if(a(t)&&t.length>1&&!h&&"category"!==l.type){var y=t.length;if(!(y<=o))return d?t.slice(0,o):t.slice(0,o+1);if(d||p)f=Array.from(t).slice(0,o);else if(1===o)f="log"===l.type?[.5*t[0],2*t[0]]:[t[0]-.5,t[0]+.5];else if("log"===l.type){for(f=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],u=1;u<y;u++)f.push(Math.sqrt(t[u-1]*t[u]));f.push(Math.pow(t[y-1],1.5)/Math.pow(t[y-2],.5))}else{for(f=[1.5*t[0]-.5*t[1]],u=1;u<y;u++)f.push(.5*(t[u-1]+t[u]));f.push(1.5*t[y-1]-.5*t[y-2])}if(y<o){var v,g=f[f.length-1];if("log"===l.type)for(v=g/f[f.length-2],u=y;u<o;u++)g*=v,f.push(g);else for(v=g-f[f.length-2],u=y;u<o;u++)g+=v,f.push(g)}}else{var m=e[l._id.charAt(0)+"calendar"];if(h)s=l.r2c(r,0,m);else if(a(t)&&1===t.length)s=t[0];else if(void 0===r)s=0;else{s=("log"===l.type?l.d2c:l.r2c)(r,0,m)}for(c=i||1,u=d||p?0:-.5;u<o;u++)f.push(s+c*u)}return f}},41420:function(e,t,r){"use strict";var n=r(33428),a=r(49760),i=r(24040),o=r(43616),l=r(54460),s=r(3400),c=r(72736),u=r(76688),f=r(76308),d=r(8932).extractOpts,h=r(8932).makeColorScaleFuncFromTrace,p=r(9616),y=r(84284).LINE_SPACING,v=r(9188),g=r(2264).STYLE,m="heatmap-label";function x(e){return e.selectAll("g."+m)}function b(e){x(e).remove()}function _(e,t){var r=t.length-2,n=s.constrain(s.findBin(e,t),0,r),a=t[n],i=t[n+1],o=s.constrain(n+(e-a)/(i-a)-.5,0,r),l=Math.round(o),c=Math.abs(o-l);return o&&o!==r&&c?{bin0:l,frac:c,bin1:Math.round(l+c/(o-l))}:{bin0:l,bin1:l,frac:0}}function w(e,t){var r=t.length-1,n=s.constrain(s.findBin(e,t),0,r),a=t[n],i=(e-a)/(t[n+1]-a)||0;return i<=0?{bin0:n,bin1:n,frac:0}:i<.5?{bin0:n,bin1:n+1,frac:i}:{bin0:n+1,bin1:n,frac:1-i}}function k(e,t,r){e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=Math.round(255*r[3])}e.exports=function(e,t,r,T){var M=t.xaxis,A=t.yaxis;s.makeTraceGroups(T,r,"hm").each(function(t){var r,T,S,L,O,C,D,P,E=n.select(this),R=t[0],I=R.trace,z=I.xgap||0,N=I.ygap||0,F=R.z,j=R.x,B=R.y,H=R.xCenter,U=R.yCenter,q=i.traceIs(I,"contour"),Y=q?"best":I.zsmooth,V=F.length,G=s.maxRowLength(F),Z=!1,W=!1;for(C=0;void 0===r&&C<j.length-1;)r=M.c2p(j[C]),C++;for(C=j.length-1;void 0===T&&C>0;)T=M.c2p(j[C]),C--;for(T<r&&(S=T,T=r,r=S,Z=!0),C=0;void 0===L&&C<B.length-1;)L=A.c2p(B[C]),C++;for(C=B.length-1;void 0===O&&C>0;)O=A.c2p(B[C]),C--;O<L&&(S=L,L=O,O=S,W=!0),q&&(H=j,U=B,j=R.xfill,B=R.yfill);var J="default";if(Y?J="best"===Y?"smooth":"fast":I._islinear&&0===z&&0===N&&v()&&(J="fast"),"fast"!==J){var X="best"===Y?0:.5;r=Math.max(-X*M._length,r),T=Math.min((1+X)*M._length,T),L=Math.max(-X*A._length,L),O=Math.min((1+X)*A._length,O)}var K,$,Q=Math.round(T-r),ee=Math.round(O-L);if(r>=M._length||T<=0||L>=A._length||O<=0)return E.selectAll("image").data([]).exit().remove(),void b(E);"fast"===J?(K=G,$=V):(K=Q,$=ee);var te=document.createElement("canvas");te.width=K,te.height=$;var re,ne,ae=te.getContext("2d",{willReadFrequently:!0}),ie=h(I,{noNumericCheck:!0,returnArray:!0});"fast"===J?(re=Z?function(e){return G-1-e}:s.identity,ne=W?function(e){return V-1-e}:s.identity):(re=function(e){return s.constrain(Math.round(M.c2p(j[e])-r),0,Q)},ne=function(e){return s.constrain(Math.round(A.c2p(B[e])-L),0,ee)});var oe,le,se,ce,ue=ne(0),fe=[ue,ue],de=Z?0:1,he=W?0:1,pe=0,ye=0,ve=0,ge=0;function me(e,t){if(void 0!==e){var r=ie(e);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),pe+=t,ye+=r[0]*t,ve+=r[1]*t,ge+=r[2]*t,r}return[0,0,0,0]}function xe(e,t,r,n){var a=e[r.bin0];if(void 0===a)return me(void 0,1);var i,o=e[r.bin1],l=t[r.bin0],s=t[r.bin1],c=o-a||0,u=l-a||0;return i=void 0===o?void 0===s?0:void 0===l?2*(s-a):2*(2*s-l-a)/3:void 0===s?void 0===l?0:2*(2*a-o-l)/3:void 0===l?2*(2*s-o-a)/3:s+a-o-l,me(a+r.frac*c+n.frac*(u+r.frac*i))}if("default"!==J){var be,_e=0;try{be=new Uint8Array(K*$*4)}catch(e){be=new Array(K*$*4)}if("smooth"===J){var we,ke,Te,Me=H||j,Ae=U||B,Se=new Array(Me.length),Le=new Array(Ae.length),Oe=new Array(Q),Ce=H?w:_,De=U?w:_;for(C=0;C<Me.length;C++)Se[C]=Math.round(M.c2p(Me[C])-r);for(C=0;C<Ae.length;C++)Le[C]=Math.round(A.c2p(Ae[C])-L);for(C=0;C<Q;C++)Oe[C]=Ce(C,Se);for(D=0;D<ee;D++)for(ke=F[(we=De(D,Le)).bin0],Te=F[we.bin1],C=0;C<Q;C++,_e+=4)k(be,_e,ce=xe(ke,Te,Oe[C],we))}else for(D=0;D<V;D++)for(se=F[D],fe=ne(D),C=0;C<G;C++)ce=me(se[C],1),k(be,_e=4*(fe*G+re(C)),ce);var Pe=ae.createImageData(K,$);try{Pe.data.set(be)}catch(e){var Ee=Pe.data,Re=Ee.length;for(D=0;D<Re;D++)Ee[D]=be[D]}ae.putImageData(Pe,0,0)}else{var Ie=Math.floor(z/2),ze=Math.floor(N/2);for(D=0;D<V;D++)if(se=F[D],fe.reverse(),fe[he]=ne(D+1),fe[0]!==fe[1]&&void 0!==fe[0]&&void 0!==fe[1])for(oe=[le=re(0),le],C=0;C<G;C++)oe.reverse(),oe[de]=re(C+1),oe[0]!==oe[1]&&void 0!==oe[0]&&void 0!==oe[1]&&(ce=me(se[C],(oe[1]-oe[0])*(fe[1]-fe[0])),ae.fillStyle="rgba("+ce.join(",")+")",ae.fillRect(oe[0]+Ie,fe[0]+ze,oe[1]-oe[0]-z,fe[1]-fe[0]-N))}ye=Math.round(ye/pe),ve=Math.round(ve/pe),ge=Math.round(ge/pe);var Ne=a("rgb("+ye+","+ve+","+ge+")");e._hmpixcount=(e._hmpixcount||0)+pe,e._hmlumcount=(e._hmlumcount||0)+pe*Ne.getLuminance();var Fe=E.selectAll("image").data(t);Fe.enter().append("svg:image").attr({xmlns:p.svg,preserveAspectRatio:"none"}),Fe.attr({height:ee,width:Q,x:r,y:L,"xlink:href":te.toDataURL("image/png")}),"fast"!==J||Y||Fe.attr("style",g),b(E);var je=I.texttemplate;if(je){var Be=d(I),He={type:"linear",range:[Be.min,Be.max],_separators:M._separators,_numFormat:M._numFormat},Ue="histogram2dcontour"===I.type,qe="contour"===I.type,Ye=qe?V-1:V,Ve=qe?1:0,Ge=qe?G-1:G,Ze=[];for(C=qe?1:0;C<Ye;C++){var We;if(qe)We=R.y[C];else if(Ue){if(0===C||C===V-1)continue;We=R.y[C]}else if(R.yCenter)We=R.yCenter[C];else{if(C+1===V&&void 0===R.y[C+1])continue;We=(R.y[C]+R.y[C+1])/2}var Je=Math.round(A.c2p(We));if(!(0>Je||Je>A._length))for(D=Ve;D<Ge;D++){var Xe;if(qe)Xe=R.x[D];else if(Ue){if(0===D||D===G-1)continue;Xe=R.x[D]}else if(R.xCenter)Xe=R.xCenter[D];else{if(D+1===G&&void 0===R.x[D+1])continue;Xe=(R.x[D]+R.x[D+1])/2}var Ke=Math.round(M.c2p(Xe));if(!(0>Ke||Ke>M._length)){var $e=u({x:Xe,y:We},I,e._fullLayout);$e.x=Xe,$e.y=We;var Qe=R.z[C][D];void 0===Qe?($e.z="",$e.zLabel=""):($e.z=Qe,$e.zLabel=l.tickText(He,Qe,"hover").text);var et=R.text&&R.text[C]&&R.text[C][D];void 0!==et&&!1!==et||(et=""),$e.text=et;var tt=s.texttemplateString(je,$e,e._fullLayout._d3locale,$e,I._meta||{});if(tt){var rt=tt.split("<br>"),nt=rt.length,at=0;for(P=0;P<nt;P++)at=Math.max(at,rt[P].length);Ze.push({l:nt,c:at,t:tt,x:Ke,y:Je,z:Qe})}}}}var it=I.textfont,ot=it.family,lt=it.size,st=e._fullLayout.font.size;if(!lt||"auto"===lt){var ct=1/0,ut=1/0,ft=0,dt=0;for(P=0;P<Ze.length;P++){var ht=Ze[P];if(ft=Math.max(ft,ht.l),dt=Math.max(dt,ht.c),P<Ze.length-1){var pt=Ze[P+1],yt=Math.abs(pt.x-ht.x),vt=Math.abs(pt.y-ht.y);yt&&(ct=Math.min(ct,yt)),vt&&(ut=Math.min(ut,vt))}}isFinite(ct)&&isFinite(ut)?(ct-=z,ut-=N,ct/=dt,ut/=ft,ct/=y/2,ut/=y,lt=Math.min(Math.floor(ct),Math.floor(ut),st)):lt=st}if(lt<=0||!isFinite(lt))return;x(E).data(Ze).enter().append("g").classed(m,1).append("text").attr("text-anchor","middle").each(function(t){var r=n.select(this),a=it.color;a&&"auto"!==a||(a=f.contrast("rgba("+ie(t.z).join()+")")),r.attr("data-notex",1).call(c.positionText,function(e){return e.x}(t),function(e){return e.y-lt*(e.l*y/2-1)}(t)).call(o.font,ot,lt,a).text(t.t).call(c.convertToTspans,e)})}})}},41648:function(e,t,r){"use strict";var n=r(33428);e.exports=function(e){n.select(e).selectAll(".hm image").style("opacity",function(e){return e.trace.opacity})}},82748:function(e){"use strict";e.exports=function(e,t,r){!1===r("zsmooth")&&(r("xgap"),r("ygap")),r("zhoverformat")}},51264:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=r(24040);function o(e,t){var r=t(e);return"scaled"===(r?t(e+"type","array"):"scaled")&&(t(e+"0"),t("d"+e)),r}e.exports=function(e,t,r,l,s,c){var u,f,d=r("z");if(s=s||"x",c=c||"y",void 0===d||!d.length)return 0;if(a.isArray1D(d)){u=r(s),f=r(c);var h=a.minRowLength(u),p=a.minRowLength(f);if(0===h||0===p)return 0;t._length=Math.min(h,p,d.length)}else{if(u=o(s,r),f=o(c,r),!function(e){for(var t,r=!0,i=!1,o=!1,l=0;l<e.length;l++){if(t=e[l],!a.isArrayOrTypedArray(t)){r=!1;break}t.length>0&&(i=!0);for(var s=0;s<t.length;s++)if(n(t[s])){o=!0;break}}return r&&i&&o}(d))return 0;r("transpose"),t._length=null}return"heatmapgl"===e.type||(i.getComponentMethod("calendars","handleTraceDefaults")(e,t,[s,c],l),!0)}},40196:function(e,t,r){"use strict";var n=r(20832),a=r(29736).axisHoverFormat,i=r(21776).Ks,o=r(21776).Gw,l=r(25376),s=r(11120),c=r(73316),u=r(92880).extendFlat;e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:a("x"),yhoverformat:a("y"),text:u({},n.text,{}),hovertext:u({},n.hovertext,{}),orientation:n.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:s("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:s("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:i({},{keys:c.eventDataKeys}),texttemplate:o({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:u({},n.textposition,{arrayOk:!1}),textfont:l({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:l({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:l({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:n.insidetextanchor,textangle:n.textangle,cliponaxis:n.cliponaxis,constraintext:n.constraintext,marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},2000:function(e){"use strict";e.exports=function(e,t){for(var r=e.length,n=0,a=0;a<r;a++)t[a]?(e[a]/=t[a],n+=e[a]):e[a]=null;return n}},11120:function(e){"use strict";e.exports=function(e,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}},16964:function(e,t,r){"use strict";var n=r(38248);e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,a){var i=a[t];return n(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,a,i){var o=a[t];return n(o)&&(o=Number(o),r[e]+=o,i[e]++),0},min:function(e,t,r,a){var i=a[t];if(n(i)){if(i=Number(i),!n(r[e]))return r[e]=i,i;if(r[e]>i){var o=i-r[e];return r[e]=i,o}}return 0},max:function(e,t,r,a){var i=a[t];if(n(i)){if(i=Number(i),!n(r[e]))return r[e]=i,i;if(r[e]<i){var o=i-r[e];return r[e]=i,o}}return 0}}},67712:function(e,t,r){"use strict";var n=r(39032),a=n.ONEAVGYEAR,i=n.ONEAVGMONTH,o=n.ONEDAY,l=n.ONEHOUR,s=n.ONEMIN,c=n.ONESEC,u=r(54460).tickIncrement;function f(e,t,r,n){if(e*t<=0)return 1/0;for(var a=Math.abs(t-e),i="date"===r.type,o=d(a,i),l=0;l<10;l++){var s=d(80*o,i);if(o===s)break;if(!h(s,e,t,i,r,n))break;o=s}return o}function d(e,t){return t&&e>c?e>o?e>1.1*a?a:e>1.1*i?i:o:e>l?l:e>s?s:c:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function h(e,t,r,n,i,l){if(n&&e>o){var s=p(t,i,l),c=p(r,i,l),u=e===a?0:1;return s[u]!==c[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function p(e,t,r){var n=t.c2d(e,a,r).split("-");return""===n[0]&&(n.unshift(),n[0]="-"+n[0]),n}e.exports=function(e,t,r,n,i){var l,s,c=-1.1*t,d=-.1*t,h=e-d,p=r[0],y=r[1],v=Math.min(f(p+d,p+h,n,i),f(y+d,y+h,n,i)),g=Math.min(f(p+c,p+d,n,i),f(y+c,y+d,n,i));if(v>g&&g<Math.abs(y-p)/4e3?(l=v,s=!1):(l=Math.min(v,g),s=!0),"date"===n.type&&l>o){var m=l===a?1:6,x=l===a?"M12":"M1";return function(t,r){var o=n.c2d(t,a,i),l=o.indexOf("-",m);l>0&&(o=o.substr(0,l));var c=n.d2c(o,0,i);if(c<t){var f=u(c,x,!1,i);(c+f)/2<t+e&&(c=f)}return r&&s?u(c,x,!0,i):c}}return function(t,r){var n=l*Math.round(t/l);return n+l/10<t&&n+.9*l<t+e&&(n+=l),r&&s&&(n-=l),n}}},35852:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=r(24040),o=r(54460),l=r(84664),s=r(16964),c=r(10648),u=r(2e3),f=r(67712);function d(e,t,r,l,s){var c,u,f,h,p,y,v,g=l+"bins",m=e._fullLayout,x=t["_"+l+"bingroup"],b=m._histogramBinOpts[x],_="overlay"===m.barmode,w=function(e){return r.r2c(e,0,h)},k=function(e){return r.c2r(e,0,h)},T="date"===r.type?function(e){return e||0===e?a.cleanDate(e,null,h):null}:function(e){return n(e)?Number(e):null};function M(e,t,r){t[e+"Found"]?(t[e]=T(t[e]),null===t[e]&&(t[e]=r[e])):(y[e]=t[e]=r[e],a.nestedProperty(u[0],g+"."+e).set(r[e]))}if(t["_"+l+"autoBinFinished"])delete t["_"+l+"autoBinFinished"];else{u=b.traces;var A=[],S=!0,L=!1,O=!1;for(c=0;c<u.length;c++)if((f=u[c]).visible){var C=b.dirs[c];p=f["_"+C+"pos0"]=r.makeCalcdata(f,C),A=a.concat(A,p),delete f["_"+l+"autoBinFinished"],!0===t.visible&&(S?S=!1:(delete f._autoBin,f["_"+l+"autoBinFinished"]=1),i.traceIs(f,"2dMap")&&(L=!0),"histogram2dcontour"===f.type&&(O=!0))}h=u[0][l+"calendar"];var D=o.autoBin(A,r,b.nbins,L,h,b.sizeFound&&b.size),P=u[0]._autoBin={};if(y=P[b.dirs[0]]={},O&&(b.size||(D.start=k(o.tickIncrement(w(D.start),D.size,!0,h))),void 0===b.end&&(D.end=k(o.tickIncrement(w(D.end),D.size,!1,h)))),_&&!i.traceIs(t,"2dMap")&&0===D._dataSpan&&"category"!==r.type&&"multicategory"!==r.type&&""===t.bingroup&&void 0===t.xbins){if(s)return[D,p,!0];D=function(e,t,r,n,i){var o,l,s,c=e._fullLayout,u=function(e,t){for(var r=t.xaxis,n=t.yaxis,a=t.orientation,i=[],o=e._fullData,l=0;l<o.length;l++){var s=o[l];"histogram"===s.type&&!0===s.visible&&s.orientation===a&&s.xaxis===r&&s.yaxis===n&&i.push(s)}return i}(e,t),f=!1,h=1/0,p=[t];for(o=0;o<u.length;o++)if((l=u[o])===t)f=!0;else if(f){var y=d(e,l,r,n,!0),v=y[0],g=y[2];l["_"+n+"autoBinFinished"]=1,l["_"+n+"pos0"]=y[1],g?p.push(l):h=Math.min(h,v.size)}else s=c._histogramBinOpts[l["_"+n+"bingroup"]],h=Math.min(h,s.size||l[i].size);var m=new Array(p.length);for(o=0;o<p.length;o++)for(var x=p[o]["_"+n+"pos0"],b=0;b<x.length;b++)if(void 0!==x[b]){m[o]=x[b];break}isFinite(h)||(h=a.distinctVals(m).minDiff);for(o=0;o<p.length;o++){var _=(l=p[o])[n+"calendar"],w={start:r.c2r(m[o]-h/2,0,_),end:r.c2r(m[o]+h/2,0,_),size:h};l._input[i]=l[i]=w,(s=c._histogramBinOpts[l["_"+n+"bingroup"]])&&a.extendFlat(s,w)}return t[i]}(e,t,r,l,g)}(v=f.cumulative||{}).enabled&&"include"!==v.currentbin&&("decreasing"===v.direction?D.start=k(o.tickIncrement(w(D.start),D.size,!0,h)):D.end=k(o.tickIncrement(w(D.end),D.size,!1,h))),b.size=D.size,b.sizeFound||(y.size=D.size,a.nestedProperty(u[0],g+".size").set(D.size)),M("start",b,D),M("end",b,D)}p=t["_"+l+"pos0"],delete t["_"+l+"pos0"];var E=t._input[g]||{},R=a.extendFlat({},b),I=b.start,z=r.r2l(E.start),N=void 0!==z;if((b.startFound||N)&&z!==r.r2l(I)){var F=N?z:a.aggNums(Math.min,null,p),j={type:"category"===r.type||"multicategory"===r.type?"linear":r.type,r2l:r.r2l,dtick:b.size,tick0:I,calendar:h,range:[F,o.tickIncrement(F,b.size,!1,h)].map(r.l2r)},B=o.tickFirst(j);B>r.r2l(F)&&(B=o.tickIncrement(B,b.size,!0,h)),R.start=r.l2r(B),N||a.nestedProperty(t,g+".start").set(R.start)}var H=b.end,U=r.r2l(E.end),q=void 0!==U;if((b.endFound||q)&&U!==r.r2l(H)){var Y=q?U:a.aggNums(Math.max,null,p);R.end=r.l2r(Y),q||a.nestedProperty(t,g+".start").set(R.end)}var V="autobin"+l;return!1===t._input[V]&&(t._input[g]=a.extendFlat({},t[g]||{}),delete t._input[V],delete t[V]),[R,p]}e.exports={calc:function(e,t){var r,i,h,p,y=[],v=[],g="h"===t.orientation,m=o.getFromId(e,g?t.yaxis:t.xaxis),x=g?"y":"x",b={x:"y",y:"x"}[x],_=t[x+"calendar"],w=t.cumulative,k=d(e,t,m,x),T=k[0],M=k[1],A="string"==typeof T.size,S=[],L=A?S:T,O=[],C=[],D=[],P=0,E=t.histnorm,R=t.histfunc,I=-1!==E.indexOf("density");w.enabled&&I&&(E=E.replace(/ ?density$/,""),I=!1);var z,N="max"===R||"min"===R?null:0,F=s.count,j=c[E],B=!1,H=function(e){return m.r2c(e,0,_)};for(a.isArrayOrTypedArray(t[b])&&"count"!==R&&(z=t[b],B="avg"===R,F=s[R]),r=H(T.start),h=H(T.end)+(r-o.tickIncrement(r,T.size,!1,_))/1e6;r<h&&y.length<1e6&&(i=o.tickIncrement(r,T.size,!1,_),y.push((r+i)/2),v.push(N),D.push([]),S.push(r),I&&O.push(1/(i-r)),B&&C.push(0),!(i<=r));)r=i;S.push(r),A||"date"!==m.type||(L={start:H(L.start),end:H(L.end),size:L.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var U=t["_"+x+"bingroup"],q={leftGap:1/0,rightGap:1/0};U&&(e._fullLayout._roundFnOpts[U]||(e._fullLayout._roundFnOpts[U]=q),q=e._fullLayout._roundFnOpts[U]);var Y,V=v.length,G=!0,Z=q.leftGap,W=q.rightGap,J={};for(r=0;r<M.length;r++){var X=M[r];(p=a.findBin(X,L))>=0&&p<V&&(P+=F(p,r,v,z,C),G&&D[p].length&&X!==M[D[p][0]]&&(G=!1),D[p].push(r),J[r]=p,Z=Math.min(Z,X-S[p]),W=Math.min(W,S[p+1]-X))}q.leftGap=Z,q.rightGap=W,G||(Y=function(t,r){return function(){var n=e._fullLayout._roundFnOpts[U];return f(n.leftGap,n.rightGap,S,m,_)(t,r)}}),B&&(P=u(v,C)),j&&j(v,P,O),w.enabled&&function(e,t,r){var n,a,i;function o(t){i=e[t],e[t]/=2}function l(t){a=e[t],e[t]=i+a/2,i+=a}if("half"===r)if("increasing"===t)for(o(0),n=1;n<e.length;n++)l(n);else for(o(e.length-1),n=e.length-2;n>=0;n--)l(n);else if("increasing"===t){for(n=1;n<e.length;n++)e[n]+=e[n-1];"exclude"===r&&(e.unshift(0),e.pop())}else{for(n=e.length-2;n>=0;n--)e[n]+=e[n+1];"exclude"===r&&(e.push(0),e.shift())}}(v,w.direction,w.currentbin);var K=Math.min(y.length,v.length),$=[],Q=0,ee=K-1;for(r=0;r<K;r++)if(v[r]){Q=r;break}for(r=K-1;r>=Q;r--)if(v[r]){ee=r;break}for(r=Q;r<=ee;r++)if(n(y[r])&&n(v[r])){var te={p:y[r],s:v[r],b:0};w.enabled||(te.pts=D[r],G?te.ph0=te.ph1=D[r].length?M[D[r][0]]:y[r]:(t._computePh=!0,te.ph0=Y(S[r]),te.ph1=Y(S[r+1],!0))),$.push(te)}return 1===$.length&&($[0].width1=o.tickIncrement($[0].p,T.size,!1,_)-$[0].p),l($,t),a.isArrayOrTypedArray(t.selectedpoints)&&a.tagSelected($,t,J),$},calcAllAutoBins:d}},73316:function(e){"use strict";e.exports={eventDataKeys:["binNumber"]}},80536:function(e,t,r){"use strict";var n=r(3400),a=r(79811),i=r(24040).traceIs,o=r(20011),l=r(31508).validateCornerradius,s=n.nestedProperty,c=r(71888).getAxisGroup,u=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],f=["x","y"];e.exports=function(e,t){var r,d,h,p,y,v,g,m=t._histogramBinOpts={},x=[],b={},_=[];function w(e,t){return n.coerce(r._input,r,r._module.attributes,e,t)}function k(e){return"v"===e.orientation?"x":"y"}function T(e,r,i){var o=e.uid+"__"+i;r||(r=o);var l=function(e,r){return a.getFromTrace({_fullLayout:t},e,r).type}(e,i),s=e[i+"calendar"]||"",c=m[r],u=!0;c&&(l===c.axType&&s===c.calendar?(u=!1,c.traces.push(e),c.dirs.push(i)):(r=o,l!==c.axType&&n.warn(["Attempted to group the bins of trace",e.index,"set on a","type:"+l,"axis","with bins on","type:"+c.axType,"axis."].join(" ")),s!==c.calendar&&n.warn(["Attempted to group the bins of trace",e.index,"set with a",s,"calendar","with bins",c.calendar?"on a "+c.calendar+" calendar":"w/o a set calendar"].join(" ")))),u&&(m[r]={traces:[e],dirs:[i],axType:l,calendar:e[i+"calendar"]||""}),e["_"+i+"bingroup"]=r}for(y=0;y<e.length;y++)if(r=e[y],i(r,"histogram")){if(x.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,"histogram"===r.type){var M=w("marker.cornerradius",t.barcornerradius);r.marker&&(r.marker.cornerradius=l(M))}i(r,"2dMap")||o(r._input,r,t,w)}var A=t._alignmentOpts||{};for(y=0;y<x.length;y++){if(r=x[y],h="",!i(r,"2dMap")){if(p=k(r),"group"===t.barmode&&r.alignmentgroup){var S=r[p+"axis"],L=c(t,S)+r.orientation;(A[L]||{})[r.alignmentgroup]&&(h=L)}h||"overlay"===t.barmode||(h=c(t,r.xaxis)+c(t,r.yaxis)+k(r))}h?(b[h]||(b[h]=[]),b[h].push(r)):_.push(r)}for(h in b)if(1!==(d=b[h]).length){var O=!1;for(d.length&&(r=d[0],O=w("bingroup")),h=O||h,y=0;y<d.length;y++){var C=(r=d[y])._input.bingroup;C&&C!==h&&n.warn(["Trace",r.index,"must match","within bingroup",h+".","Ignoring its bingroup:",C,"setting."].join(" ")),r.bingroup=h,T(r,h,k(r))}}else _.push(d[0]);for(y=0;y<_.length;y++){r=_[y];var D=w("bingroup");if(i(r,"2dMap"))for(g=0;g<2;g++){var P=w((p=f[g])+"bingroup",D?D+"__"+p:null);T(r,P,p)}else T(r,D,k(r))}for(h in m){var E=m[h];for(d=E.traces,v=0;v<u.length;v++){var R,I,z=u[v],N=z.name;if("nbins"!==N||!E.sizeFound){for(y=0;y<d.length;y++){if(r=d[y],p=E.dirs[y],R=z.aStr[p],void 0!==s(r._input,R).get()){E[N]=w(R),E[N+"Found"]=!0;break}(I=(r._autoBin||{})[p]||{})[N]&&s(r,R).set(I[N])}if("start"===N||"end"===N)for(;y<d.length;y++)(r=d[y])["_"+p+"bingroup"]&&w(R,(I=(r._autoBin||{})[p]||{})[N]);"nbins"!==N||E.sizeFound||E.nbinsFound||(r=d[0],E[N]=w(R))}}}}},6616:function(e,t,r){"use strict";var n=r(24040),a=r(3400),i=r(76308),o=r(31508).handleText,l=r(55592),s=r(40196);e.exports=function(e,t,r,c){function u(r,n){return a.coerce(e,t,s,r,n)}var f=u("x"),d=u("y");u("cumulative.enabled")&&(u("cumulative.direction"),u("cumulative.currentbin")),u("text");var h=u("textposition");o(e,t,c,u,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),u("hovertext"),u("hovertemplate"),u("xhoverformat"),u("yhoverformat");var p=u("orientation",d&&!f?"h":"v"),y="v"===p?"x":"y",v="v"===p?"y":"x",g=f&&d?Math.min(a.minRowLength(f)&&a.minRowLength(d)):a.minRowLength(t[y]||[]);if(g){t._length=g,n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],c),t[v]&&u("histfunc"),u("histnorm"),u("autobin"+y),l(e,t,u,r,c),a.coerceSelectionMarkerOpacity(t,u);var m=(t.marker.line||{}).color,x=n.getComponentMethod("errorbars","supplyDefaults");x(e,t,m||i.defaultLine,{axis:"y"}),x(e,t,m||i.defaultLine,{axis:"x",inherit:"y"})}else t.visible=!1}},84980:function(e){"use strict";e.exports=function(e,t,r,n,a){if(e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(e.z=t.zLabelVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),!(r.cumulative||{}).enabled){var i,o=Array.isArray(a)?n[0].pts[a[0]][a[1]]:n[a].pts;if(e.pointNumbers=o,e.binNumber=e.pointNumber,delete e.pointNumber,delete e.pointIndex,r._indexToPoints){i=[];for(var l=0;l<o.length;l++)i=i.concat(r._indexToPoints[o[l]])}else i=o;e.pointIndices=i}return e}},43339:function(e,t,r){"use strict";var n=r(63400).hoverPoints,a=r(54460).hoverLabelText;e.exports=function(e,t,r,i,o){var l=n(e,t,r,i,o);if(l){var s=(e=l[0]).cd[e.index],c=e.cd[0].trace;if(!c.cumulative.enabled){var u="h"===c.orientation?"y":"x";e[u+"Label"]=a(e[u+"a"],[s.ph0,s.ph1],c[u+"hoverformat"])}return l}}},42600:function(e,t,r){"use strict";e.exports={attributes:r(40196),layoutAttributes:r(39324),supplyDefaults:r(6616),crossTraceDefaults:r(80536),supplyLayoutDefaults:r(37156),calc:r(35852).calc,crossTraceCalc:r(96376).crossTraceCalc,plot:r(98184).plot,layerName:"barlayer",style:r(60100).style,styleOnSelect:r(60100).styleOnSelect,colorbar:r(5528),hoverPoints:r(43339),selectPoints:r(45784),eventData:r(84980),moduleType:"trace",name:"histogram",basePlotModule:r(57952),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}},10648:function(e){"use strict";e.exports={percent:function(e,t){for(var r=e.length,n=100/t,a=0;a<r;a++)e[a]*=n},probability:function(e,t){for(var r=e.length,n=0;n<r;n++)e[n]/=t},density:function(e,t,r,n){var a=e.length;n=n||1;for(var i=0;i<a;i++)e[i]*=r[i]*n},"probability density":function(e,t,r,n){var a=e.length;n&&(t/=n);for(var i=0;i<a;i++)e[i]*=r[i]/t}}},37008:function(e,t,r){"use strict";var n=r(40196),a=r(11120),i=r(83328),o=r(45464),l=r(29736).axisHoverFormat,s=r(21776).Ks,c=r(21776).Gw,u=r(49084),f=r(92880).extendFlat;e.exports=f({x:n.x,y:n.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:a("x"),nbinsy:n.nbinsy,ybins:a("y"),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:f({},n.bingroup,{}),xbingroup:f({},n.bingroup,{}),ybingroup:f({},n.bingroup,{}),xgap:i.xgap,ygap:i.ygap,zsmooth:i.zsmooth,xhoverformat:l("x"),yhoverformat:l("y"),zhoverformat:l("z",1),hovertemplate:s({},{keys:"z"}),texttemplate:c({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:i.textfont,showlegend:f({},o.showlegend,{dflt:!1})},u("",{cLetter:"z",autoColorDflt:!1}))},55480:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(16964),o=r(10648),l=r(2e3),s=r(67712),c=r(35852).calcAllAutoBins;function u(e,t,r,n){var a,i=new Array(e);if(n)for(a=0;a<e;a++)i[a]=1/(t[a+1]-t[a]);else{var o=1/r;for(a=0;a<e;a++)i[a]=o}return i}function f(e,t){return{start:e(t.start),end:e(t.end),size:t.size}}function d(e,t,r,n,a,i){var o,l=e.length-1,c=new Array(l),u=s(r,n,e,a,i);for(o=0;o<l;o++){var f=(t||[])[o];c[o]=void 0===f?[u(e[o]),u(e[o+1],!0)]:[f,f]}return c}e.exports=function(e,t){var r,s,h,p,y=a.getFromId(e,t.xaxis),v=a.getFromId(e,t.yaxis),g=t.xcalendar,m=t.ycalendar,x=function(e){return y.r2c(e,0,g)},b=function(e){return v.r2c(e,0,m)},_=c(e,t,y,"x"),w=_[0],k=_[1],T=c(e,t,v,"y"),M=T[0],A=T[1],S=t._length;k.length>S&&k.splice(S,k.length-S),A.length>S&&A.splice(S,A.length-S);var L=[],O=[],C=[],D="string"==typeof w.size,P="string"==typeof M.size,E=[],R=[],I=D?E:w,z=P?R:M,N=0,F=[],j=[],B=t.histnorm,H=t.histfunc,U=-1!==B.indexOf("density"),q="max"===H||"min"===H?null:0,Y=i.count,V=o[B],G=!1,Z=[],W=[],J="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";J&&"count"!==H&&(G="avg"===H,Y=i[H]);var X=w.size,K=x(w.start),$=x(w.end)+(K-a.tickIncrement(K,X,!1,g))/1e6;for(r=K;r<$;r=a.tickIncrement(r,X,!1,g))O.push(q),E.push(r),G&&C.push(0);E.push(r);var Q,ee=O.length,te=(r-K)/ee,re=(Q=K+te/2,y.c2r(Q,0,g)),ne=M.size,ae=b(M.start),ie=b(M.end)+(ae-a.tickIncrement(ae,ne,!1,m))/1e6;for(r=ae;r<ie;r=a.tickIncrement(r,ne,!1,m)){L.push(O.slice()),R.push(r);var oe=new Array(ee);for(s=0;s<ee;s++)oe[s]=[];j.push(oe),G&&F.push(C.slice())}R.push(r);var le=L.length,se=(r-ae)/le,ce=function(e){return v.c2r(e,0,m)}(ae+se/2);U&&(Z=u(O.length,I,te,D),W=u(L.length,z,se,P)),D||"date"!==y.type||(I=f(x,I)),P||"date"!==v.type||(z=f(b,z));var ue=!0,fe=!0,de=new Array(ee),he=new Array(le),pe=1/0,ye=1/0,ve=1/0,ge=1/0;for(r=0;r<S;r++){var me=k[r],xe=A[r];h=n.findBin(me,I),p=n.findBin(xe,z),h>=0&&h<ee&&p>=0&&p<le&&(N+=Y(h,r,L[p],J,F[p]),j[p][h].push(r),ue&&(void 0===de[h]?de[h]=me:de[h]!==me&&(ue=!1)),fe&&(void 0===he[p]?he[p]=xe:he[p]!==xe&&(fe=!1)),pe=Math.min(pe,me-E[h]),ye=Math.min(ye,E[h+1]-me),ve=Math.min(ve,xe-R[p]),ge=Math.min(ge,R[p+1]-xe))}if(G)for(p=0;p<le;p++)N+=l(L[p],F[p]);if(V)for(p=0;p<le;p++)V(L[p],N,Z,W[p]);return{x:k,xRanges:d(E,ue&&de,pe,ye,y,g),x0:re,dx:te,y:A,yRanges:d(R,fe&&he,ve,ge,v,m),y0:ce,dy:se,z:L,pts:j}}},99784:function(e,t,r){"use strict";var n=r(3400),a=r(56408),i=r(82748),o=r(27260),l=r(39096),s=r(37008);e.exports=function(e,t,r,c){function u(r,a){return n.coerce(e,t,s,r,a)}a(e,t,u,c),!1!==t.visible&&(i(e,t,u,c),o(e,t,c,u,{prefix:"",cLetter:"z"}),u("hovertemplate"),l(u,c),u("xhoverformat"),u("yhoverformat"))}},59576:function(e,t,r){"use strict";var n=r(55512),a=r(54460).hoverLabelText;e.exports=function(e,t,r,i,o){var l=n(e,t,r,i,o);if(l){var s=(e=l[0]).index,c=s[0],u=s[1],f=e.cd[0],d=f.trace,h=f.xRanges[u],p=f.yRanges[c];return e.xLabel=a(e.xa,[h[0],h[1]],d.xhoverformat),e.yLabel=a(e.ya,[p[0],p[1]],d.yhoverformat),l}}},21536:function(e,t,r){"use strict";e.exports={attributes:r(37008),supplyDefaults:r(99784),crossTraceDefaults:r(80536),calc:r(19512),plot:r(41420),layerName:"heatmaplayer",colorbar:r(96288),style:r(41648),hoverPoints:r(59576),eventData:r(84980),moduleType:"trace",name:"histogram2d",basePlotModule:r(57952),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}},56408:function(e,t,r){"use strict";var n=r(24040),a=r(3400);e.exports=function(e,t,r,i){var o=r("x"),l=r("y"),s=a.minRowLength(o),c=a.minRowLength(l);s&&c?(t._length=Math.min(s,c),n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],i),(r("z")||r("marker.color"))&&r("histfunc"),r("histnorm"),r("autobinx"),r("autobiny")):t.visible=!1}},81220:function(e,t,r){"use strict";var n=r(37008),a=r(67104),i=r(49084),o=r(29736).axisHoverFormat,l=r(92880).extendFlat;e.exports=l({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:a.autocontour,ncontours:a.ncontours,contours:a.contours,line:{color:a.line.color,width:l({},a.line.width,{dflt:.5}),dash:a.line.dash,smoothing:a.line.smoothing,editType:"plot"},xhoverformat:o("x"),yhoverformat:o("y"),zhoverformat:o("z",1),hovertemplate:n.hovertemplate,texttemplate:a.texttemplate,textfont:a.textfont},i("",{cLetter:"z",editTypeOverride:"calc"}))},3704:function(e,t,r){"use strict";var n=r(3400),a=r(56408),i=r(84952),o=r(97680),l=r(39096),s=r(81220);e.exports=function(e,t,r,c){function u(r,a){return n.coerce(e,t,s,r,a)}a(e,t,u,c),!1!==t.visible&&(i(e,t,u,function(r){return n.coerce2(e,t,s,r)}),o(e,t,u,c),u("xhoverformat"),u("yhoverformat"),u("hovertemplate"),t.contours&&"heatmap"===t.contours.coloring&&l(u,c))}},65664:function(e,t,r){"use strict";e.exports={attributes:r(81220),supplyDefaults:r(3704),crossTraceDefaults:r(80536),calc:r(20688),plot:r(23676).plot,layerName:"contourlayer",style:r(52440),colorbar:r(55296),hoverPoints:r(38200),moduleType:"trace",name:"histogram2dcontour",basePlotModule:r(57952),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}},95188:function(e,t,r){"use strict";for(var n=r(45464),a=r(21776).Ks,i=r(92880).extendFlat,o=r(47797).colormodel,l=["rgb","rgba","rgba256","hsl","hsla"],s=[],c=[],u=0;u<l.length;u++){var f=o[l[u]];s.push("For the `"+l[u]+"` colormodel, it is ["+(f.zminDflt||f.min).join(", ")+"]."),c.push("For the `"+l[u]+"` colormodel, it is ["+(f.zmaxDflt||f.max).join(", ")+"].")}e.exports=i({source:{valType:"string",editType:"calc"},z:{valType:"data_array",editType:"calc"},colormodel:{valType:"enumerated",values:l,editType:"calc"},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot"},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc"},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc"},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dx:{valType:"number",dflt:1,editType:"calc"},dy:{valType:"number",dflt:1,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"data_array",editType:"plot"},hoverinfo:i({},n.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:a({},{keys:["z","color","colormodel"]}),transforms:void 0})},93336:function(e,t,r){"use strict";var n=r(3400),a=r(47797),i=r(38248),o=r(54460),l=r(3400).maxRowLength,s=r(18712).i;function c(e,t,r,a){return function(i){return n.constrain((i-e)*t,r,a)}}function u(e,t){return function(r){return n.constrain(r,e,t)}}e.exports=function(e,t){var r,n;if(t._hasZ)r=t.z.length,n=l(t.z);else if(t._hasSource){var f=s(t.source);r=f.height,n=f.width}var d,h=o.getFromId(e,t.xaxis||"x"),p=o.getFromId(e,t.yaxis||"y"),y=h.d2c(t.x0)-t.dx/2,v=p.d2c(t.y0)-t.dy/2,g=[y,y+n*t.dx],m=[v,v+r*t.dy];if(h&&"log"===h.type)for(d=0;d<n;d++)g.push(y+d*t.dx);if(p&&"log"===p.type)for(d=0;d<r;d++)m.push(v+d*t.dy);return t._extremes[h._id]=o.findExtremes(h,g),t._extremes[p._id]=o.findExtremes(p,m),t._scaler=function(e){var t=a.colormodel[e.colormodel],r=(t.colormodel||e.colormodel).length;e._sArray=[];for(var n=0;n<r;n++)t.min[n]!==e.zmin[n]||t.max[n]!==e.zmax[n]?e._sArray.push(c(e.zmin[n],(t.max[n]-t.min[n])/(e.zmax[n]-e.zmin[n]),t.min[n],t.max[n])):e._sArray.push(u(t.min[n],t.max[n]));return function(t){for(var n=t.slice(0,r),a=0;a<r;a++){var o=n[a];if(!i(o))return!1;n[a]=e._sArray[a](o)}return n}}(t),[{x0:y,y0:v,z:t.z,w:n,h:r}]}},47797:function(e){"use strict";e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["°","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["°","%","%",""]}}}},13188:function(e,t,r){"use strict";var n=r(3400),a=r(95188),i=r(47797),o=r(81792).IMAGE_URL_PREFIX;e.exports=function(e,t){function r(r,i){return n.coerce(e,t,a,r,i)}r("source"),t.source&&!t.source.match(o)&&delete t.source,t._hasSource=!!t.source;var l,s=r("z");(t._hasZ=!(void 0===s||!s.length||!s[0]||!s[0].length),t._hasZ||t._hasSource)?(r("x0"),r("y0"),r("dx"),r("dy"),t._hasZ?(r("colormodel","rgb"),r("zmin",(l=i.colormodel[t.colormodel]).zminDflt||l.min),r("zmax",l.zmaxDflt||l.max)):t._hasSource&&(t.colormodel="rgba256",l=i.colormodel[t.colormodel],t.zmin=l.zminDflt,t.zmax=l.zmaxDflt),r("zsmooth"),r("text"),r("hovertext"),r("hovertemplate"),t._length=null):t.visible=!1}},79972:function(e){"use strict";e.exports=function(e,t){return"xVal"in t&&(e.x=t.xVal),"yVal"in t&&(e.y=t.yVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e.color=t.color,e.colormodel=t.trace.colormodel,e.z||(e.z=t.color),e}},18712:function(e,t,r){"use strict";var n=r(19480),a=r(81792).IMAGE_URL_PREFIX,i=r(33576).Buffer;t.i=function(e){var t=e.replace(a,""),r=new i(t,"base64");return n(r)}},24892:function(e,t,r){"use strict";var n=r(93024),a=r(3400),i=a.isArrayOrTypedArray,o=r(47797);e.exports=function(e,t,r){var l=e.cd[0],s=l.trace,c=e.xa,u=e.ya;if(!(n.inbox(t-l.x0,t-(l.x0+l.w*s.dx),0)>0||n.inbox(r-l.y0,r-(l.y0+l.h*s.dy),0)>0)){var f,d=Math.floor((t-l.x0)/s.dx),h=Math.floor(Math.abs(r-l.y0)/s.dy);if(s._hasZ?f=l.z[h][d]:s._hasSource&&(f=s._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(d,h,1,1).data),f){var p,y=l.hi||s.hoverinfo;if(y){var v=y.split("+");-1!==v.indexOf("all")&&(v=["color"]),-1!==v.indexOf("color")&&(p=!0)}var g,m=o.colormodel[s.colormodel],x=m.colormodel||s.colormodel,b=x.length,_=s._scaler(f),w=m.suffix,k=[];(s.hovertemplate||p)&&(k.push("["+[_[0]+w[0],_[1]+w[1],_[2]+w[2]].join(", ")),4===b&&k.push(", "+_[3]+w[3]),k.push("]"),k=k.join(""),e.extraText=x.toUpperCase()+": "+k),i(s.hovertext)&&i(s.hovertext[h])?g=s.hovertext[h][d]:i(s.text)&&i(s.text[h])&&(g=s.text[h][d]);var T=u.c2p(l.y0+(h+.5)*s.dy),M=l.x0+(d+.5)*s.dx,A=l.y0+(h+.5)*s.dy,S="["+f.slice(0,s.colormodel.length).join(", ")+"]";return[a.extendFlat(e,{index:[h,d],x0:c.c2p(l.x0+d*s.dx),x1:c.c2p(l.x0+(d+1)*s.dx),y0:T,y1:T,color:_,xVal:M,xLabelVal:M,yVal:A,yLabelVal:A,zLabelVal:S,text:g,hovertemplateLabels:{zLabel:S,colorLabel:k,"color[0]Label":_[0]+w[0],"color[1]Label":_[1]+w[1],"color[2]Label":_[2]+w[2],"color[3]Label":_[3]+w[3]}})]}}}},48928:function(e,t,r){"use strict";e.exports={attributes:r(95188),supplyDefaults:r(13188),calc:r(93336),plot:r(63715),style:r(28576),hoverPoints:r(24892),eventData:r(79972),moduleType:"trace",name:"image",basePlotModule:r(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(e,t,r){"use strict";var n=r(33428),a=r(3400),i=a.strTranslate,o=r(9616),l=r(47797),s=r(9188),c=r(2264).STYLE;e.exports=function(e,t,r,u){var f=t.xaxis,d=t.yaxis,h=!e._context._exportedPlot&&s();a.makeTraceGroups(u,r,"im").each(function(t){var r=n.select(this),s=t[0],u=s.trace,p=("fast"===u.zsmooth||!1===u.zsmooth&&h)&&!u._hasZ&&u._hasSource&&"linear"===f.type&&"linear"===d.type;u._realImage=p;var y,v,g,m,x,b,_=s.z,w=s.x0,k=s.y0,T=s.w,M=s.h,A=u.dx,S=u.dy;for(b=0;void 0===y&&b<T;)y=f.c2p(w+b*A),b++;for(b=T;void 0===v&&b>0;)v=f.c2p(w+b*A),b--;for(b=0;void 0===m&&b<M;)m=d.c2p(k+b*S),b++;for(b=M;void 0===x&&b>0;)x=d.c2p(k+b*S),b--;if(v<y&&(g=v,v=y,y=g),x<m&&(g=m,m=x,x=g),!p){y=Math.max(-.5*f._length,y),v=Math.min(1.5*f._length,v),m=Math.max(-.5*d._length,m),x=Math.min(1.5*d._length,x)}var L=Math.round(v-y),O=Math.round(x-m);if(L<=0||O<=0){r.selectAll("image").data([]).exit().remove()}else{var C=r.selectAll("image").data([t]);C.enter().append("svg:image").attr({xmlns:o.svg,preserveAspectRatio:"none"}),C.exit().remove();var D=!1===u.zsmooth?c:"";if(p){var P=a.simpleMap(f.range,f.r2l),E=a.simpleMap(d.range,d.r2l),R=P[1]<P[0],I=E[1]>E[0];if(R||I){var z=y+L/2,N=m+O/2;D+="transform:"+i(z+"px",N+"px")+"scale("+(R?-1:1)+","+(I?-1:1)+")"+i(-z+"px",-N+"px")+";"}}C.attr("style",D);var F=new Promise(function(e){if(u._hasZ)e();else if(u._hasSource)if(u._canvas&&u._canvas.el.width===T&&u._canvas.el.height===M&&u._canvas.source===u.source)e();else{var t=document.createElement("canvas");t.width=T,t.height=M;var r=t.getContext("2d",{willReadFrequently:!0});u._image=u._image||new Image;var n=u._image;n.onload=function(){r.drawImage(n,0,0),u._canvas={el:t,source:u.source},e()},n.setAttribute("src",u.source)}}).then(function(){var e;if(u._hasZ)e=j(function(e,t){var r=_[t][e];return a.isTypedArray(r)&&(r=Array.from(r)),r}).toDataURL("image/png");else if(u._hasSource)if(p)e=u.source;else{var t=u._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,T,M).data;e=j(function(e,r){var n=4*(r*T+e);return[t[n],t[n+1],t[n+2],t[n+3]]}).toDataURL("image/png")}C.attr({"xlink:href":e,height:O,width:L,x:y,y:m})});e._promises.push(F)}function j(e){var t=document.createElement("canvas");t.width=L,t.height=O;var r,n=t.getContext("2d",{willReadFrequently:!0}),i=function(e){return a.constrain(Math.round(f.c2p(w+e*A)-y),0,L)},o=function(e){return a.constrain(Math.round(d.c2p(k+e*S)-m),0,O)},c=l.colormodel[u.colormodel],h=c.colormodel||u.colormodel,p=c.fmt;for(b=0;b<s.w;b++){var v=i(b),g=i(b+1);if(g!==v&&!isNaN(g)&&!isNaN(v))for(var x=0;x<s.h;x++){var _=o(x),T=o(x+1);T===_||isNaN(T)||isNaN(_)||!e(b,x)||(r=u._scaler(e(b,x)),n.fillStyle=r?h+"("+p(r).join(",")+")":"rgba(0,0,0,0)",n.fillRect(v,_,g-v,T-_))}}return t}})}},28576:function(e,t,r){"use strict";var n=r(33428);e.exports=function(e){n.select(e).selectAll(".im image").style("opacity",function(e){return e[0].trace.opacity})}},74996:function(e,t,r){"use strict";var n=r(45464),a=r(86968).u,i=r(25376),o=r(22548),l=r(21776).Ks,s=r(21776).Gw,c=r(92880).extendFlat,u=r(98192).c,f=i({editType:"plot",arrayOk:!0,colorEditType:"plot"});e.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:o.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:u,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:c({},n.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:l({},{keys:["label","color","value","percent","text"]}),texttemplate:s({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:c({},f,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:c({},f,{}),outsidetextfont:c({},f,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:c({},f,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:a({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:c({},f,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},80036:function(e,t,r){"use strict";var n=r(7316);t.name="pie",t.plot=function(e,r,a,i){n.plotBasePlot(t.name,e,r,a,i)},t.clean=function(e,r,a,i){n.cleanBasePlot(t.name,e,r,a,i)}},45768:function(e,t,r){"use strict";var n=r(38248),a=r(49760),i=r(76308),o={};function l(e){return function(t,r){return!!t&&(!!(t=a(t)).isValid()&&(t=i.addOpacity(t,t.getAlpha()),e[r]||(e[r]=t),t))}}function s(e,t){var r,n=JSON.stringify(e),i=t[n];if(!i){for(i=e.slice(),r=0;r<e.length;r++)i.push(a(e[r]).lighten(20).toHexString());for(r=0;r<e.length;r++)i.push(a(e[r]).darken(20).toHexString());t[n]=i}return i}e.exports={calc:function(e,t){var r,a,i=[],o=e._fullLayout,s=o.hiddenlabels||[],c=t.labels,u=t.marker.colors||[],f=t.values,d=t._length,h=t._hasValues&&d;if(t.dlabel)for(c=new Array(d),r=0;r<d;r++)c[r]=String(t.label0+r*t.dlabel);var p={},y=l(o["_"+t.type+"colormap"]),v=0,g=!1;for(r=0;r<d;r++){var m,x,b;if(h){if(m=f[r],!n(m))continue;m=+m}else m=1;void 0!==(x=c[r])&&""!==x||(x=r);var _=p[x=String(x)];void 0===_?(p[x]=i.length,(b=-1!==s.indexOf(x))||(v+=m),i.push({v:m,label:x,color:y(u[r],x),i:r,pts:[r],hidden:b})):(g=!0,(a=i[_]).v+=m,a.pts.push(r),a.hidden||(v+=m),!1===a.color&&u[r]&&(a.color=y(u[r],x)))}return i=i.filter(function(e){return e.v>=0}),("funnelarea"===t.type?g:t.sort)&&i.sort(function(e,t){return t.v-e.v}),i[0]&&(i[0].vTotal=v),i},crossTraceCalc:function(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,a=e.calcdata,i=n[r+"colorway"],l=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(i=s(i,o));for(var c=0,u=0;u<a.length;u++){var f=a[u];if(f[0].trace.type===r)for(var d=0;d<f.length;d++){var h=f[d];!1===h.color&&(l[h.label]?h.color=l[h.label]:(l[h.label]=h.color=i[c%i.length],c++))}}},makePullColorFn:l,generateExtendedColors:s}},74174:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=r(74996),o=r(86968).Q,l=r(31508).handleText,s=r(3400).coercePattern;function c(e,t){var r=a.isArrayOrTypedArray(e),i=a.isArrayOrTypedArray(t),o=Math.min(r?e.length:1/0,i?t.length:1/0);if(isFinite(o)||(o=0),o&&i){for(var l,s=0;s<o;s++){var c=t[s];if(n(c)&&c>0){l=!0;break}}l||(o=0)}return{hasLabels:r,hasValues:i,len:o}}function u(e,t,r,n,a){n("marker.line.width")&&n("marker.line.color",a?void 0:r.paper_bgcolor);var i=n("marker.colors");s(n,"marker.pattern",i),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}e.exports={handleLabelsAndValues:c,handleMarkerDefaults:u,supplyDefaults:function(e,t,r,n){function s(r,n){return a.coerce(e,t,i,r,n)}var f=c(s("labels"),s("values")),d=f.len;if(t._hasLabels=f.hasLabels,t._hasValues=f.hasValues,!t._hasLabels&&t._hasValues&&(s("label0"),s("dlabel")),d){t._length=d,u(e,t,n,s,!0),s("scalegroup");var h,p=s("text"),y=s("texttemplate");if(y||(h=s("textinfo",a.isArrayOrTypedArray(p)?"text+percent":"percent")),s("hovertext"),s("hovertemplate"),y||h&&"none"!==h){var v=s("textposition");l(e,t,n,s,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(v)||"auto"===v||"outside"===v)&&s("automargin"),("inside"===v||"auto"===v||Array.isArray(v))&&s("insidetextorientation")}else"none"===h&&s("textposition","none");o(t,n,s);var g=s("hole");if(s("title.text")){var m=s("title.position",g?"middle center":"top center");g||"middle center"!==m||(t.title.position="top center"),a.coerceFont(s,"title.font",n.font)}s("sort"),s("direction"),s("rotation"),s("pull")}else t.visible=!1}}},53644:function(e,t,r){"use strict";var n=r(10624).appendArrayMultiPointValues;e.exports=function(e,t){var r={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,bbox:e.bbox,v:e.v};return 1===e.pts.length&&(r.pointNumber=r.i=e.pts[0]),n(r,t,e.pts),"funnelarea"===t.type&&(delete r.v,delete r.i),r}},21552:function(e,t,r){"use strict";var n=r(43616),a=r(76308);e.exports=function(e,t,r,i){var o=r.marker.pattern;o&&o.shape?n.pointStyle(e,r,i,t):a.fill(e,t.color)}},69656:function(e,t,r){"use strict";var n=r(3400);function a(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}t.formatPiePercent=function(e,t){var r=a((100*e).toPrecision(3));return n.numSeparate(r,t)+"%"},t.formatPieValue=function(e,t){var r=a(e.toPrecision(10));return n.numSeparate(r,t)},t.getFirstFilled=function(e,t){if(n.isArrayOrTypedArray(e))for(var r=0;r<t.length;r++){var a=e[t[r]];if(a||0===a||""===a)return a}},t.castOption=function(e,r){return n.isArrayOrTypedArray(e)?t.getFirstFilled(e,r):e||void 0},t.getRotationAngle=function(e){return("auto"===e?0:e)*Math.PI/180}},75792:function(e,t,r){"use strict";e.exports={attributes:r(74996),supplyDefaults:r(74174).supplyDefaults,supplyLayoutDefaults:r(90248),layoutAttributes:r(85204),calc:r(45768).calc,crossTraceCalc:r(45768).crossTraceCalc,plot:r(37820).plot,style:r(22152),styleOne:r(10528),moduleType:"trace",name:"pie",basePlotModule:r(80036),categories:["pie-like","pie","showLegend"],meta:{}}},85204:function(e){"use strict";e.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},90248:function(e,t,r){"use strict";var n=r(3400),a=r(85204);e.exports=function(e,t){function r(r,i){return n.coerce(e,t,a,r,i)}r("hiddenlabels"),r("piecolorway",t.colorway),r("extendpiecolors")}},37820:function(e,t,r){"use strict";var n=r(33428),a=r(7316),i=r(93024),o=r(76308),l=r(43616),s=r(3400),c=s.strScale,u=s.strTranslate,f=r(72736),d=r(82744),h=d.recordMinTextSize,p=d.clearMinTextSize,y=r(78048).TEXTPAD,v=r(69656),g=r(53644),m=r(3400).isValidTextValue;function x(e,t,r){var a=r[0],o=a.cx,l=a.cy,c=a.trace,u="funnelarea"===c.type;"_hasHoverLabel"in c||(c._hasHoverLabel=!1),"_hasHoverEvent"in c||(c._hasHoverEvent=!1),e.on("mouseover",function(e){var r=t._fullLayout,f=t._fullData[c.index];if(!t._dragging&&!1!==r.hovermode){var d=f.hoverinfo;if(Array.isArray(d)&&(d=i.castHoverinfo({hoverinfo:[v.castOption(d,e.pts)],_module:c._module},r,0)),"all"===d&&(d="label+text+value+percent+name"),f.hovertemplate||"none"!==d&&"skip"!==d&&d){var h=e.rInscribed||0,p=o+e.pxmid[0]*(1-h),y=l+e.pxmid[1]*(1-h),m=r.separators,x=[];if(d&&-1!==d.indexOf("label")&&x.push(e.label),e.text=v.castOption(f.hovertext||f.text,e.pts),d&&-1!==d.indexOf("text")){var b=e.text;s.isValidTextValue(b)&&x.push(b)}e.value=e.v,e.valueLabel=v.formatPieValue(e.v,m),d&&-1!==d.indexOf("value")&&x.push(e.valueLabel),e.percent=e.v/a.vTotal,e.percentLabel=v.formatPiePercent(e.percent,m),d&&-1!==d.indexOf("percent")&&x.push(e.percentLabel);var _=f.hoverlabel,w=_.font,k=[];i.loneHover({trace:c,x0:p-h*a.r,x1:p+h*a.r,y:y,_x0:u?o+e.TL[0]:p-h*a.r,_x1:u?o+e.TR[0]:p+h*a.r,_y0:u?l+e.TL[1]:y-h*a.r,_y1:u?l+e.BL[1]:y+h*a.r,text:x.join("<br>"),name:f.hovertemplate||-1!==d.indexOf("name")?f.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:v.castOption(_.bgcolor,e.pts)||e.color,borderColor:v.castOption(_.bordercolor,e.pts),fontFamily:v.castOption(w.family,e.pts),fontSize:v.castOption(w.size,e.pts),fontColor:v.castOption(w.color,e.pts),nameLength:v.castOption(_.namelength,e.pts),textAlign:v.castOption(_.align,e.pts),hovertemplate:v.castOption(f.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[g(e,f)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,inOut_bbox:k}),e.bbox=k[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,t.emit("plotly_hover",{points:[g(e,f)],event:n.event})}}),e.on("mouseout",function(e){var r=t._fullLayout,a=t._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&&(e.originalEvent=n.event,t.emit("plotly_unhover",{points:[g(o,a)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&&(i.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)}),e.on("click",function(e){var r=t._fullLayout,a=t._fullData[c.index];t._dragging||!1===r.hovermode||(t._hoverdata=[g(e,a)],i.click(t,n.event))})}function b(e,t,r){var n=v.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=v.castOption(e._input.textfont.color,t.pts));var a=v.castOption(e.insidetextfont.family,t.pts)||v.castOption(e.textfont.family,t.pts)||r.family,i=v.castOption(e.insidetextfont.size,t.pts)||v.castOption(e.textfont.size,t.pts)||r.size;return{color:n||o.contrast(t.color),family:a,size:i}}function _(e,t){for(var r,n,a=0;a<e.length;a++)if((n=(r=e[a][0]).trace).title.text){var i=n.title.text;n._meta&&(i=s.templateString(i,n._meta));var o=l.tester.append("text").attr("data-notex",1).text(i).call(l.font,n.title.font).call(f.convertToTspans,t),c=l.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(e,t,r){var n=r.r||t.rpx1,a=t.rInscribed;if(t.startangle===t.stopangle)return{rCenter:1-a,scale:0,rotate:0,textPosAngle:0};var i,o=t.ring,l=1===o&&Math.abs(t.startangle-t.stopangle)===2*Math.PI,s=t.halfangle,c=t.midangle,u=r.trace.insidetextorientation,f="horizontal"===u,d="tangential"===u,h="radial"===u,p="auto"===u,y=[];if(!p){var v,g=function(r,a){if(function(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r<t&&t<n}(t,r)){var l=Math.abs(r-t.startangle),s=Math.abs(r-t.stopangle),c=l<s?l:s;(i="tan"===a?T(e,n,o,c,0):k(e,n,o,c,Math.PI/2)).textPosAngle=r,y.push(i)}};if(f||d){for(v=4;v>=-4;v-=2)g(Math.PI*v,"tan");for(v=4;v>=-4;v-=2)g(Math.PI*(v+1),"tan")}if(f||h){for(v=4;v>=-4;v-=2)g(Math.PI*(v+1.5),"rad");for(v=4;v>=-4;v-=2)g(Math.PI*(v+.5),"rad")}}if(l||p||f){var m=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:a*n*2/m,rCenter:1-a,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;y.push(i)}(p||h)&&((i=k(e,n,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,y.push(i)),(p||d)&&((i=T(e,n,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,y.push(i));for(var x=0,b=0,_=0;_<y.length;_++){var w=y[_].scale;if(b<w&&(b=w,x=_),!p&&b>=1)break}return y[x]}function k(e,t,r,n,a){t=Math.max(0,t-2*y);var i=e.width/e.height,o=S(i,n,t,r);return{scale:2*o/e.height,rCenter:M(i,o/t),rotate:A(a)}}function T(e,t,r,n,a){t=Math.max(0,t-2*y);var i=e.height/e.width,o=S(i,n,t,r);return{scale:2*o/e.width,rCenter:M(i,o/t),rotate:A(a+Math.PI/2)}}function M(e,t){return Math.cos(t)-e*t}function A(e){return(180/Math.PI*e+720)%180-90}function S(e,t,r,n){var a=e+1/(2*Math.tan(t));return r*Math.min(1/(Math.sqrt(a*a+.5)+a),n/(Math.sqrt(e*e+n/2)+e))}function L(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function O(e,t){var r=t.pxmid[0],n=t.pxmid[1],a=e.width/2,i=e.height/2;return r<0&&(a*=-1),n<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:a+Math.abs(i)*(a>0?1:-1)/2,y:i/(1+r*r/(n*n)),outside:!0}}function C(e,t){var r,n,a,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,a=P(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+a)*e.r,l.ty-=e.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+a)*e.r);var s,c,u=(s=e.r,c=e.trace.aspectratio,s/(void 0===c?1:c)),f=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(f+=u,o.x-=(1+a)*u,l.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?f*=2:-1!==i.title.position.indexOf("right")&&(f+=u,o.x+=(1+a)*u,l.tx-=e.titleBox.width/2),r=f/e.titleBox.width,n=D(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:l.tx,ty:l.ty}}function D(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function P(e){var t,r=e.pull;if(!r)return 0;if(s.isArrayOrTypedArray(r))for(r=0,t=0;t<e.pull.length;t++)e.pull[t]>r&&(r=e.pull[t]);return r}function E(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n][0],i=a.trace,o=i.domain,l=t.w*(o.x[1]-o.x[0]),s=t.h*(o.y[1]-o.y[0]);i.title.text&&"middle center"!==i.title.position&&(s-=D(a,t));var c=l/2,u=s/2;"funnelarea"!==i.type||i.scalegroup||(u/=i.aspectratio),a.r=Math.min(c,u)/(1+P(i)),a.cx=t.l+t.w*(i.domain.x[1]+i.domain.x[0])/2,a.cy=t.t+t.h*(1-i.domain.y[0])-s/2,i.title.text&&-1!==i.title.position.indexOf("bottom")&&(a.cy-=D(a,t)),i.scalegroup&&-1===r.indexOf(i.scalegroup)&&r.push(i.scalegroup)}!function(e,t){for(var r,n,a,i=0;i<t.length;i++){var o=1/0,l=t[i];for(n=0;n<e.length;n++)if(r=e[n][0],(a=r.trace).scalegroup===l){var s;if("pie"===a.type)s=r.r*r.r;else if("funnelarea"===a.type){var c,u;a.aspectratio>1?(c=r.r,u=c/a.aspectratio):(u=r.r,c=u*a.aspectratio),c*=(1+a.baseratio)/2,s=c*u}o=Math.min(o,s/r.vTotal)}for(n=0;n<e.length;n++)if(r=e[n][0],(a=r.trace).scalegroup===l){var f=o*r.vTotal;"funnelarea"===a.type&&(f/=(1+a.baseratio)/2,f/=a.aspectratio),r.r=Math.sqrt(f)}}}(e,r)}function R(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function I(e,t,r){var n=e._fullLayout,a=r.trace,i=a.texttemplate,o=a.textinfo;if(!i&&o&&"none"!==o){var l,c=o.split("+"),u=function(e){return-1!==c.indexOf(e)},f=u("label"),d=u("text"),h=u("value"),p=u("percent"),y=n.separators;if(l=f?[t.label]:[],d){var g=v.getFirstFilled(a.text,t.pts);m(g)&&l.push(g)}h&&l.push(v.formatPieValue(t.v,y)),p&&l.push(v.formatPiePercent(t.v/r.vTotal,y)),t.text=l.join("<br>")}if(i){var x=s.castOption(a,t.i,"texttemplate");if(x){var b=function(e){return{label:e.label,value:e.v,valueLabel:v.formatPieValue(e.v,n.separators),percent:e.v/r.vTotal,percentLabel:v.formatPiePercent(e.v/r.vTotal,n.separators),color:e.color,text:e.text,customdata:s.castOption(a,e.i,"customdata")}}(t),_=v.getFirstFilled(a.text,t.pts);(m(_)||""===_)&&(b.text=_),t.text=s.texttemplateString(x,b,e._fullLayout._d3locale,b,a._meta||{})}else t.text=""}}function z(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),a=Math.sin(r),i=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=i*n-o*a,e.textY=i*a+o*n,e.noCenter=!0}e.exports={plot:function(e,t){var r=e._context.staticPlot,i=e._fullLayout,d=i._size;p("pie",i),_(t,e),E(t,d);var y=s.makeTraceGroups(i._pielayer,t,"trace").each(function(t){var p=n.select(this),y=t[0],g=y.trace;!function(e){var t,r,n,a=e[0],i=a.r,o=a.trace,l=v.getRotationAngle(o.rotation),s=2*Math.PI/a.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(t=0;t<e.length&&e[t].hidden;t++);if(t===e.length)return;l+=s*e[t].v,s*=-1,c="px1",u="px0"}for(n=R(i,l),t=0;t<e.length;t++)(r=e[t]).hidden||(r[c]=n,r.startangle=l,l+=s*r.v/2,r.pxmid=R(i,l),r.midangle=l,l+=s*r.v/2,n=R(i,l),r.stopangle=l,r[u]=n,r.largeArc=r.v>a.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/a.vTotal,.5),r.ring=1-o.hole,r.rInscribed=L(r,a))}(t),p.attr("stroke-linejoin","round"),p.each(function(){var m=n.select(this).selectAll("g.slice").data(t);m.enter().append("g").classed("slice",!0),m.exit().remove();var _=[[[],[]],[[],[]]],k=!1;m.each(function(a,o){if(a.hidden)n.select(this).selectAll("path,g").remove();else{a.pointNumber=a.i,a.curveNumber=g.index,_[a.pxmid[1]<0?0:1][a.pxmid[0]<0?0:1].push(a);var c=y.cx,u=y.cy,d=n.select(this),p=d.selectAll("path.surface").data([a]);if(p.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),d.call(x,e,t),g.pull){var m=+v.castOption(g.pull,a.pts)||0;m>0&&(c+=m*a.pxmid[0],u+=m*a.pxmid[1])}a.cxFinal=c,a.cyFinal=u;var T=g.hole;if(a.v===y.vTotal){var M="M"+(c+a.px0[0])+","+(u+a.px0[1])+D(a.px0,a.pxmid,!0,1)+D(a.pxmid,a.px0,!0,1)+"Z";T?p.attr("d","M"+(c+T*a.px0[0])+","+(u+T*a.px0[1])+D(a.px0,a.pxmid,!1,T)+D(a.pxmid,a.px0,!1,T)+"Z"+M):p.attr("d",M)}else{var A=D(a.px0,a.px1,!0,1);if(T){var S=1-T;p.attr("d","M"+(c+T*a.px1[0])+","+(u+T*a.px1[1])+D(a.px1,a.px0,!1,T)+"l"+S*a.px0[0]+","+S*a.px0[1]+A+"Z")}else p.attr("d","M"+c+","+u+"l"+a.px0[0]+","+a.px0[1]+A+"Z")}I(e,a,y);var L=v.castOption(g.textposition,a.pts),C=d.selectAll("g.slicetext").data(a.text&&"none"!==L?[0]:[]);C.enter().append("g").classed("slicetext",!0),C.exit().remove(),C.each(function(){var r=s.ensureSingle(n.select(this),"text","",function(e){e.attr("data-notex",1)}),d=s.ensureUniformFontSize(e,"outside"===L?function(e,t,r){var n=v.castOption(e.outsidetextfont.color,t.pts)||v.castOption(e.textfont.color,t.pts)||r.color,a=v.castOption(e.outsidetextfont.family,t.pts)||v.castOption(e.textfont.family,t.pts)||r.family,i=v.castOption(e.outsidetextfont.size,t.pts)||v.castOption(e.textfont.size,t.pts)||r.size;return{color:n,family:a,size:i}}(g,a,i.font):b(g,a,i.font));r.text(a.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l.font,d).call(f.convertToTspans,e);var p,m=l.bBox(r.node());if("outside"===L)p=O(m,a);else if(p=w(m,a,y),"auto"===L&&p.scale<1){var x=s.ensureUniformFontSize(e,g.outsidetextfont);r.call(l.font,x),p=O(m=l.bBox(r.node()),a)}var _=p.textPosAngle,T=void 0===_?a.pxmid:R(y.r,_);if(p.targetX=c+T[0]*p.rCenter+(p.x||0),p.targetY=u+T[1]*p.rCenter+(p.y||0),z(p,m),p.outside){var M=p.targetY;a.yLabelMin=M-m.height/2,a.yLabelMid=M,a.yLabelMax=M+m.height/2,a.labelExtraX=0,a.labelExtraY=0,k=!0}p.fontSize=d.size,h(g.type,p,i),t[o].transform=p,s.setTransormAndDisplay(r,p)})}function D(e,t,r,n){var i=n*(t[0]-e[0]),o=n*(t[1]-e[1]);return"a"+n*y.r+","+n*y.r+" 0 "+a.largeArc+(r?" 1 ":" 0 ")+i+","+o}});var T=n.select(this).selectAll("g.titletext").data(g.title.text?[0]:[]);if(T.enter().append("g").classed("titletext",!0),T.exit().remove(),T.each(function(){var t,r=s.ensureSingle(n.select(this),"text","",function(e){e.attr("data-notex",1)}),a=g.title.text;g._meta&&(a=s.templateString(a,g._meta)),r.text(a).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l.font,g.title.font).call(f.convertToTspans,e),t="middle center"===g.title.position?function(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(y):C(y,d),r.attr("transform",u(t.x,t.y)+c(Math.min(1,t.scale))+u(t.tx,t.ty))}),k&&function(e,t){var r,n,a,i,o,l,c,u,f,d,h,p,y;function g(e,t){return e.pxmid[1]-t.pxmid[1]}function m(e,t){return t.pxmid[1]-e.pxmid[1]}function x(e,r){r||(r={});var a,u,f,h,p,y,g=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),m=n?e.yLabelMin:e.yLabelMax,x=n?e.yLabelMax:e.yLabelMin,b=e.cyFinal+o(e.px0[1],e.px1[1]),_=g-m;if(_*c>0&&(e.labelExtraY=_),s.isArrayOrTypedArray(t.pull))for(u=0;u<d.length;u++)(f=d[u])===e||(v.castOption(t.pull,e.pts)||0)>=(v.castOption(t.pull,f.pts)||0)||((e.pxmid[1]-f.pxmid[1])*c>0?(h=f.cyFinal+o(f.px0[1],f.px1[1]),(_=h-m-e.labelExtraY)*c>0&&(e.labelExtraY+=_)):(x+e.labelExtraY-b)*c>0&&(a=3*l*Math.abs(u-d.indexOf(e)),p=f.cxFinal+i(f.px0[0],f.px1[0]),(y=p+a-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=y)))}for(n=0;n<2;n++)for(a=n?g:m,o=n?Math.max:Math.min,c=n?1:-1,r=0;r<2;r++){for(i=r?Math.max:Math.min,l=r?1:-1,(u=e[n][r]).sort(a),f=e[1-n][r],d=f.concat(u),p=[],h=0;h<u.length;h++)void 0!==u[h].yLabelMid&&p.push(u[h]);for(y=!1,h=0;n&&h<f.length;h++)if(void 0!==f[h].yLabelMid){y=f[h];break}for(h=0;h<p.length;h++){var b=h&&p[h-1];y&&!h&&(b=y),x(p[h],b)}}}(_,g),function(e,t){e.each(function(e){var r=n.select(this);if(e.labelExtraX||e.labelExtraY){var a=r.select("g.slicetext text");e.transform.targetX+=e.labelExtraX,e.transform.targetY+=e.labelExtraY,s.setTransormAndDisplay(a,e.transform);var i=e.cxFinal+e.pxmid[0],l=e.cyFinal+e.pxmid[1],c="M"+i+","+l,u=(e.yLabelMax-e.yLabelMin)*(e.pxmid[0]<0?-1:1)/4;if(e.labelExtraX){var f=e.labelExtraX*e.pxmid[1]/e.pxmid[0],d=e.yLabelMid+e.labelExtraY-(e.cyFinal+e.pxmid[1]);Math.abs(f)>Math.abs(d)?c+="l"+d*e.pxmid[0]/e.pxmid[1]+","+d+"H"+(i+e.labelExtraX+u):c+="l"+e.labelExtraX+","+f+"v"+(d-f)+"h"+u}else c+="V"+(e.yLabelMid+e.labelExtraY)+"h"+u;s.ensureSingle(r,"path","textline").call(o.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:c,fill:"none"})}else r.select("path.textline").remove()})}(m,g),k&&g.automargin){var M=l.bBox(p.node()),A=g.domain,S=d.w*(A.x[1]-A.x[0]),L=d.h*(A.y[1]-A.y[0]),D=(.5*S-y.r)/d.w,P=(.5*L-y.r)/d.h;a.autoMargin(e,"pie."+g.uid+".automargin",{xl:A.x[0]-D,xr:A.x[1]+D,yb:A.y[0]-P,yt:A.y[1]+P,l:Math.max(y.cx-y.r-M.left,0),r:Math.max(M.right-(y.cx+y.r),0),b:Math.max(M.bottom-(y.cy+y.r),0),t:Math.max(y.cy-y.r-M.top,0),pad:5})}})});setTimeout(function(){y.selectAll("tspan").each(function(){var e=n.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))})},0)},formatSliceLabel:I,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:C,prerenderTitles:_,layoutAreas:E,attachFxHandlers:x,computeTransform:z}},22152:function(e,t,r){"use strict";var n=r(33428),a=r(10528),i=r(82744).resizeText;e.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");i(e,t,"pie"),t.each(function(t){var r=t[0].trace,i=n.select(this);i.style({opacity:r.opacity}),i.selectAll("path.surface").each(function(t){n.select(this).call(a,t,r,e)})})}},10528:function(e,t,r){"use strict";var n=r(76308),a=r(69656).castOption,i=r(21552);e.exports=function(e,t,r,o){var l=r.marker.line,s=a(l.color,t.pts)||n.defaultLine,c=a(l.width,t.pts)||0;e.call(i,t,r,o).style("stroke-width",c).call(n.stroke,s)}},20148:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;n.mergeArray(t.text,e,"tx"),n.mergeArray(t.texttemplate,e,"txt"),n.mergeArray(t.hovertext,e,"htx"),n.mergeArray(t.customdata,e,"data"),n.mergeArray(t.textposition,e,"tp"),t.textfont&&(n.mergeArrayCastPositive(t.textfont.size,e,"ts"),n.mergeArray(t.textfont.color,e,"tc"),n.mergeArray(t.textfont.family,e,"tf"));var a=t.marker;if(a){n.mergeArrayCastPositive(a.size,e,"ms"),n.mergeArrayCastPositive(a.opacity,e,"mo"),n.mergeArray(a.symbol,e,"mx"),n.mergeArray(a.angle,e,"ma"),n.mergeArray(a.standoff,e,"mf"),n.mergeArray(a.color,e,"mc");var i=a.line;a.line&&(n.mergeArray(i.color,e,"mlc"),n.mergeArrayCastPositive(i.width,e,"mlw"));var o=a.gradient;o&&"none"!==o.type&&(n.mergeArray(o.type,e,"mgt"),n.mergeArray(o.color,e,"mgc"))}}},52904:function(e,t,r){"use strict";var n=r(29736).axisHoverFormat,a=r(21776).Gw,i=r(21776).Ks,o=r(49084),l=r(25376),s=r(98192).u,c=r(98192).c,u=r(43616),f=r(88200),d=r(92880).extendFlat,h=r(98304);e.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:{valType:"any",dflt:0,editType:"calc"},yperiod:{valType:"any",dflt:0,editType:"calc"},xperiod0:{valType:"any",editType:"calc"},yperiod0:{valType:"any",editType:"calc"},xperiodalignment:{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"},yperiodalignment:{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"},xhoverformat:n("x"),yhoverformat:n("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:a({},{}),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:i({},{keys:f.eventDataKeys}),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:d({},s,{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:h(!0),fillgradient:d({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:c,marker:d({symbol:{valType:"enumerated",values:u.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:d({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},o("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"},o("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:l({editType:"calc",colorEditType:"style",arrayOk:!0})}},16356:function(e,t,r){"use strict";var n=r(38248),a=r(3400),i=r(54460),o=r(1220),l=r(39032).BADNUM,s=r(43028),c=r(90136),u=r(20148),f=r(4500);function d(e,t,r,n,a,o,l){var c=t._length,u=e._fullLayout,f=r._id,d=n._id,h=u._firstScatter[y(t)]===t.uid,p=(v(t,u,r,n)||{}).orientation,g=t.fill;r._minDtick=0,n._minDtick=0;var m={padded:!0},x={padded:!0};l&&(m.ppad=x.ppad=l);var b=c<2||a[0]!==a[c-1]||o[0]!==o[c-1];b&&("tozerox"===g||"tonextx"===g&&(h||"h"===p))?m.tozero=!0:(t.error_y||{}).visible||"tonexty"!==g&&"tozeroy"!==g&&(s.hasMarkers(t)||s.hasText(t))||(m.padded=!1,m.ppad=0),b&&("tozeroy"===g||"tonexty"===g&&(h||"v"===p))?x.tozero=!0:"tonextx"!==g&&"tozerox"!==g||(x.padded=!1),f&&(t._extremes[f]=i.findExtremes(r,a,m)),d&&(t._extremes[d]=i.findExtremes(n,o,x))}function h(e,t){if(s.hasMarkers(e)){var r,n=e.marker,o=1.6*(e.marker.sizeref||1);if(r="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/o),3)}:function(e){return Math.max((e||0)/o,3)},a.isArrayOrTypedArray(n.size)){var l={type:"linear"};i.setConvert(l);for(var c=l.makeCalcdata(e.marker,"size"),u=new Array(t),f=0;f<t;f++)u[f]=r(c[f]);return u}return r(n.size)}}function p(e,t){var r=y(t),n=e._firstScatter;n[r]||(n[r]=t.uid)}function y(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function v(e,t,r,n){var a=e.stackgroup;if(a){var i=t._scatterStackOpts[r._id+n._id][a],o="v"===i.orientation?n:r;return"linear"===o.type||"log"===o.type?i:void 0}}e.exports={calc:function(e,t){var r,s,y,g,m,x,b=e._fullLayout,_=t._xA=i.getFromId(e,t.xaxis||"x","x"),w=t._yA=i.getFromId(e,t.yaxis||"y","y"),k=_.makeCalcdata(t,"x"),T=w.makeCalcdata(t,"y"),M=o(t,_,"x",k),A=o(t,w,"y",T),S=M.vals,L=A.vals,O=t._length,C=new Array(O),D=t.ids,P=v(t,b,_,w),E=!1;p(b,t);var R,I="x",z="y";P?(a.pushUnique(P.traceIndices,t._expandedIndex),(r="v"===P.orientation)?(z="s",R="x"):(I="s",R="y"),m="interpolate"===P.stackgaps):d(e,t,_,w,S,L,h(t,O));var N=!!t.xperiodalignment,F=!!t.yperiodalignment;for(s=0;s<O;s++){var j=C[s]={},B=n(S[s]),H=n(L[s]);B&&H?(j[I]=S[s],j[z]=L[s],N&&(j.orig_x=k[s],j.xEnd=M.ends[s],j.xStart=M.starts[s]),F&&(j.orig_y=T[s],j.yEnd=A.ends[s],j.yStart=A.starts[s])):P&&(r?B:H)?(j[R]=r?S[s]:L[s],j.gap=!0,m?(j.s=l,E=!0):j.s=0):j[I]=j[z]=l,D&&(j.id=String(D[s]))}if(u(C,t),c(e,t),f(C,t),P){for(s=0;s<C.length;)C[s][R]===l?C.splice(s,1):s++;if(a.sort(C,function(e,t){return e[R]-t[R]||e.i-t.i}),E){for(s=0;s<C.length-1&&C[s].gap;)s++;for((x=C[s].s)||(x=C[s].s=0),y=0;y<s;y++)C[y].s=x;for(g=C.length-1;g>s&&C[g].gap;)g--;for(x=C[g].s,y=C.length-1;y>g;y--)C[y].s=x;for(;s<g;)if(C[++s].gap){for(y=s+1;C[y].gap;)y++;for(var U=C[s-1][R],q=C[s-1].s,Y=(C[y].s-q)/(C[y][R]-U);s<y;)C[s].s=q+(C[s][R]-U)*Y,s++}}}return C},calcMarkerSize:h,calcAxisExpansion:d,setFirstScatter:p,getStackOpts:v}},4500:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e,t){n.isArrayOrTypedArray(t.selectedpoints)&&n.tagSelected(e,t)}},90136:function(e,t,r){"use strict";var n=r(94288).hasColorscale,a=r(47128),i=r(43028);e.exports=function(e,t){i.hasLines(t)&&n(t,"line")&&a(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),i.hasMarkers(t)&&(n(t,"marker")&&a(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),n(t,"marker.line")&&a(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},88200:function(e){"use strict";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},96664:function(e,t,r){"use strict";var n=r(16356),a=r(96376).setGroupPositions;function i(e,t,r,n,a,i,o){a[n]=!0;var l={i:null,gap:!0,s:0};if(l[o]=r,e.splice(t,0,l),t&&r===e[t-1][o]){var s=e[t-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else i&&(l.s=function(e,t,r,n){var a=e[t-1],i=e[t+1];return i?a?a.s+(i.s-a.s)*(r-a[n])/(i[n]-a[n]):i.s:a.s}(e,t,r,o));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}e.exports=function(e,t){"group"===e._fullLayout.scattermode&&function(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,o=e._fullData,l=e.calcdata,s=[],c=[],u=0;u<o.length;u++){var f=o[u];!0===f.visible&&"scatter"===f.type&&f.xaxis===r._id&&f.yaxis===n._id&&("h"===f.orientation?s.push(l[u]):"v"===f.orientation&&c.push(l[u]))}var d={mode:i.scattermode,gap:i.scattergap};a(e,r,n,c,d),a(e,n,r,s,d)}(e,t);var r=t.xaxis,o=t.yaxis,l=r._id+o._id,s=e._fullLayout._scatterStackOpts[l];if(s){var c,u,f,d,h,p,y,v,g,m,x,b,_,w,k,T=e.calcdata;for(var M in s){var A=(m=s[M]).traceIndices;if(A.length){for(x="interpolate"===m.stackgaps,b=m.groupnorm,"v"===m.orientation?(_="x",w="y"):(_="y",w="x"),k=new Array(A.length),c=0;c<k.length;c++)k[c]=!1;p=T[A[0]];var S=new Array(p.length);for(c=0;c<p.length;c++)S[c]=p[c][_];for(c=1;c<A.length;c++){for(h=T[A[c]],u=f=0;u<h.length;u++){for(y=h[u][_];y>S[f]&&f<S.length;f++)i(h,u,S[f],c,k,x,_),u++;if(y!==S[f]){for(d=0;d<c;d++)i(T[A[d]],f,y,d,k,x,_);S.splice(f,0,y)}f++}for(;f<S.length;f++)i(h,u,S[f],c,k,x,_),u++}var L=S.length;for(u=0;u<p.length;u++){for(v=p[u][w]=p[u].s,c=1;c<A.length;c++)(h=T[A[c]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=L,v+=h[u].s,h[u][w]=v;if(b)for(g=("fraction"===b?v:v/100)||1,c=0;c<A.length;c++){var O=T[A[c]][u];O[w]/=g,O.sNorm=O.s/g}}for(c=0;c<A.length;c++){var C=(h=T[A[c]])[0].trace,D=n.calcMarkerSize(C,C._rawLength),P=Array.isArray(D);if(D&&k[c]||P){var E=D;for(D=new Array(L),u=0;u<L;u++)D[u]=h[u].gap?0:P?E[h[u].i]:E}var R=new Array(L),I=new Array(L);for(u=0;u<L;u++)R[u]=h[u].x,I[u]=h[u].y;n.calcAxisExpansion(e,C,r,o,R,I,D),h[0].t.orientation=m.orientation}}}}}},35036:function(e,t,r){"use strict";var n=r(3400),a=r(20011),i=r(52904);e.exports=function(e,t){var r,o,l;function s(e){return n.coerce(o._input,o,i,e)}if("group"===t.scattermode)for(l=0;l<e.length;l++)"scatter"===(o=e[l]).type&&(r=o._input,a(r,o,t,s));for(l=0;l<e.length;l++){var c=e[l];if("scatter"===c.type){var u=c.fill;if("none"!==u&&"toself"!==u&&(c.opacity=void 0,"tonexty"===u||"tonextx"===u))for(var f=l-1;f>=0;f--){var d=e[f];if("scatter"===d.type&&d.xaxis===c.xaxis&&d.yaxis===c.yaxis){d.opacity=void 0;break}}}}}},18800:function(e,t,r){"use strict";var n=r(3400),a=r(24040),i=r(52904),o=r(88200),l=r(43028),s=r(43980),c=r(31147),u=r(43912),f=r(74428),d=r(66828),h=r(11731),p=r(124),y=r(70840),v=r(3400).coercePattern;e.exports=function(e,t,r,g){function m(r,a){return n.coerce(e,t,i,r,a)}var x=s(e,t,g,m);if(x||(t.visible=!1),t.visible){c(e,t,g,m),m("xhoverformat"),m("yhoverformat");var b=u(e,t,g,m);"group"===g.scattermode&&void 0===t.orientation&&m("orientation","v");var _=!b&&x<o.PTS_LINESONLY?"lines+markers":"lines";m("text"),m("hovertext"),m("mode",_),l.hasMarkers(t)&&f(e,t,r,g,m,{gradient:!0}),l.hasLines(t)&&(d(e,t,r,g,m,{backoff:!0}),h(e,t,m),m("connectgaps"),m("line.simplify")),l.hasText(t)&&(m("texttemplate"),p(e,t,g,m));var w=[];(l.hasMarkers(t)||l.hasText(t))&&(m("cliponaxis"),m("marker.maxdisplayed"),w.push("points")),m("fill",b?b.fillDflt:"none"),"none"!==t.fill&&(y(e,t,r,m,{moduleHasFillgradient:!0}),l.hasLines(t)||h(e,t,m),v(m,"fillpattern",t.fillcolor,!1));var k=(t.line||{}).color,T=(t.marker||{}).color;"tonext"!==t.fill&&"toself"!==t.fill||w.push("fills"),m("hoveron",w.join("+")||"points"),"fills"!==t.hoveron&&m("hovertemplate");var M=a.getComponentMethod("errorbars","supplyDefaults");M(e,t,k||T||r,{axis:"y"}),M(e,t,k||T||r,{axis:"x",inherit:"y"}),n.coerceSelectionMarkerOpacity(t,m)}}},98304:function(e){"use strict";e.exports=function(e){return{valType:"color",editType:"style",anim:!0}}},70840:function(e,t,r){"use strict";var n=r(76308),a=r(3400).isArrayOrTypedArray;e.exports=function(e,t,r,i,o){o||(o={});var l,s=!1;if(t.marker){var c=t.marker.color,u=(t.marker.line||{}).color;c&&!a(c)?s=c:u&&!a(u)&&(s=u)}if(o.moduleHasFillgradient&&"none"!==i("fillgradient.type")){i("fillgradient.start"),i("fillgradient.stop");var f=i("fillgradient.colorscale");f&&(l=function(e){for(var t=n.interpolate(e[0][1],e[1][1],.5),r=2;r<e.length;r++){var a=n.interpolate(e[r-1][1],e[r][1],.5);t=n.interpolate(t,a,e[r-1][0]/e[r][0])}return t}(f))}i("fillcolor",n.addOpacity((t.line||{}).color||s||l||r,.5))}},76688:function(e,t,r){"use strict";var n=r(54460);e.exports=function(e,t,r){var a={},i={_fullLayout:r},o=n.getFromTrace(i,t,"x"),l=n.getFromTrace(i,t,"y"),s=e.orig_x;void 0===s&&(s=e.x);var c=e.orig_y;return void 0===c&&(c=e.y),a.xLabel=n.tickText(o,o.c2l(s),!0).text,a.yLabel=n.tickText(l,l.c2l(c),!0).text,a}},44928:function(e,t,r){"use strict";var n=r(76308),a=r(43028);e.exports=function(e,t){var r,i;if("lines"===e.mode)return(r=e.line.color)&&n.opacity(r)?r:e.fillcolor;if("none"===e.mode)return e.fill?e.fillcolor:"";var o=t.mcc||(e.marker||{}).color,l=t.mlcc||((e.marker||{}).line||{}).color;return(i=o&&n.opacity(o)?o:l&&n.opacity(l)&&(t.mlw||((e.marker||{}).line||{}).width)?l:"")?n.opacity(i)<.3?n.addOpacity(i,.3):i:(r=(e.line||{}).color)&&n.opacity(r)&&a.hasLines(e)&&e.line.width?r:e.fillcolor}},20011:function(e,t,r){"use strict";var n=r(71888).getAxisGroup;e.exports=function(e,t,r,a){var i=t.orientation,o=t[{v:"x",h:"y"}[i]+"axis"],l=n(r,o)+i,s=r._alignmentOpts||{},c=a("alignmentgroup"),u=s[l];u||(u=s[l]={});var f=u[c];f?f.traces.push(t):f=u[c]={traces:[t],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var d=a("offsetgroup"),h=f.offsetGroups,p=h[d];d&&(p||(p=h[d]={offsetIndex:Object.keys(h).length}),t._offsetIndex=p.offsetIndex)}},98723:function(e,t,r){"use strict";var n=r(3400),a=r(93024),i=r(24040),o=r(44928),l=r(76308),s=n.fillText;e.exports=function(e,t,r,c){var u=e.cd,f=u[0].trace,d=e.xa,h=e.ya,p=d.c2p(t),y=h.c2p(r),v=[p,y],g=f.hoveron||"",m=-1!==f.mode.indexOf("markers")?3:.5,x=!!f.xperiodalignment,b=!!f.yperiodalignment;if(-1!==g.indexOf("points")){var _=function(e){var t=Math.max(m,e.mrc||0),r=d.c2p(e.x)-p,n=h.c2p(e.y)-y;return Math.max(Math.sqrt(r*r+n*n)-t,1-m/t)},w=a.getDistanceFunction(c,function(e){if(x){var t=d.c2p(e.xStart),r=d.c2p(e.xEnd);return p>=Math.min(t,r)&&p<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),a=1-1/n,i=Math.abs(d.c2p(e.x)-p);return i<n?a*i/n:i-n+a},function(e){if(b){var t=h.c2p(e.yStart),r=h.c2p(e.yEnd);return y>=Math.min(t,r)&&y<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),a=1-1/n,i=Math.abs(h.c2p(e.y)-y);return i<n?a*i/n:i-n+a},_);if(a.getClosest(u,w,e),!1!==e.index){var k=u[e.index],T=d.c2p(k.x,!0),M=h.c2p(k.y,!0),A=k.mrc||1;e.index=k.i;var S=u[0].t.orientation,L=S&&(k.sNorm||k.s),O="h"===S?L:void 0!==k.orig_x?k.orig_x:k.x,C="v"===S?L:void 0!==k.orig_y?k.orig_y:k.y;return n.extendFlat(e,{color:o(f,k),x0:T-A,x1:T+A,xLabelVal:O,y0:M-A,y1:M+A,yLabelVal:C,spikeDistance:_(k),hovertemplate:f.hovertemplate}),s(k,f,e),i.getComponentMethod("errorbars","hoverInfo")(k,f,e),[e]}}function D(e){if(!e)return!1;var t=e.node();try{var r=new DOMPoint(v[0],v[1]);return t.isPointInFill(r)}catch(e){var n=t.ownerSVGElement.createSVGPoint();return n.x=v[0],n.y=v[1],t.isPointInFill(n)}}if(-1!==g.indexOf("fills")&&f._fillElement&&(D(f._fillElement)&&!D(f._fillExclusionElement))){var P=function(e){var t,r,n,a,i,o,l,s,c,u=[],f=1/0,p=-1/0,y=1/0,g=-1/0;for(t=0;t<e.length;t++){var m=e[t];m.contains(v)&&(u.push(m),y=Math.min(y,m.ymin),g=Math.max(g,m.ymax))}if(0===u.length)return null;for(r=((y=Math.max(y,0))+(g=Math.min(g,h._length)))/2,t=0;t<u.length;t++)for(a=u[t].pts,n=1;n<a.length;n++)(s=a[n-1][1])>r!=(c=a[n][1])>=r&&(o=a[n-1][0],l=a[n][0],c-s&&(i=o+(l-o)*(r-s)/(c-s),f=Math.min(f,i),p=Math.max(p,i)));return{x0:f=Math.max(f,0),x1:p=Math.min(p,d._length),y0:r,y1:r}}(f._polygons);null===P&&(P={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var E=l.defaultLine;return l.opacity(f.fillcolor)?E=f.fillcolor:l.opacity((f.line||{}).color)&&(E=f.line.color),n.extendFlat(e,{distance:e.maxHoverDistance,x0:P.x0,x1:P.x1,y0:P.y0,y1:P.y1,color:E,hovertemplate:!1}),delete e.index,f.text&&!n.isArrayOrTypedArray(f.text)?e.text=String(f.text):e.text=f.name,[e]}}},65875:function(e,t,r){"use strict";var n=r(43028);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:r(52904),layoutAttributes:r(55308),supplyDefaults:r(18800),crossTraceDefaults:r(35036),supplyLayoutDefaults:r(59748),calc:r(16356).calc,crossTraceCalc:r(96664),arraysToCalcdata:r(20148),plot:r(96504),colorbar:r(5528),formatLabels:r(76688),style:r(49224).style,styleOnSelect:r(49224).styleOnSelect,hoverPoints:r(98723),selectPoints:r(91560),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:r(57952),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},55308:function(e){"use strict";e.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},59748:function(e,t,r){"use strict";var n=r(3400),a=r(55308);e.exports=function(e,t){var r,i,o="group"===t.barmode;"group"===t.scattermode&&(r="scattergap",i=o?t.bargap:.2,n.coerce(e,t,a,r,i))}},66828:function(e,t,r){"use strict";var n=r(3400).isArrayOrTypedArray,a=r(94288).hasColorscale,i=r(27260);e.exports=function(e,t,r,o,l,s){s||(s={});var c=(e.marker||{}).color;(c&&c._inputArray&&(c=c._inputArray),l("line.color",r),a(e,"line"))?i(e,t,o,l,{prefix:"line.",cLetter:"c"}):l("line.color",!n(c)&&c||r);l("line.width"),s.noDash||l("line.dash"),s.backoff&&l("line.backoff")}},52340:function(e,t,r){"use strict";var n=r(43616),a=r(39032),i=a.BADNUM,o=a.LOG_CLIP,l=o+.5,s=o-.5,c=r(3400),u=c.segmentsIntersect,f=c.constrain,d=r(88200);e.exports=function(e,t){var r,a,o,h,p,y,v,g,m,x,b,_,w,k,T,M,A,S,L=t.trace||{},O=t.xaxis,C=t.yaxis,D="log"===O.type,P="log"===C.type,E=O._length,R=C._length,I=t.backoff,z=L.marker,N=t.connectGaps,F=t.baseTolerance,j=t.shape,B="linear"===j,H=L.fill&&"none"!==L.fill,U=[],q=d.minTolerance,Y=e.length,V=new Array(Y),G=0;function Z(r){var n=e[r];if(!n)return!1;var a=t.linearized?O.l2p(n.x):O.c2p(n.x),o=t.linearized?C.l2p(n.y):C.c2p(n.y);if(a===i){if(D&&(a=O.c2p(n.x,!0)),a===i)return!1;P&&o===i&&(a*=Math.abs(O._m*R*(O._m>0?l:s)/(C._m*E*(C._m>0?l:s)))),a*=1e3}if(o===i){if(P&&(o=C.c2p(n.y,!0)),o===i)return!1;o*=1e3}return[a,o]}function W(e,t,r,n){var a=r-e,i=n-t,o=.5-e,l=.5-t,s=a*a+i*i,c=a*o+i*l;if(c>0&&c<s){var u=o*i-l*a;if(u*u<s)return!0}}function J(e,t){var r=e[0]/E,n=e[1]/R,a=Math.max(0,-r,r-1,-n,n-1);return a&&void 0!==A&&W(r,n,A,S)&&(a=0),a&&t&&W(r,n,t[0]/E,t[1]/R)&&(a=0),(1+d.toleranceGrowth*a)*F}function X(e,t){var r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}var K,$,Q,ee,te,re,ne,ae=d.maxScreensAway,ie=-E*ae,oe=E*(1+ae),le=-R*ae,se=R*(1+ae),ce=[[ie,le,oe,le],[oe,le,oe,se],[oe,se,ie,se],[ie,se,ie,le]];function ue(e){if(e[0]<ie||e[0]>oe||e[1]<le||e[1]>se)return[f(e[0],ie,oe),f(e[1],le,se)]}function fe(e,t){return e[0]===t[0]&&(e[0]===ie||e[0]===oe)||(e[1]===t[1]&&(e[1]===le||e[1]===se)||void 0)}function de(e,t,r){return function(n,a){var i=ue(n),o=ue(a),l=[];if(i&&o&&fe(i,o))return l;i&&l.push(i),o&&l.push(o);var s=2*c.constrain((n[e]+a[e])/2,t,r)-((i||n)[e]+(o||a)[e]);s&&((i&&o?s>0==i[e]>o[e]?i:o:i||o)[e]+=s);return l}}function he(e){var t=e[0],r=e[1],n=t===V[G-1][0],a=r===V[G-1][1];if(!n||!a)if(G>1){var i=t===V[G-2][0],o=r===V[G-2][1];n&&(t===ie||t===oe)&&i?o?G--:V[G-1]=e:a&&(r===le||r===se)&&o?i?G--:V[G-1]=e:V[G++]=e}else V[G++]=e}function pe(e){V[G-1][0]!==e[0]&&V[G-1][1]!==e[1]&&he([Q,ee]),he(e),te=null,Q=ee=0}"linear"===j||"spline"===j?ne=function(e,t){for(var r=[],n=0,a=0;a<4;a++){var i=ce[a],o=u(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&X(o,e)<X(r[0],e)?r.unshift(o):r.push(o),n++)}return r}:"hv"===j||"vh"===j?ne=function(e,t){var r=[],n=ue(e),a=ue(t);return n&&a&&fe(n,a)?r:(n&&r.push(n),a&&r.push(a),r)}:"hvh"===j?ne=de(0,ie,oe):"vhv"===j&&(ne=de(1,le,se));var ye=c.isArrayOrTypedArray(z);function ve(t){if(t&&I&&(t.i=r,t.d=e,t.trace=L,t.marker=ye?z[t.i]:z,t.backoff=I),A=t[0]/E,S=t[1]/R,K=t[0]<ie?ie:t[0]>oe?oe:0,$=t[1]<le?le:t[1]>se?se:0,K||$){if(G)if(te){var n=ne(te,t);n.length>1&&(pe(n[0]),V[G++]=n[1])}else re=ne(V[G-1],t)[0],V[G++]=re;else V[G++]=[K||t[0],$||t[1]];var a=V[G-1];K&&$&&(a[0]!==K||a[1]!==$)?(te&&(Q!==K&&ee!==$?he(Q&&ee?(i=te,l=(o=t)[0]-i[0],s=(o[1]-i[1])/l,(i[1]*o[0]-o[1]*i[0])/l>0?[s>0?ie:oe,se]:[s>0?oe:ie,le]):[Q||K,ee||$]):Q&&ee&&he([Q,ee])),he([K,$])):Q-K&&ee-$&&he([K||Q,$||ee]),te=t,Q=K,ee=$}else te&&pe(ne(te,t)[0]),V[G++]=t;var i,o,l,s}for(r=0;r<Y;r++)if(a=Z(r)){for(G=0,te=null,ve(a),r++;r<Y;r++){if(!(h=Z(r))){if(N)continue;break}if(B&&t.simplify){var ge=Z(r+1);if(x=X(h,a),H&&(0===G||G===Y-1)||!(x<J(h,ge)*q)){for(g=[(h[0]-a[0])/x,(h[1]-a[1])/x],p=a,b=x,_=k=T=0,v=!1,o=h,r++;r<e.length;r++){if(y=ge,ge=Z(r+1),!y){if(N)continue;break}if(M=(m=[y[0]-a[0],y[1]-a[1]])[0]*g[1]-m[1]*g[0],k=Math.min(k,M),(T=Math.max(T,M))-k>J(y,ge))break;o=y,(w=m[0]*g[0]+m[1]*g[1])>b?(b=w,h=y,v=!1):w<_&&(_=w,p=y,v=!0)}if(v?(ve(h),o!==p&&ve(p)):(p!==a&&ve(p),o!==h&&ve(h)),ve(o),r>=e.length||!y)break;ve(y),a=y}}else ve(h)}te&&he([Q||te[0],ee||te[1]]),U.push(V.slice(0,G))}var me=j.slice(j.length-1);if(I&&"h"!==me&&"v"!==me){for(var xe=!1,be=-1,_e=[],we=0;we<U.length;we++)for(var ke=0;ke<U[we].length-1;ke++){var Te=U[we][ke],Me=U[we][ke+1],Ae=n.applyBackoff(Me,Te);Ae[0]===Me[0]&&Ae[1]===Me[1]||(xe=!0),_e[be+1]||(_e[++be]=[Te,[Ae[0],Ae[1]]])}return xe?_e:U}return U}},11731:function(e){"use strict";e.exports=function(e,t,r){"spline"===r("line.shape")&&r("line.smoothing")}},14328:function(e){"use strict";var t={tonextx:1,tonexty:1,tonext:1};e.exports=function(e,r,n){var a,i,o,l,s,c={},u=!1,f=-1,d=0,h=-1;for(i=0;i<n.length;i++)(o=(a=n[i][0].trace).stackgroup||"")?o in c?s=c[o]:(s=c[o]=d,d++):a.fill in t&&h>=0?s=h:(s=h=d,d++),s<f&&(u=!0),a._groupIndex=f=s;var p=n.slice();u&&p.sort(function(e,t){var r=e[0].trace,n=t[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index});var y={};for(i=0;i<p.length;i++)o=(a=p[i][0].trace).stackgroup||"",!0===a.visible?(a._nexttrace=null,a.fill in t&&(l=y[o],a._prevtrace=l||null,l&&(l._nexttrace=a)),a._ownfill=a.fill&&("tozero"===a.fill.substr(0,6)||"toself"===a.fill||"to"===a.fill.substr(0,2)&&!a._prevtrace),y[o]=a):a._prevtrace=a._nexttrace=a._ownfill=null;return p}},7152:function(e,t,r){"use strict";var n=r(38248);e.exports=function(e,t){t||(t=2);var r=e.marker,a=r.sizeref||1,i=r.sizemin||0,o="area"===r.sizemode?function(e){return Math.sqrt(e/a)}:function(e){return e/a};return function(e){var r=o(e/t);return n(r)&&r>0?Math.max(r,i):0}}},5528:function(e){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},74428:function(e,t,r){"use strict";var n=r(76308),a=r(94288).hasColorscale,i=r(27260),o=r(43028);e.exports=function(e,t,r,l,s,c){var u=o.isBubble(e),f=(e.line||{}).color;(c=c||{},f&&(r=f),s("marker.symbol"),s("marker.opacity",u?.7:1),s("marker.size"),c.noAngle||(s("marker.angle"),c.noAngleRef||s("marker.angleref"),c.noStandOff||s("marker.standoff")),s("marker.color",r),a(e,"marker")&&i(e,t,l,s,{prefix:"marker.",cLetter:"c"}),c.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),c.noLine||(s("marker.line.color",f&&!Array.isArray(f)&&t.marker.color!==f?f:u?n.background:n.defaultLine),a(e,"marker.line")&&i(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",u?1:0)),u&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),c.gradient)&&("none"!==s("marker.gradient.type")&&s("marker.gradient.color"))}},31147:function(e,t,r){"use strict";var n=r(3400).dateTick0,a=r(39032).ONEWEEK;function i(e,t){return n(t,e%a==0?1:0)}e.exports=function(e,t,r,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",i(o,t.xcalendar)),n("xperiodalignment"))}if(a.y){var l=n("yperiod");l&&(n("yperiod0",i(l,t.ycalendar)),n("yperiodalignment"))}}},96504:function(e,t,r){"use strict";var n=r(33428),a=r(24040),i=r(3400),o=i.ensureSingle,l=i.identity,s=r(43616),c=r(43028),u=r(52340),f=r(14328),d=r(92065).tester;function h(e,t,r,f,h,p,y){var v,g=e._context.staticPlot;!function(e,t,r,a,o){var l=r.xaxis,s=r.yaxis,u=n.extent(i.simpleMap(l.range,l.r2c)),f=n.extent(i.simpleMap(s.range,s.r2c)),d=a[0].trace;if(!c.hasMarkers(d))return;var h=d.marker.maxdisplayed;if(0===h)return;var p=a.filter(function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=f[0]&&e.y<=f[1]}),y=Math.ceil(p.length/h),v=0;o.forEach(function(e,r){var n=e[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r<t&&v++});var g=Math.round(v*y/3+Math.floor(v/3)*y/7.1);a.forEach(function(e){delete e.vis}),p.forEach(function(e,t){0===Math.round((t+g)%y)&&(e.vis=!0)})}(0,t,r,f,h);var m=!!y&&y.duration>0;function x(e){return m?e.transition():e}var b=r.xaxis,_=r.yaxis,w=f[0].trace,k=w.line,T=n.select(p),M=o(T,"g","errorbars"),A=o(T,"g","lines"),S=o(T,"g","points"),L=o(T,"g","text");if(a.getComponentMethod("errorbars","plot")(e,M,r,y),!0===w.visible){var O,C;x(T).style("opacity",w.opacity);var D,P,E=w.fill.charAt(w.fill.length-1);"x"!==E&&"y"!==E&&(E=""),"y"===E?(D=1,P=_.c2p(0,!0)):"x"===E&&(D=0,P=b.c2p(0,!0)),f[0][r.isRangePlot?"nodeRangePlot3":"node3"]=T;var R,I,z="",N=[],F=w._prevtrace,j=null,B=null;F&&(z=F._prevRevpath||"",C=F._nextFill,N=F._ownPolygons,j=F._fillsegments,B=F._fillElement);var H,U,q,Y,V,G,Z="",W="",J=[];w._polygons=[];var X=[],K=[],$=i.noop;if(O=w._ownFill,c.hasLines(w)||"none"!==w.fill){C&&C.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(k.shape)?(H=s.steps(k.shape),U=s.steps(k.shape.split("").reverse().join(""))):H=U="spline"===k.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?s.smoothclosed(e.slice(1),k.smoothing):s.smoothopen(e,k.smoothing)}:function(e){return"M"+e.join("L")},q=function(e){return U(e.reverse())},K=u(f,{xaxis:b,yaxis:_,trace:w,connectGaps:w.connectgaps,baseTolerance:Math.max(k.width||1,3)/4,shape:k.shape,backoff:k.backoff,simplify:k.simplify,fill:w.fill}),X=new Array(K.length);var Q=0;for(v=0;v<K.length;v++){var ee,te=K[v];ee&&E?ee.push.apply(ee,te):(ee=te.slice(),X[Q]=ee,Q++)}w._fillElement=null,w._fillExclusionElement=B,w._fillsegments=X.slice(0,Q),X=w._fillsegments,K.length&&(Y=K[0][0].slice(),G=(V=K[K.length-1])[V.length-1].slice()),$=function(e){return function(t){if(R=H(t),I=q(t),Z?E?(Z+="L"+R.substr(1),W=I+"L"+W.substr(1)):(Z+="Z"+R,W=I+"Z"+W):(Z=R,W=I),c.hasLines(w)){var r=n.select(this);if(r.datum(f),e)x(r.style("opacity",0).attr("d",R).call(s.lineGroupStyle)).style("opacity",1);else{var a=x(r);a.attr("d",R),s.singleLineStyle(f,a)}}}}}var re=A.selectAll(".js-line").data(K);x(re.exit()).style("opacity",0).remove(),re.each($(!1)),re.enter().append("path").classed("js-line",!0).style("vector-effect",g?"none":"non-scaling-stroke").call(s.lineGroupStyle).each($(!0)),s.setClipUrl(re,r.layerClipId,e);var ne=function(){var e=new Array(X.length);for(v=0;v<X.length;v++)e[v]=d(X[v]);return e},ae=function(e){var t,r;if(e&&0!==e.length){for(t=new Array(e.length-1+X.length),r=0;r<e.length-1;r++)t[r]=d(e[r]);var n=e[e.length-1].slice();for(n.reverse(),r=0;r<X.length;r++)t[e.length-1+r]=d(X[r].concat(n))}else for(t=new Array(X.length),r=0;r<X.length;r++){var a=X[r][0].slice(),i=X[r][X[r].length-1].slice();a[D]=i[D]=P;var o=[i,a].concat(X[r]);t[r]=d(o)}return t};K.length?(O?(O.datum(f),Y&&G&&(E?(Y[D]=G[D]=P,x(O).attr("d","M"+G+"L"+Y+"L"+Z.substr(1)).call(s.singleFillStyle,e),J=ae(null)):(x(O).attr("d",Z+"Z").call(s.singleFillStyle,e),J=ne())),w._polygons=J,w._fillElement=O):C&&("tonext"===w.fill.substr(0,6)&&Z&&z?("tonext"===w.fill?(x(C).attr("d",Z+"Z"+z+"Z").call(s.singleFillStyle,e),J=ne(),w._polygons=J.concat(N)):(x(C).attr("d",Z+"L"+z.substr(1)+"Z").call(s.singleFillStyle,e),J=ae(j),w._polygons=J),w._fillElement=C):oe(C)),w._prevRevpath=W):(O?oe(O):C&&oe(C),w._prevRevpath=null),w._ownPolygons=J,S.datum(f),L.datum(f),function(t,a,i){var o,u=i[0].trace,f=c.hasMarkers(u),d=c.hasText(u),h=fe(u),p=de,y=de;if(f||d){var v=l,g=u.stackgroup,w=g&&"infer zero"===e._fullLayout._scatterStackOpts[b._id+_._id][g].stackgaps;u.marker.maxdisplayed||u._needsCull?v=w?se:le:g&&!w&&(v=ce),f&&(p=v),d&&(y=v)}var k,T=(o=t.selectAll("path.point").data(p,h)).enter().append("path").classed("point",!0);m&&T.call(s.pointStyle,u,e).call(s.translatePoints,b,_).style("opacity",0).transition().style("opacity",1),o.order(),f&&(k=s.makePointStyleFns(u)),o.each(function(t){var a=n.select(this),i=x(a);s.translatePoint(t,i,b,_)?(s.singlePointStyle(t,i,u,k,e),r.layerClipId&&s.hideOutsideRangePoint(t,i,b,_,u.xcalendar,u.ycalendar),u.customdata&&a.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()}),m?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=a.selectAll("g").data(y,h)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each(function(e){var t=n.select(this),a=x(t.select("text"));s.translatePoint(e,a,b,_)?r.layerClipId&&s.hideOutsideRangePoint(e,t,b,_,u.xcalendar,u.ycalendar):t.remove()}),o.selectAll("text").call(s.textPointStyle,u,e).each(function(e){var t=b.c2p(e.x),r=_.c2p(e.y);n.select(this).selectAll("tspan.line").each(function(){x(n.select(this)).attr({x:t,y:r})})}),o.exit().remove()}(S,L,f);var ie=!1===w.cliponaxis?null:r.layerClipId;s.setClipUrl(S,ie,e),s.setClipUrl(L,ie,e)}function oe(e){x(e).attr("d","M0,0Z")}function le(e){return e.filter(function(e){return!e.gap&&e.vis})}function se(e){return e.filter(function(e){return e.vis})}function ce(e){return e.filter(function(e){return!e.gap})}function ue(e){return e.id}function fe(e){if(e.ids)return ue}function de(){return!1}}e.exports=function(e,t,r,a,i,c){var u,d,p=!i,y=!!i&&i.duration>0,v=f(e,t,r);((u=a.selectAll("g.trace").data(v,function(e){return e[0].trace.uid})).enter().append("g").attr("class",function(e){return"trace scatter trace"+e[0].trace.uid}).style("stroke-miterlimit",2),u.order(),function(e,t,r){t.each(function(t){var a=o(n.select(this),"g","fills");s.setClipUrl(a,r.layerClipId,e);var i=t[0].trace,c=[];i._ownfill&&c.push("_ownFill"),i._nexttrace&&c.push("_nextFill");var u=a.selectAll("g").data(c,l);u.enter().append("g"),u.exit().each(function(e){i[e]=null}).remove(),u.order().each(function(e){i[e]=o(n.select(this),"path","js-fill")})})}(e,u,t),y)?(c&&(d=c()),n.transition().duration(i.duration).ease(i.easing).each("end",function(){d&&d()}).each("interrupt",function(){d&&d()}).each(function(){a.selectAll("g.trace").each(function(r,n){h(e,n,t,r,v,this,i)})})):u.each(function(r,n){h(e,n,t,r,v,this,i)});p&&u.exit().remove(),a.selectAll("path:not([d])").remove()}},91560:function(e,t,r){"use strict";var n=r(43028);e.exports=function(e,t){var r,a,i,o,l=e.cd,s=e.xaxis,c=e.yaxis,u=[],f=l[0].trace;if(!n.hasMarkers(f)&&!n.hasText(f))return[];if(!1===t)for(r=0;r<l.length;r++)l[r].selected=0;else for(r=0;r<l.length;r++)a=l[r],i=s.c2p(a.x),o=c.c2p(a.y),null!==a.i&&t.contains([i,o],!1,r,e)?(u.push({pointNumber:a.i,x:s.c2d(a.x),y:c.c2d(a.y)}),a.selected=1):a.selected=0;return u}},43912:function(e){"use strict";var t=["orientation","groupnorm","stackgaps"];e.exports=function(e,r,n,a){var i=n._scatterStackOpts,o=a("stackgroup");if(o){var l=r.xaxis+r.yaxis,s=i[l];s||(s=i[l]={});var c=s[o],u=!1;c?c.traces.push(r):(c=s[o]={traceIndices:[],traces:[r]},u=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},d=0;d<t.length;d++){var h=t[d],p=h+"Found";if(!c[p]){var y=void 0!==e[h],v="orientation"===h;if((y||u)&&(c[h]=a(h,f[h]),v&&(c.fillDflt="h"===c[h]?"tonextx":"tonexty"),y&&(c[p]=!0,!u&&(delete c.traces[0][h],v))))for(var g=0;g<c.traces.length-1;g++){var m=c.traces[g];m._input.fill!==m.fill&&(m.fill=c.fillDflt)}}}return c}}},49224:function(e,t,r){"use strict";var n=r(33428),a=r(43616),i=r(24040);function o(e,t,r){a.pointStyle(e.selectAll("path.point"),t,r)}function l(e,t,r){a.textPointStyle(e.selectAll("text"),t,r)}e.exports={style:function(e){var t=n.select(e).selectAll("g.trace.scatter");t.style("opacity",function(e){return e[0].trace.opacity}),t.selectAll("g.points").each(function(t){o(n.select(this),t.trace||t[0].trace,e)}),t.selectAll("g.text").each(function(t){l(n.select(this),t.trace||t[0].trace,e)}),t.selectAll("g.trace path.js-line").call(a.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(a.fillGroupStyle,e,!1),i.getComponentMethod("errorbars","style")(t)},stylePoints:o,styleText:l,styleOnSelect:function(e,t,r){var n=t[0].trace;n.selectedpoints?(a.selectedPointStyle(r.selectAll("path.point"),n),a.selectedTextStyle(r.selectAll("text"),n)):(o(r,n,e),l(r,n,e))}}},43028:function(e,t,r){"use strict";var n=r(3400),a=r(38116).isTypedArraySpec;e.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&(e.mode&&-1!==e.mode.indexOf("markers")||"splom"===e.type)},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){var t=e.marker;return n.isPlainObject(t)&&(n.isArrayOrTypedArray(t.size)||a(t.size))}}},124:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e,t,r,a,i){i=i||{},a("textposition"),n.coerceFont(a,"textfont",i.font||r.font),i.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}},43980:function(e,t,r){"use strict";var n=r(3400),a=r(24040);e.exports=function(e,t,r,i){var o,l=i("x"),s=i("y");if(a.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],r),l){var c=n.minRowLength(l);s?o=Math.min(c,n.minRowLength(s)):(o=c,i("y0"),i("dy"))}else{if(!s)return 0;o=n.minRowLength(s),i("x0"),i("dx")}return t._length=o,o}},5896:function(e,t,r){"use strict";var n=r(21776).Ks,a=r(21776).Gw,i=r(98304),o=r(52904),l=r(45464),s=r(49084),c=r(98192).u,u=r(92880).extendFlat,f=o.marker,d=o.line,h=f.line;e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:u({},o.mode,{dflt:"markers"}),text:u({},o.text,{}),texttemplate:a({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:u({},o.hovertext,{}),line:{color:d.color,width:d.width,dash:c,backoff:d.backoff,shape:u({},d.shape,{values:["linear","spline"]}),smoothing:d.smoothing,editType:"calc"},connectgaps:o.connectgaps,cliponaxis:o.cliponaxis,fill:u({},o.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:i(),marker:u({symbol:f.symbol,opacity:f.opacity,angle:f.angle,angleref:f.angleref,standoff:f.standoff,maxdisplayed:f.maxdisplayed,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,line:u({width:h.width,editType:"calc"},s("marker.line")),gradient:f.gradient,editType:"calc"},s("marker")),textfont:o.textfont,textposition:o.textposition,selected:o.selected,unselected:o.unselected,hoverinfo:u({},l.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o.hoveron,hovertemplate:n()}},34335:function(e,t,r){"use strict";var n=r(38248),a=r(90136),i=r(20148),o=r(4500),l=r(16356).calcMarkerSize,s=["a","b","c"],c={a:["b","c"],b:["a","c"],c:["a","b"]};e.exports=function(e,t){var r,u,f,d,h,p,y=e._fullLayout[t.subplot].sum,v=t.sum||y,g={a:t.a,b:t.b,c:t.c};for(r=0;r<s.length;r++)if(!g[f=s[r]]){for(h=g[c[f][0]],p=g[c[f][1]],d=new Array(h.length),u=0;u<h.length;u++)d[u]=v-h[u]-p[u];g[f]=d}var m,x,b,_,w,k,T=t._length,M=new Array(T);for(r=0;r<T;r++)m=g.a[r],x=g.b[r],b=g.c[r],n(m)&&n(x)&&n(b)?(1!==(_=y/((m=+m)+(x=+x)+(b=+b)))&&(m*=_,x*=_,b*=_),k=m,w=b-x,M[r]={x:w,y:k,a:m,b:x,c:b}):M[r]={x:!1,y:!1};return l(t,T),a(e,t),i(M,t),o(M,t),M}},84256:function(e,t,r){"use strict";var n=r(3400),a=r(88200),i=r(43028),o=r(74428),l=r(66828),s=r(11731),c=r(124),u=r(70840),f=r(5896);e.exports=function(e,t,r,d){function h(r,a){return n.coerce(e,t,f,r,a)}var p,y=h("a"),v=h("b"),g=h("c");if(y?(p=y.length,v?(p=Math.min(p,v.length),g&&(p=Math.min(p,g.length))):p=g?Math.min(p,g.length):0):v&&g&&(p=Math.min(v.length,g.length)),p){t._length=p,h("sum"),h("text"),h("hovertext"),"fills"!==t.hoveron&&h("hovertemplate"),h("mode",p<a.PTS_LINESONLY?"lines+markers":"lines"),i.hasMarkers(t)&&o(e,t,r,d,h,{gradient:!0}),i.hasLines(t)&&(l(e,t,r,d,h,{backoff:!0}),s(e,t,h),h("connectgaps")),i.hasText(t)&&(h("texttemplate"),c(e,t,d,h));var m=[];(i.hasMarkers(t)||i.hasText(t))&&(h("cliponaxis"),h("marker.maxdisplayed"),m.push("points")),h("fill"),"none"!==t.fill&&(u(e,t,r,h),i.hasLines(t)||s(e,t,h)),"tonext"!==t.fill&&"toself"!==t.fill||m.push("fills"),h("hoveron",m.join("+")||"points"),n.coerceSelectionMarkerOpacity(t,h)}else t.visible=!1}},97476:function(e){"use strict";e.exports=function(e,t,r,n,a){if(t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),n[a]){var i=n[a];e.a=i.a,e.b=i.b,e.c=i.c}else e.a=t.a,e.b=t.b,e.c=t.c;return e}},90404:function(e,t,r){"use strict";var n=r(54460);e.exports=function(e,t,r){var a={},i=r[t.subplot]._subplot;return a.aLabel=n.tickText(i.aaxis,e.a,!0).text,a.bLabel=n.tickText(i.baxis,e.b,!0).text,a.cLabel=n.tickText(i.caxis,e.c,!0).text,a}},26596:function(e,t,r){"use strict";var n=r(98723);e.exports=function(e,t,r,a){var i=n(e,t,r,a);if(i&&!1!==i[0].index){var o=i[0];if(void 0===o.index){var l=1-o.y0/e.ya._length,s=e.xa._length,c=s*l/2,u=s-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),i}var f=o.cd[o.index],d=o.trace,h=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[d.subplot]={_subplot:h};var y=d._module.formatLabels(f,d,p);o.aLabel=y.aLabel,o.bLabel=y.bLabel,o.cLabel=y.cLabel;var v=f.hi||d.hoverinfo,g=[];if(!d.hovertemplate){var m=v.split("+");-1!==m.indexOf("all")&&(m=["a","b","c"]),-1!==m.indexOf("a")&&x(h.aaxis,o.aLabel),-1!==m.indexOf("b")&&x(h.baxis,o.bLabel),-1!==m.indexOf("c")&&x(h.caxis,o.cLabel)}return o.extraText=g.join("<br>"),o.hovertemplate=d.hovertemplate,i}function x(e,t){g.push(e._hovertitle+": "+t)}}},34864:function(e,t,r){"use strict";e.exports={attributes:r(5896),supplyDefaults:r(84256),colorbar:r(5528),formatLabels:r(90404),calc:r(34335),plot:r(88776),style:r(49224).style,styleOnSelect:r(49224).styleOnSelect,hoverPoints:r(26596),selectPoints:r(91560),eventData:r(97476),moduleType:"trace",name:"scatterternary",basePlotModule:r(19352),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},88776:function(e,t,r){"use strict";var n=r(96504);e.exports=function(e,t,r){var a=t.plotContainer;a.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:a,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),c=0;c<r.length;c++){var u=r[c];u.length&&(u[0].trace._xA=i,u[0].trace._yA=o)}n(e,l,r,s)}},13988:function(e,t,r){"use strict";var n=r(63188),a=r(92880).extendFlat,i=r(29736).axisHoverFormat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,xhoverformat:i("x"),yhoverformat:i("y"),name:a({},n.name,{}),orientation:a({},n.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:n.fillcolor,points:a({},n.boxpoints,{}),jitter:a({},n.jitter,{}),pointpos:a({},n.pointpos,{}),width:a({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,quartilemethod:n.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"}}},67064:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(62555),o=r(63800),l=r(39032).BADNUM;function s(e,t,r){var a=t.max-t.min;if(!a)return e.bandwidth?e.bandwidth:0;if(e.bandwidth)return Math.max(e.bandwidth,a/1e4);var i=r.length,o=n.stdev(r,i-1,t.mean);return Math.max(function(e,t,r){return 1.059*Math.min(t,r/1.349)*Math.pow(e,-.2)}(i,o,t.q3-t.q1),a/100)}function c(e,t,r,n){var i,o=e.spanmode,s=e.span||[],c=[t.min,t.max],u=[t.min-2*n,t.max+2*n];function f(n){var a=s[n],i="multicategory"===r.type?r.r2c(a):r.d2c(a,0,e[t.valLetter+"calendar"]);return i===l?u[n]:i}var d={type:"linear",range:i="soft"===o?u:"hard"===o?c:[f(0),f(1)]};return a.setConvert(d),d.cleanRange(),i}e.exports=function(e,t){var r=i(e,t);if(r[0].t.empty)return r;for(var l=e._fullLayout,u=a.getFromId(e,t["h"===t.orientation?"xaxis":"yaxis"]),f=1/0,d=-1/0,h=0,p=0,y=0;y<r.length;y++){var v=r[y],g=v.pts.map(o.extractVal),m=v.bandwidth=s(t,v,g),x=v.span=c(t,v,u,m);if(v.min===v.max&&0===m)x=v.span=[v.min,v.max],v.density=[{v:1,t:x[0]}],v.bandwidth=m,h=Math.max(h,1);else{var b=x[1]-x[0],_=Math.ceil(b/(m/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return n.error("Something went wrong with computing the violin span"),r[0].t.empty=!0,r;var k=o.makeKDE(v,t,g);v.density=new Array(_);for(var T=0,M=x[0];M<x[1]+w/2;T++,M+=w){var A=k(M);v.density[T]={v:A,t:M},h=Math.max(h,A)}}p=Math.max(p,g.length),f=Math.min(f,x[0]),d=Math.max(d,x[1])}var S=a.findExtremes(u,[f,d],{padded:!0});if(t._extremes[u._id]=S,t.width)r[0].t.maxKDE=h;else{var L=l._violinScaleGroupStats,O=t.scalegroup,C=L[O];C?(C.maxKDE=Math.max(C.maxKDE,h),C.maxCount=Math.max(C.maxCount,p)):L[O]={maxKDE:h,maxCount:p}}return r[0].t.labels.kde=n._(e,"kde:"),r}},14348:function(e,t,r){"use strict";var n=r(96404).setPositionOffset,a=["v","h"];e.exports=function(e,t){for(var r=e.calcdata,i=t.xaxis,o=t.yaxis,l=0;l<a.length;l++){for(var s=a[l],c="h"===s?o:i,u=[],f=0;f<r.length;f++){var d=r[f],h=d[0].t,p=d[0].trace;!0!==p.visible||"violin"!==p.type||h.empty||p.orientation!==s||p.xaxis!==i._id||p.yaxis!==o._id||u.push(f)}n("violin",e,u,c)}}},36240:function(e,t,r){"use strict";var n=r(3400),a=r(76308),i=r(90624),o=r(13988);e.exports=function(e,t,r,l){function s(r,a){return n.coerce(e,t,o,r,a)}function c(r,a){return n.coerce2(e,t,o,r,a)}if(i.handleSampleDefaults(e,t,s,l),!1!==t.visible){s("bandwidth"),s("side"),s("width")||(s("scalegroup",t.name),s("scalemode"));var u,f=s("span");Array.isArray(f)&&(u="manual"),s("spanmode",u);var d=s("line.color",(e.marker||{}).color||r),h=s("line.width"),p=s("fillcolor",a.addOpacity(t.line.color,.5));i.handlePointsDefaults(e,t,s,{prefix:""});var y=c("box.width"),v=c("box.fillcolor",p),g=c("box.line.color",d),m=c("box.line.width",h);s("box.visible",Boolean(y||v||g||m))||(t.box={visible:!1});var x=c("meanline.color",d),b=c("meanline.width",h);s("meanline.visible",Boolean(x||b))||(t.meanline={visible:!1}),s("quartilemethod")}}},63800:function(e,t,r){"use strict";var n=r(3400),a=function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)};t.makeKDE=function(e,t,r){var n=r.length,i=a,o=e.bandwidth,l=1/(n*o);return function(e){for(var t=0,a=0;a<n;a++)t+=i((e-r[a])/o);return l*t}},t.getPositionOnKdePath=function(e,t,r){var a,i;"h"===t.orientation?(a="y",i="x"):(a="x",i="y");var o=n.findPointOnPath(e.path,r,i,{pathLength:e.pathLength}),l=e.posCenterPx,s=o[a];return[s,"both"===t.side?2*l-s:l]},t.getKdeValue=function(e,r,n){var a=e.pts.map(t.extractVal);return t.makeKDE(e,r,a)(n)/e.posDensityScale},t.extractVal=function(e){return e.v}},78000:function(e,t,r){"use strict";var n=r(76308),a=r(3400),i=r(54460),o=r(27576),l=r(63800);e.exports=function(e,t,r,s,c){c||(c={});var u,f,d=c.hoverLayer,h=e.cd,p=h[0].trace,y=p.hoveron,v=-1!==y.indexOf("violins"),g=-1!==y.indexOf("kde"),m=[];if(v||g){var x=o.hoverOnBoxes(e,t,r,s);if(g&&x.length>0){var b,_,w,k,T,M=e.xa,A=e.ya;"h"===p.orientation?(T=t,b="y",w=A,_="x",k=M):(T=r,b="x",w=M,_="y",k=A);var S=h[e.index];if(T>=S.span[0]&&T<=S.span[1]){var L=a.extendFlat({},e),O=k.c2p(T,!0),C=l.getKdeValue(S,p,T),D=l.getPositionOnKdePath(S,p,O),P=w._offset,E=w._length;L[b+"0"]=D[0],L[b+"1"]=D[1],L[_+"0"]=L[_+"1"]=O,L[_+"Label"]=_+": "+i.hoverLabelText(k,T,p[_+"hoverformat"])+", "+h[0].t.labels.kde+" "+C.toFixed(3);for(var R=0,I=0;I<x.length;I++)if("med"===x[I].attr){R=I;break}L.spikeDistance=x[R].spikeDistance;var z=b+"Spike";L[z]=x[R][z],x[R].spikeDistance=void 0,x[R][z]=void 0,L.hovertemplate=!1,m.push(L),(f={})[b+"1"]=a.constrain(P+D[0],P,P+E),f[b+"2"]=a.constrain(P+D[1],P,P+E),f[_+"1"]=f[_+"2"]=k._offset+O}}v&&(m=m.concat(x))}-1!==y.indexOf("points")&&(u=o.hoverOnPoints(e,t,r));var N=d.selectAll(".violinline-"+p.uid).data(f?[0]:[]);return N.enter().append("line").classed("violinline-"+p.uid,!0).attr("stroke-width",1.5),N.exit().remove(),N.attr(f).call(n.stroke,e.color),"closest"===s?u?[u]:m:u?(m.push(u),m):m}},22869:function(e,t,r){"use strict";e.exports={attributes:r(13988),layoutAttributes:r(98228),supplyDefaults:r(36240),crossTraceDefaults:r(90624).crossTraceDefaults,supplyLayoutDefaults:r(8939),calc:r(67064),crossTraceCalc:r(14348),plot:r(5140),style:r(95908),styleOnSelect:r(49224).styleOnSelect,hoverPoints:r(78e3),selectPoints:r(8264),moduleType:"trace",name:"violin",basePlotModule:r(57952),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}},98228:function(e,t,r){"use strict";var n=r(16560),a=r(3400).extendFlat;e.exports={violinmode:a({},n.boxmode,{}),violingap:a({},n.boxgap,{}),violingroupgap:a({},n.boxgroupgap,{})}},8939:function(e,t,r){"use strict";var n=r(3400),a=r(98228),i=r(68832);e.exports=function(e,t,r){i._supply(e,t,r,function(r,i){return n.coerce(e,t,a,r,i)},"violin")}},5140:function(e,t,r){"use strict";var n=r(33428),a=r(3400),i=r(43616),o=r(18728),l=r(52340),s=r(63800);e.exports=function(e,t,r,c){var u=e._context.staticPlot,f=e._fullLayout,d=t.xaxis,h=t.yaxis;function p(e,t){var r=l(e,{xaxis:d,yaxis:h,trace:t,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return i.smoothopen(r[0],1)}a.makeTraceGroups(c,r,"trace violins").each(function(e){var r=n.select(this),i=e[0],l=i.t,c=i.trace;if(!0!==c.visible||l.empty)r.remove();else{var y=l.bPos,v=l.bdPos,g=t[l.valLetter+"axis"],m=t[l.posLetter+"axis"],x="both"===c.side,b=x||"positive"===c.side,_=x||"negative"===c.side,w=r.selectAll("path.violin").data(a.identity);w.enter().append("path").style("vector-effect",u?"none":"non-scaling-stroke").attr("class","violin"),w.exit().remove(),w.each(function(e){var t,r,a,i,o,s,u,d,h=n.select(this),w=e.density,k=w.length,T=m.c2l(e.pos+y,!0),M=m.l2p(T);if(c.width)t=l.maxKDE/v;else{var A=f._violinScaleGroupStats[c.scalegroup];t="count"===c.scalemode?A.maxKDE/v*(A.maxCount/e.pts.length):A.maxKDE/v}if(b){for(u=new Array(k),o=0;o<k;o++)(d=u[o]={})[l.posLetter]=T+w[o].v/t,d[l.valLetter]=g.c2l(w[o].t,!0);r=p(u,c)}if(_){for(u=new Array(k),s=0,o=k-1;s<k;s++,o--)(d=u[s]={})[l.posLetter]=T-w[o].v/t,d[l.valLetter]=g.c2l(w[o].t,!0);a=p(u,c)}if(x)i=r+"L"+a.substr(1)+"Z";else{var S=[M,g.c2p(w[0].t)],L=[M,g.c2p(w[k-1].t)];"h"===c.orientation&&(S.reverse(),L.reverse()),i=b?"M"+S+"L"+r.substr(1)+"L"+L:"M"+L+"L"+a.substr(1)+"L"+S}h.attr("d",i),e.posCenterPx=M,e.posDensityScale=t*v,e.path=h.node(),e.pathLength=e.path.getTotalLength()/(x?2:1)});var k,T,M,A=c.box,S=A.width,L=(A.line||{}).width;x?(k=v*S,T=0):b?(k=[0,v*S/2],T=L*{x:1,y:-1}[l.posLetter]):(k=[v*S/2,0],T=L*{x:-1,y:1}[l.posLetter]),o.plotBoxAndWhiskers(r,{pos:m,val:g},c,{bPos:y,bdPos:k,bPosPxOffset:T}),o.plotBoxMean(r,{pos:m,val:g},c,{bPos:y,bdPos:k,bPosPxOffset:T}),!c.box.visible&&c.meanline.visible&&(M=a.identity);var O=r.selectAll("path.meanline").data(M||[]);O.enter().append("path").attr("class","meanline").style("fill","none").style("vector-effect",u?"none":"non-scaling-stroke"),O.exit().remove(),O.each(function(e){var t=g.c2p(e.mean,!0),r=s.getPositionOnKdePath(e,c,t);n.select(this).attr("d","h"===c.orientation?"M"+t+","+r[0]+"V"+r[1]:"M"+r[0]+","+t+"H"+r[1])}),o.plotPoints(r,{x:d,y:h},c,l)}})}},95908:function(e,t,r){"use strict";var n=r(33428),a=r(76308),i=r(49224).stylePoints;e.exports=function(e){var t=n.select(e).selectAll("g.trace.violins");t.style("opacity",function(e){return e[0].trace.opacity}),t.each(function(t){var r=t[0].trace,o=n.select(this),l=r.box||{},s=l.line||{},c=r.meanline||{},u=c.width;o.selectAll("path.violin").style("stroke-width",r.line.width+"px").call(a.stroke,r.line.color).call(a.fill,r.fillcolor),o.selectAll("path.box").style("stroke-width",s.width+"px").call(a.stroke,s.color).call(a.fill,l.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};o.selectAll("path.mean").style(f).call(a.stroke,c.color),o.selectAll("path.meanline").style(f).call(a.stroke,c.color),i(o,r,e)})}},84224:function(e,t,r){"use strict";var n=r(54460),a=r(3400),i=r(73060),o=r(60468).W,l=r(39032).BADNUM;t.moduleType="transform",t.name="aggregate";var s=t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},c=s.aggregations;function u(e,t,r,i){if(i.enabled){for(var o=i.target,s=a.nestedProperty(t,o),c=s.get(),u=function(e,t){var r=e.func,n=t.d2c,i=t.c2d;switch(r){case"count":return f;case"first":return d;case"last":return h;case"sum":return function(e,t){for(var r=0,a=0;a<t.length;a++){var o=n(e[t[a]]);o!==l&&(r+=o)}return i(r)};case"avg":return function(e,t){for(var r=0,a=0,o=0;o<t.length;o++){var s=n(e[t[o]]);s!==l&&(r+=s,a++)}return a?i(r/a):l};case"min":return function(e,t){for(var r=1/0,a=0;a<t.length;a++){var o=n(e[t[a]]);o!==l&&(r=Math.min(r,o))}return r===1/0?l:i(r)};case"max":return function(e,t){for(var r=-1/0,a=0;a<t.length;a++){var o=n(e[t[a]]);o!==l&&(r=Math.max(r,o))}return r===-1/0?l:i(r)};case"range":return function(e,t){for(var r=1/0,a=-1/0,o=0;o<t.length;o++){var s=n(e[t[o]]);s!==l&&(r=Math.min(r,s),a=Math.max(a,s))}return a===-1/0||r===1/0?l:i(a-r)};case"change":return function(e,t){var r=n(e[t[0]]),a=n(e[t[t.length-1]]);return r===l||a===l?l:i(a-r)};case"median":return function(e,t){for(var r=[],o=0;o<t.length;o++){var s=n(e[t[o]]);s!==l&&r.push(s)}if(!r.length)return l;r.sort(a.sorterAsc);var c=(r.length-1)/2;return i((r[Math.floor(c)]+r[Math.ceil(c)])/2)};case"mode":return function(e,t){for(var r={},a=0,o=l,s=0;s<t.length;s++){var c=n(e[t[s]]);if(c!==l){var u=r[c]=(r[c]||0)+1;u>a&&(a=u,o=c)}}return a?i(o):l};case"rms":return function(e,t){for(var r=0,a=0,o=0;o<t.length;o++){var s=n(e[t[o]]);s!==l&&(r+=s*s,a++)}return a?i(Math.sqrt(r/a)):l};case"stddev":return function(t,r){var a,i=0,o=0,s=1,c=l;for(a=0;a<r.length&&c===l;a++)c=n(t[r[a]]);if(c===l)return l;for(;a<r.length;a++){var u=n(t[r[a]]);if(u!==l){var f=u-c;i+=f,o+=f*f,s++}}var d="sample"===e.funcmode?s-1:s;return d?Math.sqrt((o-i*i/s)/d):0}}}(i,n.getDataConversions(e,t,o,c)),p=new Array(r.length),y=0;y<r.length;y++)p[y]=u(c,r[y]);s.set(p),"count"===i.func&&a.pushUnique(t._arrayAttrs,o)}}function f(e,t){return t.length}function d(e,t){return e[t[0]]}function h(e,t){return e[t[t.length-1]]}t.supplyDefaults=function(e,t){var r,n={};function o(t,r){return a.coerce(e,n,s,t,r)}if(!o("enabled"))return n;var l=i.findArrayAttributes(t),u={};for(r=0;r<l.length;r++)u[l[r]]=1;var f=o("groups");if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var d,h=e.aggregations||[],p=n.aggregations=new Array(h.length);function y(e,t){return a.coerce(h[r],d,c,e,t)}for(r=0;r<h.length;r++){d={_index:r};var v=y("target"),g=y("func");y("enabled")&&v&&(u[v]||"count"===g&&void 0===u[v])?("stddev"===g&&y("funcmode"),u[v]=0,p[r]=d):p[r]={enabled:!1,_index:r}}for(r=0;r<l.length;r++)u[l[r]]&&p.push({target:l[r],func:c.func.dflt,enabled:!0,_index:-1});return n},t.calcTransform=function(e,t,r){if(r.enabled){var n=r.groups,i=a.getTargetArray(t,{target:n});if(i){var l,s,c,f,d={},h={},p=[],y=o(t.transforms,r),v=i.length;for(t._length&&(v=Math.min(v,t._length)),l=0;l<v;l++)void 0===(c=d[s=i[l]])?(d[s]=p.length,f=[l],p.push(f),h[d[s]]=y(l)):(p[c].push(l),h[d[s]]=(h[d[s]]||[]).concat(y(l)));r._indexToPoints=h;var g=r.aggregations;for(l=0;l<g.length;l++)u(e,t,p,g[l]);"string"==typeof n&&u(e,t,p,{target:n,func:"first",enabled:!0}),t._length=p.length}}}},76744:function(e,t,r){"use strict";var n=r(3400),a=r(24040),i=r(54460),o=r(60468).W,l=r(69104),s=l.COMPARISON_OPS,c=l.INTERVAL_OPS,u=l.SET_OPS;t.moduleType="transform",t.name="filter",t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},operation:{valType:"enumerated",values:[].concat(s).concat(c).concat(u),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},preservegaps:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc"},t.supplyDefaults=function(e){var r={};function i(a,i){return n.coerce(e,r,t.attributes,a,i)}if(i("enabled")){var o=i("target");if(n.isArrayOrTypedArray(o)&&0===o.length)return r.enabled=!1,r;i("preservegaps"),i("operation"),i("value");var l=a.getComponentMethod("calendars","handleDefaults");l(e,r,"valuecalendar",null),l(e,r,"targetcalendar",null)}return r},t.calcTransform=function(e,t,r){if(r.enabled){var a=n.getTargetArray(t,r);if(a){var l=r.target,f=a.length;t._length&&(f=Math.min(f,t._length));var d=r.targetcalendar,h=t._arrayAttrs,p=r.preservegaps;if("string"==typeof l){var y=n.nestedProperty(t,l+"calendar").get();y&&(d=y)}var v,g,m=function(e,t,r){var a=e.operation,i=e.value,o=n.isArrayOrTypedArray(i);function l(e){return-1!==e.indexOf(a)}var f,d=function(r){return t(r,0,e.valuecalendar)},h=function(e){return t(e,0,r)};l(s)?f=d(o?i[0]:i):l(c)?f=o?[d(i[0]),d(i[1])]:[d(i),d(i)]:l(u)&&(f=o?i.map(d):[d(i)]);switch(a){case"=":return function(e){return h(e)===f};case"!=":return function(e){return h(e)!==f};case"<":return function(e){return h(e)<f};case"<=":return function(e){return h(e)<=f};case">":return function(e){return h(e)>f};case">=":return function(e){return h(e)>=f};case"[]":return function(e){var t=h(e);return t>=f[0]&&t<=f[1]};case"()":return function(e){var t=h(e);return t>f[0]&&t<f[1]};case"[)":return function(e){var t=h(e);return t>=f[0]&&t<f[1]};case"(]":return function(e){var t=h(e);return t>f[0]&&t<=f[1]};case"][":return function(e){var t=h(e);return t<=f[0]||t>=f[1]};case")(":return function(e){var t=h(e);return t<f[0]||t>f[1]};case"](":return function(e){var t=h(e);return t<=f[0]||t>f[1]};case")[":return function(e){var t=h(e);return t<f[0]||t>=f[1]};case"{}":return function(e){return-1!==f.indexOf(h(e))};case"}{":return function(e){return-1===f.indexOf(h(e))}}}(r,i.getDataToCoordFunc(e,t,l,a),d),x={},b={},_=0;p?(v=function(e){x[e.astr]=n.extendDeep([],e.get()),e.set(new Array(f))},g=function(e,t){var r=x[e.astr][t];e.get()[t]=r}):(v=function(e){x[e.astr]=n.extendDeep([],e.get()),e.set([])},g=function(e,t){var r=x[e.astr][t];e.get().push(r)}),T(v);for(var w=o(t.transforms,r),k=0;k<f;k++){m(a[k])?(T(g,k),b[_++]=w(k)):p&&_++}r._indexToPoints=b,t._length=_}}function T(e,r){for(var a=0;a<h.length;a++){e(n.nestedProperty(t,h[a]),r)}}}},32028:function(e,t,r){"use strict";var n=r(3400),a=r(73060),i=r(7316),o=r(60468).W;function l(e,t){var r,l,s,c,u,f,d,h,p,y,v=t.transform,g=t.transformIndex,m=e.transforms[g].groups,x=o(e.transforms,v);if(!n.isArrayOrTypedArray(m)||0===m.length)return[e];var b=n.filterUnique(m),_=new Array(b.length),w=m.length,k=a.findArrayAttributes(e),T=v.styles||[],M={};for(r=0;r<T.length;r++)M[T[r].target]=T[r].value;v.styles&&(y=n.keyedContainer(v,"styles","target","value.name"));var A={},S={};for(r=0;r<b.length;r++){A[f=b[r]]=r,S[f]=0,(d=_[r]=n.extendDeepNoArrays({},e))._group=f,d.transforms[g]._indexToPoints={};var L=null;for(y&&(L=y.get(f)),d.name=L||""===L?L:n.templateString(v.nameformat,{trace:e.name,group:f}),h=d.transforms,d.transforms=[],l=0;l<h.length;l++)d.transforms[l]=n.extendDeepNoArrays({},h[l]);for(l=0;l<k.length;l++)n.nestedProperty(d,k[l]).set([])}for(s=0;s<k.length;s++){for(c=k[s],l=0,p=[];l<b.length;l++)p[l]=n.nestedProperty(_[l],c).get();for(u=n.nestedProperty(e,c).get(),l=0;l<w;l++)p[A[m[l]]].push(u[l])}for(l=0;l<w;l++){(d=_[A[m[l]]]).transforms[g]._indexToPoints[S[m[l]]]=x(l),S[m[l]]++}for(r=0;r<b.length;r++)f=b[r],d=_[r],i.clearExpandedTraceDefaultColors(d),d=n.extendDeepNoArrays(d,M[f]||{});return _}t.moduleType="transform",t.name="groupby",t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},t.supplyDefaults=function(e,r,a){var i,o={};function l(r,a){return n.coerce(e,o,t.attributes,r,a)}if(!l("enabled"))return o;l("groups"),l("nameformat",a._dataLength>1?"%{group} (%{trace})":"%{group}");var s=e.styles,c=o.styles=[];if(s)for(i=0;i<s.length;i++){var u=c[i]={};n.coerce(s[i],c[i],t.attributes.styles,"target");var f=n.coerce(s[i],c[i],t.attributes.styles,"value");n.isPlainObject(f)?u.value=n.extendDeep({},f):f&&delete u.value}return o},t.transform=function(e,t){var r,n,a,i=[];for(n=0;n<e.length;n++)for(r=l(e[n],t),a=0;a<r.length;a++)i.push(r[a]);return i}},60468:function(e,t){"use strict";t.W=function(e,t){for(var r,n,a=0;a<e.length&&(r=e[a])!==t;a++)r._indexToPoints&&!1!==r.enabled&&(n=r._indexToPoints);return n?function(e){return n[e]}:function(e){return[e]}}},76272:function(e,t,r){"use strict";var n=r(3400),a=r(54460),i=r(60468).W,o=r(39032).BADNUM;t.moduleType="transform",t.name="sort",t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},order:{valType:"enumerated",values:["ascending","descending"],dflt:"ascending",editType:"calc"},editType:"calc"},t.supplyDefaults=function(e){var r={};function a(a,i){return n.coerce(e,r,t.attributes,a,i)}return a("enabled")&&(a("target"),a("order")),r},t.calcTransform=function(e,t,r){if(r.enabled){var l=n.getTargetArray(t,r);if(l){var s=r.target,c=l.length;t._length&&(c=Math.min(c,t._length));var u,f,d=t._arrayAttrs,h=function(e,t,r,n){var a,i=new Array(n),l=new Array(n);for(a=0;a<n;a++)i[a]={v:t[a],i:a};for(i.sort(function(e,t){switch(e.order){case"ascending":return function(e,r){var n=t(e.v),a=t(r.v);return n===o?1:a===o?-1:n-a};case"descending":return function(e,r){var n=t(e.v),a=t(r.v);return n===o?1:a===o?-1:a-n}}}(e,r)),a=0;a<n;a++)l[a]=i[a].i;return l}(r,l,a.getDataToCoordFunc(e,t,s,l),c),p=i(t.transforms,r),y={};for(u=0;u<d.length;u++){var v=n.nestedProperty(t,d[u]),g=v.get(),m=new Array(c);for(f=0;f<c;f++)m[f]=g[h[f]];v.set(m)}for(f=0;f<c;f++)y[f]=p(h[f]);r._indexToPoints=y,t._length=c}}}},25788:function(e,t){"use strict";t.version="2.30.0"},33576:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(a=n.key,i=void 0,i=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"),"symbol"===s(i)?i:String(i)),n)}var a,i}function a(e,t,r){return t=i(t),function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?Reflect.construct(t,r||[],i(e).constructor):t.apply(e,r))}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c=r(59968),u=r(35984),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=p,t.SlowBuffer=function(e){+e!=e&&(e=0);return p.alloc(+e)},t.INSPECT_MAX_BYTES=50;var d=2147483647;function h(e){if(e>d)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return g(e)}return y(e,t,r)}function y(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|_(e,t),n=h(r),a=n.write(e,t);a!==r&&(n=n.slice(0,a));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return x(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+s(e));if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return x(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return x(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return p.from(n,t,r);var a=function(e){if(p.isBuffer(e)){var t=0|b(e.length),r=h(t);return 0===r.length?r:(e.copy(r,0,0,t),r)}if(void 0!==e.length)return"number"!=typeof e.length||te(e.length)?h(0):m(e);if("Buffer"===e.type&&Array.isArray(e.data))return m(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return p.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+s(e))}function v(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e){return v(e),h(e<0?0:0|b(e))}function m(e){for(var t=e.length<0?0:0|b(e.length),r=h(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function x(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,p.prototype),n}function b(e){if(e>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|e}function _(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+s(e));var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(a)return n?-1:K(e).length;t=(""+t).toLowerCase(),a=!0}}function w(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function k(e,t,r,n,a){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),te(r=+r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=p.from(t,n)),p.isBuffer(t))return 0===t.length?-1:T(e,t,r,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):T(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function T(e,t,r,n,a){var i,o=1,l=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,l/=2,s/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(i=r;i<l;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===s)return u*o}else-1!==u&&(i-=i-u),u=-1}else for(r+s>l&&(r=l-s),i=r;i>=0;i--){for(var f=!0,d=0;d<s;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function M(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var i,o=t.length;for(n>o/2&&(n=o/2),i=0;i<n;++i){var l=parseInt(t.substr(2*i,2),16);if(te(l))return i;e[r+i]=l}return i}function A(e,t,r,n){return Q(K(t,e.length-r),e,r,n)}function S(e,t,r,n){return Q(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function L(e,t,r,n){return Q($(t),e,r,n)}function O(e,t,r,n){return Q(function(e,t){for(var r,n,a,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,a=r%256,i.push(a),i.push(n);return i}(t,e.length-r),e,r,n)}function C(e,t,r){return 0===t&&r===e.length?c.fromByteArray(e):c.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var i=e[a],o=null,l=i>239?4:i>223?3:i>191?2:1;if(a+l<=r){var s=void 0,c=void 0,u=void 0,f=void 0;switch(l){case 1:i<128&&(o=i);break;case 2:128==(192&(s=e[a+1]))&&(f=(31&i)<<6|63&s)>127&&(o=f);break;case 3:s=e[a+1],c=e[a+2],128==(192&s)&&128==(192&c)&&(f=(15&i)<<12|(63&s)<<6|63&c)>2047&&(f<55296||f>57343)&&(o=f);break;case 4:s=e[a+1],c=e[a+2],u=e[a+3],128==(192&s)&&128==(192&c)&&128==(192&u)&&(f=(15&i)<<18|(63&s)<<12|(63&c)<<6|63&u)>65535&&f<1114112&&(o=f)}}null===o?(o=65533,l=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),a+=l}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));return r}(n)}t.kMaxLength=d,p.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),p.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(e,t,r){return y(e,t,r)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(e,t,r){return function(e,t,r){return v(e),e<=0?h(e):void 0!==t?"string"==typeof r?h(e).fill(t,r):h(e).fill(t):h(e)}(e,t,r)},p.allocUnsafe=function(e){return g(e)},p.allocUnsafeSlow=function(e){return g(e)},p.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==p.prototype},p.compare=function(e,t){if(ee(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),ee(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(e)||!p.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0},p.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return p.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=p.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var i=e[r];if(ee(i,Uint8Array))a+i.length>n.length?(p.isBuffer(i)||(i=p.from(i)),i.copy(n,a)):Uint8Array.prototype.set.call(n,i,a);else{if(!p.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,a)}a+=i.length}return n},p.byteLength=_,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},p.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},p.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},p.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?D(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return C(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(e){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===p.compare(this,e)},p.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},f&&(p.prototype[f]=p.prototype.inspect),p.prototype.compare=function(e,t,r,n,a){if(ee(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+s(e));if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),l=Math.min(i,o),c=this.slice(n,a),u=e.slice(t,r),f=0;f<l;++f)if(c[f]!==u[f]){i=c[f],o=u[f];break}return i<o?-1:o<i?1:0},p.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},p.prototype.indexOf=function(e,t,r){return k(this,e,t,r,!0)},p.prototype.lastIndexOf=function(e,t,r){return k(this,e,t,r,!1)},p.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return M(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return L(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}function R(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}function I(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",i=t;i<r;++i)a+=re[e[i]];return a}function z(e,t,r){for(var n=e.slice(t,r),a="",i=0;i<n.length-1;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}function N(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,r,n,a,i){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function j(e,t,r,n,a){Z(t,n,a,e,r,7);var i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function B(e,t,r,n,a){Z(t,n,a,e,r,7);var i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function H(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,n,a){return t=+t,r>>>=0,a||H(e,0,r,4),u.write(e,t,r,n,23,4),r+4}function q(e,t,r,n,a){return t=+t,r>>>=0,a||H(e,0,r,8),u.write(e,t,r,n,52,8),r+8}p.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,p.prototype),n},p.prototype.readUintLE=p.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n},p.prototype.readUintBE=p.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},p.prototype.readUint8=p.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readBigUInt64LE=ne(function(e){W(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);var n=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),a=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(a)<<BigInt(32))}),p.prototype.readBigUInt64BE=ne(function(e){W(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);var n=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],a=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(a)}),p.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},p.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=t,a=1,i=this[e+--n];n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},p.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},p.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},p.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readBigInt64LE=ne(function(e){W(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);var n=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))}),p.prototype.readBigInt64BE=ne(function(e){W(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);var n=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r)}),p.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),u.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),u.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),u.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),u.read(this,e,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||F(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,i=0;for(this[t]=255&e;++i<r&&(a*=256);)this[t+i]=e/a&255;return t+r},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||F(this,e,t,r,Math.pow(2,8*r)-1,0);var a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},p.prototype.writeUint8=p.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,1,255,0),this[t]=255&e,t+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigUInt64LE=ne(function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=ne(function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);F(this,e,t,r,a-1,-a)}var i=0,o=1,l=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+r},p.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);F(this,e,t,r,a-1,-a)}var i=r-1,o=1,l=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+r},p.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},p.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigInt64LE=ne(function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=ne(function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},p.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},p.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},p.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},p.prototype.copy=function(e,t,r,n){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),a},p.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=p.isBuffer(e)?e:p.from(e,n),l=o.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%l]}return this};var Y={};function V(e,t,r){Y[e]=function(i){function s(){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r=a(this,s),Object.defineProperty(o(r),"message",{value:t.apply(o(r),arguments),writable:!0,configurable:!0}),r.name="".concat(r.name," [").concat(e,"]"),r.stack,delete r.name,r}var c,u,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(s,r),c=s,(u=[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}])&&n(c.prototype,u),f&&n(c,f),Object.defineProperty(c,"prototype",{writable:!1}),s}()}function G(e){for(var t="",r=e.length,n="-"===e[0]?1:0;r>=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)}function Z(e,t,r,n,a,i){if(e>r||e<t){var o,l="bigint"==typeof t?"n":"";throw o=i>3?0===t||t===BigInt(0)?">= 0".concat(l," and < 2").concat(l," ** ").concat(8*(i+1)).concat(l):">= -(2".concat(l," ** ").concat(8*(i+1)-1).concat(l,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(l):">= ".concat(t).concat(l," and <= ").concat(r).concat(l),new Y.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||J(t,e.length-(r+1))}(n,a,i)}function W(e,t){if("number"!=typeof e)throw new Y.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,r){if(Math.floor(e)!==e)throw W(e,r),new Y.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new Y.ERR_BUFFER_OUT_OF_BOUNDS;throw new Y.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(t),e)}V("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),V("ERR_INVALID_ARG_TYPE",function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(s(t))},TypeError),V("ERR_OUT_OF_RANGE",function(e,t,r){var n='The value of "'.concat(e,'" is out of range.'),a=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?a=G(String(r)):"bigint"==typeof r&&(a=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(a=G(a)),a+="n"),n+=" It must be ".concat(t,". Received ").concat(a)},RangeError);var X=/[^+/0-9A-Za-z-_]/g;function K(e,t){var r;t=t||1/0;for(var n=e.length,a=null,i=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function $(e){return c.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,r,n){var a;for(a=0;a<n&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!=e}var re=function(){for(var e=new Array(256),t=0;t<16;++t)for(var r=16*t,n=0;n<16;++n)e[r+n]="0123456789abcdef"[t]+"0123456789abcdef"[n];return e}();function ne(e){return"undefined"==typeof BigInt?ae:e}function ae(){throw new Error("BigInt not supported")}},25928:function(e){"use strict";e.exports=a,e.exports.isMobile=a,e.exports.default=a;var t=/(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,r=/CrOS/,n=/android|ipad|playbook|silk/i;function a(e){e||(e={});var a=e.ua;if(a||"undefined"==typeof navigator||(a=navigator.userAgent),a&&a.headers&&"string"==typeof a.headers["user-agent"]&&(a=a.headers["user-agent"]),"string"!=typeof a)return!1;var i=t.test(a)&&!r.test(a)||!!e.tablet&&n.test(a);return!i&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==a.indexOf("Macintosh")&&-1!==a.indexOf("Safari")&&(i=!0),i}},33428:function(e,t,r){var n,a;(function(){var i={version:"3.8.0"},o=[].slice,l=function(e){return o.call(e)},s=self.document;function c(e){return e&&(e.ownerDocument||e.document||e).documentElement}function u(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(s)try{l(s.documentElement.childNodes)[0].nodeType}catch(e){l=function(e){for(var t=e.length,r=new Array(t);t--;)r[t]=e[t];return r}}if(Date.now||(Date.now=function(){return+new Date}),s)try{s.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var f=this.Element.prototype,d=f.setAttribute,h=f.setAttributeNS,p=this.CSSStyleDeclaration.prototype,y=p.setProperty;f.setAttribute=function(e,t){d.call(this,e,t+"")},f.setAttributeNS=function(e,t,r){h.call(this,e,t,r+"")},p.setProperty=function(e,t,r){y.call(this,e,t+"",r)}}function v(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function g(e){return null===e?NaN:+e}function m(e){return!isNaN(e)}function x(e){return{left:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n<a;){var i=n+a>>>1;e(t[i],r)<0?n=i+1:a=i}return n},right:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n<a;){var i=n+a>>>1;e(t[i],r)>0?a=i:n=i+1}return n}}}i.ascending=v,i.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},i.min=function(e,t){var r,n,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(n=e[a])&&n>=n){r=n;break}for(;++a<i;)null!=(n=e[a])&&r>n&&(r=n)}else{for(;++a<i;)if(null!=(n=t.call(e,e[a],a))&&n>=n){r=n;break}for(;++a<i;)null!=(n=t.call(e,e[a],a))&&r>n&&(r=n)}return r},i.max=function(e,t){var r,n,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(n=e[a])&&n>=n){r=n;break}for(;++a<i;)null!=(n=e[a])&&n>r&&(r=n)}else{for(;++a<i;)if(null!=(n=t.call(e,e[a],a))&&n>=n){r=n;break}for(;++a<i;)null!=(n=t.call(e,e[a],a))&&n>r&&(r=n)}return r},i.extent=function(e,t){var r,n,a,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(n=e[i])&&n>=n){r=a=n;break}for(;++i<o;)null!=(n=e[i])&&(r>n&&(r=n),a<n&&(a=n))}else{for(;++i<o;)if(null!=(n=t.call(e,e[i],i))&&n>=n){r=a=n;break}for(;++i<o;)null!=(n=t.call(e,e[i],i))&&(r>n&&(r=n),a<n&&(a=n))}return[r,a]},i.sum=function(e,t){var r,n=0,a=e.length,i=-1;if(1===arguments.length)for(;++i<a;)m(r=+e[i])&&(n+=r);else for(;++i<a;)m(r=+t.call(e,e[i],i))&&(n+=r);return n},i.mean=function(e,t){var r,n=0,a=e.length,i=-1,o=a;if(1===arguments.length)for(;++i<a;)m(r=g(e[i]))?n+=r:--o;else for(;++i<a;)m(r=g(t.call(e,e[i],i)))?n+=r:--o;if(o)return n/o},i.quantile=function(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a},i.median=function(e,t){var r,n=[],a=e.length,o=-1;if(1===arguments.length)for(;++o<a;)m(r=g(e[o]))&&n.push(r);else for(;++o<a;)m(r=g(t.call(e,e[o],o)))&&n.push(r);if(n.length)return i.quantile(n.sort(v),.5)},i.variance=function(e,t){var r,n,a=e.length,i=0,o=0,l=-1,s=0;if(1===arguments.length)for(;++l<a;)m(r=g(e[l]))&&(o+=(n=r-i)*(r-(i+=n/++s)));else for(;++l<a;)m(r=g(t.call(e,e[l],l)))&&(o+=(n=r-i)*(r-(i+=n/++s)));if(s>1)return o/(s-1)},i.deviation=function(){var e=i.variance.apply(this,arguments);return e?Math.sqrt(e):e};var b=x(v);function _(e){return e.length}i.bisectLeft=b.left,i.bisect=i.bisectRight=b.right,i.bisector=function(e){return x(1===e.length?function(t,r){return v(e(t),r)}:e)},i.shuffle=function(e,t,r){(i=arguments.length)<3&&(r=e.length,i<2&&(t=0));for(var n,a,i=r-t;i;)a=Math.random()*i--|0,n=e[i+t],e[i+t]=e[a+t],e[a+t]=n;return e},i.permute=function(e,t){for(var r=t.length,n=new Array(r);r--;)n[r]=e[t[r]];return n},i.pairs=function(e){for(var t=0,r=e.length-1,n=e[0],a=new Array(r<0?0:r);t<r;)a[t]=[n,n=e[++t]];return a},i.transpose=function(e){if(!(a=e.length))return[];for(var t=-1,r=i.min(e,_),n=new Array(r);++t<r;)for(var a,o=-1,l=n[t]=new Array(a);++o<a;)l[o]=e[o][t];return n},i.zip=function(){return i.transpose(arguments)},i.keys=function(e){var t=[];for(var r in e)t.push(r);return t},i.values=function(e){var t=[];for(var r in e)t.push(e[r]);return t},i.entries=function(e){var t=[];for(var r in e)t.push({key:r,value:e[r]});return t},i.merge=function(e){for(var t,r,n,a=e.length,i=-1,o=0;++i<a;)o+=e[i].length;for(r=new Array(o);--a>=0;)for(t=(n=e[a]).length;--t>=0;)r[--o]=n[t];return r};var w=Math.abs;function k(e,t){for(var r in t)Object.defineProperty(e.prototype,r,{value:t[r],enumerable:!1})}function T(){this._=Object.create(null)}i.range=function(e,t,r){if(arguments.length<3&&(r=1,arguments.length<2&&(t=e,e=0)),(t-e)/r==1/0)throw new Error("infinite range");var n,a=[],i=function(e){var t=1;for(;e*t%1;)t*=10;return t}(w(r)),o=-1;if(e*=i,t*=i,(r*=i)<0)for(;(n=e+r*++o)>t;)a.push(n/i);else for(;(n=e+r*++o)<t;)a.push(n/i);return a},i.map=function(e,t){var r=new T;if(e instanceof T)e.forEach(function(e,t){r.set(e,t)});else if(Array.isArray(e)){var n,a=-1,i=e.length;if(1===arguments.length)for(;++a<i;)r.set(a,e[a]);else for(;++a<i;)r.set(t.call(e,n=e[a],a),n)}else for(var o in e)r.set(o,e[o]);return r};var M="__proto__",A="\0";function S(e){return(e+="")===M||e[0]===A?A+e:e}function L(e){return(e+="")[0]===A?e.slice(1):e}function O(e){return S(e)in this._}function C(e){return(e=S(e))in this._&&delete this._[e]}function D(){var e=[];for(var t in this._)e.push(L(t));return e}function P(){var e=0;for(var t in this._)++e;return e}function E(){for(var e in this._)return!1;return!0}function R(){this._=Object.create(null)}function I(e){return e}function z(e,t,r){return function(){var n=r.apply(t,arguments);return n===t?e:n}}function N(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var r=0,n=F.length;r<n;++r){var a=F[r]+t;if(a in e)return a}}k(T,{has:O,get:function(e){return this._[S(e)]},set:function(e,t){return this._[S(e)]=t},remove:C,keys:D,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:L(t),value:this._[t]});return e},size:P,empty:E,forEach:function(e){for(var t in this._)e.call(this,L(t),this._[t])}}),i.nest=function(){var e,t,r={},n=[],a=[];function o(a,i,l){if(l>=n.length)return t?t.call(r,i):e?i.sort(e):i;for(var s,c,u,f,d=-1,h=i.length,p=n[l++],y=new T;++d<h;)(f=y.get(s=p(c=i[d])))?f.push(c):y.set(s,[c]);return a?(c=a(),u=function(e,t){c.set(e,o(a,t,l))}):(c={},u=function(e,t){c[e]=o(a,t,l)}),y.forEach(u),c}return r.map=function(e,t){return o(t,e,0)},r.entries=function(e){return function e(t,r){if(r>=n.length)return t;var i=[],o=a[r++];return t.forEach(function(t,n){i.push({key:t,values:e(n,r)})}),o?i.sort(function(e,t){return o(e.key,t.key)}):i}(o(i.map,e,0),0)},r.key=function(e){return n.push(e),r},r.sortKeys=function(e){return a[n.length-1]=e,r},r.sortValues=function(t){return e=t,r},r.rollup=function(e){return t=e,r},r},i.set=function(e){var t=new R;if(e)for(var r=0,n=e.length;r<n;++r)t.add(e[r]);return t},k(R,{has:O,add:function(e){return this._[S(e+="")]=!0,e},remove:C,values:D,size:P,empty:E,forEach:function(e){for(var t in this._)e.call(this,L(t))}}),i.behavior={},i.rebind=function(e,t){for(var r,n=1,a=arguments.length;++n<a;)e[r=arguments[n]]=z(e,t,t[r]);return e};var F=["webkit","ms","moz","Moz","o","O"];function j(){}function B(){}function H(e){var t=[],r=new T;function n(){for(var r,n=t,a=-1,i=n.length;++a<i;)(r=n[a].on)&&r.apply(this,arguments);return e}return n.on=function(n,a){var i,o=r.get(n);return arguments.length<2?o&&o.on:(o&&(o.on=null,t=t.slice(0,i=t.indexOf(o)).concat(t.slice(i+1)),r.remove(n)),a&&t.push(r.set(n,{on:a})),e)},n}function U(){i.event.preventDefault()}function q(){for(var e,t=i.event;e=t.sourceEvent;)t=e;return t}function Y(e){for(var t=new B,r=0,n=arguments.length;++r<n;)t[arguments[r]]=H(t);return t.of=function(r,n){return function(a){try{var o=a.sourceEvent=i.event;a.target=e,i.event=a,t[a.type].apply(r,n)}finally{i.event=o}}},t}i.dispatch=function(){for(var e=new B,t=-1,r=arguments.length;++t<r;)e[arguments[t]]=H(e);return e},B.prototype.on=function(e,t){var r=e.indexOf("."),n="";if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e)return arguments.length<2?this[e].on(n):this[e].on(n,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(n,null);return this}},i.event=null,i.requote=function(e){return e.replace(V,"\\$&")};var V=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,G={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)e[r]=t[r]};function Z(e){return G(e,K),e}var W=function(e,t){return t.querySelector(e)},J=function(e,t){return t.querySelectorAll(e)},X=function(e,t){var r=e.matches||e[N(e,"matchesSelector")];return(X=function(e,t){return r.call(e,t)})(e,t)};"function"==typeof Sizzle&&(W=function(e,t){return Sizzle(e,t)[0]||null},J=Sizzle,X=Sizzle.matchesSelector),i.selection=function(){return i.select(s.documentElement)};var K=i.selection.prototype=[];function $(e){return"function"==typeof e?e:function(){return W(e,this)}}function Q(e){return"function"==typeof e?e:function(){return J(e,this)}}K.select=function(e){var t,r,n,a,i=[];e=$(e);for(var o=-1,l=this.length;++o<l;){i.push(t=[]),t.parentNode=(n=this[o]).parentNode;for(var s=-1,c=n.length;++s<c;)(a=n[s])?(t.push(r=e.call(a,a.__data__,s,o)),r&&"__data__"in a&&(r.__data__=a.__data__)):t.push(null)}return Z(i)},K.selectAll=function(e){var t,r,n=[];e=Q(e);for(var a=-1,i=this.length;++a<i;)for(var o=this[a],s=-1,c=o.length;++s<c;)(r=o[s])&&(n.push(t=l(e.call(r,r.__data__,s,a))),t.parentNode=r);return Z(n)};var ee="http://www.w3.org/1999/xhtml",te={svg:"http://www.w3.org/2000/svg",xhtml:ee,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function re(e,t){return e=i.ns.qualify(e),null==t?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:"function"==typeof t?e.local?function(){var r=t.apply(this,arguments);null==r?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}:function(){var r=t.apply(this,arguments);null==r?this.removeAttribute(e):this.setAttribute(e,r)}:e.local?function(){this.setAttributeNS(e.space,e.local,t)}:function(){this.setAttribute(e,t)}}function ne(e){return e.trim().replace(/\s+/g," ")}function ae(e){return new RegExp("(?:^|\\s+)"+i.requote(e)+"(?:\\s+|$)","g")}function ie(e){return(e+"").trim().split(/^|\s+/)}function oe(e,t){var r=(e=ie(e).map(le)).length;return"function"==typeof t?function(){for(var n=-1,a=t.apply(this,arguments);++n<r;)e[n](this,a)}:function(){for(var n=-1;++n<r;)e[n](this,t)}}function le(e){var t=ae(e);return function(r,n){if(a=r.classList)return n?a.add(e):a.remove(e);var a=r.getAttribute("class")||"";n?(t.lastIndex=0,t.test(a)||r.setAttribute("class",ne(a+" "+e))):r.setAttribute("class",ne(a.replace(t," ")))}}function se(e,t,r){return null==t?function(){this.style.removeProperty(e)}:"function"==typeof t?function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}:function(){this.style.setProperty(e,t,r)}}function ce(e,t){return null==t?function(){delete this[e]}:"function"==typeof t?function(){var r=t.apply(this,arguments);null==r?delete this[e]:this[e]=r}:function(){this[e]=t}}function ue(e){return"function"==typeof e?e:(e=i.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ee&&t.documentElement.namespaceURI===ee?t.createElement(e):t.createElementNS(r,e)}}function fe(){var e=this.parentNode;e&&e.removeChild(this)}function de(e){return{__data__:e}}function he(e){return function(){return X(this,e)}}function pe(e,t){for(var r=0,n=e.length;r<n;r++)for(var a,i=e[r],o=0,l=i.length;o<l;o++)(a=i[o])&&t(a,o,r);return e}function ye(e){return G(e,ve),e}i.ns={prefix:te,qualify:function(e){var t=e.indexOf(":"),r=e;return t>=0&&"xmlns"!==(r=e.slice(0,t))&&(e=e.slice(t+1)),te.hasOwnProperty(r)?{space:te[r],local:e}:e}},K.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var r=this.node();return(e=i.ns.qualify(e)).local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}for(t in e)this.each(re(t,e[t]));return this}return this.each(re(e,t))},K.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var r=this.node(),n=(e=ie(e)).length,a=-1;if(t=r.classList){for(;++a<n;)if(!t.contains(e[a]))return!1}else for(t=r.getAttribute("class");++a<n;)if(!ae(e[a]).test(t))return!1;return!0}for(t in e)this.each(oe(t,e[t]));return this}return this.each(oe(e,t))},K.style=function(e,t,r){var n=arguments.length;if(n<3){if("string"!=typeof e){for(r in n<2&&(t=""),e)this.each(se(r,e[r],t));return this}if(n<2){var a=this.node();return u(a).getComputedStyle(a,null).getPropertyValue(e)}r=""}return this.each(se(e,t,r))},K.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(ce(t,e[t]));return this}return this.each(ce(e,t))},K.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},K.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},K.append=function(e){return e=ue(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},K.insert=function(e,t){return e=ue(e),t=$(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},K.remove=function(){return this.each(fe)},K.data=function(e,t){var r,n,a=-1,i=this.length;if(!arguments.length){for(e=new Array(i=(r=this[0]).length);++a<i;)(n=r[a])&&(e[a]=n.__data__);return e}function o(e,r){var n,a,i,o=e.length,u=r.length,f=Math.min(o,u),d=new Array(u),h=new Array(u),p=new Array(o);if(t){var y,v=new T,g=new Array(o);for(n=-1;++n<o;)(a=e[n])&&(v.has(y=t.call(a,a.__data__,n))?p[n]=a:v.set(y,a),g[n]=y);for(n=-1;++n<u;)(a=v.get(y=t.call(r,i=r[n],n)))?!0!==a&&(d[n]=a,a.__data__=i):h[n]=de(i),v.set(y,!0);for(n=-1;++n<o;)n in g&&!0!==v.get(g[n])&&(p[n]=e[n])}else{for(n=-1;++n<f;)a=e[n],i=r[n],a?(a.__data__=i,d[n]=a):h[n]=de(i);for(;n<u;++n)h[n]=de(r[n]);for(;n<o;++n)p[n]=e[n]}h.update=d,h.parentNode=d.parentNode=p.parentNode=e.parentNode,l.push(h),s.push(d),c.push(p)}var l=ye([]),s=Z([]),c=Z([]);if("function"==typeof e)for(;++a<i;)o(r=this[a],e.call(r,r.parentNode.__data__,a));else for(;++a<i;)o(r=this[a],e);return s.enter=function(){return l},s.exit=function(){return c},s},K.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},K.filter=function(e){var t,r,n,a=[];"function"!=typeof e&&(e=he(e));for(var i=0,o=this.length;i<o;i++){a.push(t=[]),t.parentNode=(r=this[i]).parentNode;for(var l=0,s=r.length;l<s;l++)(n=r[l])&&e.call(n,n.__data__,l,i)&&t.push(n)}return Z(a)},K.order=function(){for(var e=-1,t=this.length;++e<t;)for(var r,n=this[e],a=n.length-1,i=n[a];--a>=0;)(r=n[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},K.sort=function(e){e=function(e){arguments.length||(e=v);return function(t,r){return t&&r?e(t.__data__,r.__data__):!t-!r}}.apply(this,arguments);for(var t=-1,r=this.length;++t<r;)this[t].sort(e);return this.order()},K.each=function(e){return pe(this,function(t,r,n){e.call(t,t.__data__,r,n)})},K.call=function(e){var t=l(arguments);return e.apply(t[0]=this,t),this},K.empty=function(){return!this.node()},K.node=function(){for(var e=0,t=this.length;e<t;e++)for(var r=this[e],n=0,a=r.length;n<a;n++){var i=r[n];if(i)return i}return null},K.size=function(){var e=0;return pe(this,function(){++e}),e};var ve=[];function ge(e,t,r){var n="__on"+e,a=e.indexOf("."),o=xe;a>0&&(e=e.slice(0,a));var s=me.get(e);function c(){var t=this[n];t&&(this.removeEventListener(e,t,t.$),delete this[n])}return s&&(e=s,o=be),a?t?function(){var a=o(t,l(arguments));c.call(this),this.addEventListener(e,this[n]=a,a.$=r),a._=t}:c:t?j:function(){var t,r=new RegExp("^__on([^.]+)"+i.requote(e)+"$");for(var n in this)if(t=n.match(r)){var a=this[n];this.removeEventListener(t[1],a,a.$),delete this[n]}}}i.selection.enter=ye,i.selection.enter.prototype=ve,ve.append=K.append,ve.empty=K.empty,ve.node=K.node,ve.call=K.call,ve.size=K.size,ve.select=function(e){for(var t,r,n,a,i,o=[],l=-1,s=this.length;++l<s;){n=(a=this[l]).update,o.push(t=[]),t.parentNode=a.parentNode;for(var c=-1,u=a.length;++c<u;)(i=a[c])?(t.push(n[c]=r=e.call(a.parentNode,i.__data__,c,l)),r.__data__=i.__data__):t.push(null)}return Z(o)},ve.insert=function(e,t){var r,n,a;return arguments.length<2&&(r=this,t=function(e,t,i){var o,l=r[i].update,s=l.length;for(i!=a&&(a=i,n=0),t>=n&&(n=t+1);!(o=l[n])&&++n<s;);return o}),K.insert.call(this,e,t)},i.select=function(e){var t;return"string"==typeof e?(t=[W(e,s)]).parentNode=s.documentElement:(t=[e]).parentNode=c(e),Z([t])},i.selectAll=function(e){var t;return"string"==typeof e?(t=l(J(e,s))).parentNode=s.documentElement:(t=l(e)).parentNode=null,Z([t])},K.on=function(e,t,r){var n=arguments.length;if(n<3){if("string"!=typeof e){for(r in n<2&&(t=!1),e)this.each(ge(r,e[r],t));return this}if(n<2)return(n=this.node()["__on"+e])&&n._;r=!1}return this.each(ge(e,t,r))};var me=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});function xe(e,t){return function(r){var n=i.event;i.event=r,t[0]=this.__data__;try{e.apply(this,t)}finally{i.event=n}}}function be(e,t){var r=xe(e,t);return function(e){var t=e.relatedTarget;t&&(t===this||8&t.compareDocumentPosition(this))||r.call(this,e)}}s&&me.forEach(function(e){"on"+e in s&&me.remove(e)});var _e,we=0;function ke(e){var t=".dragsuppress-"+ ++we,r="click"+t,n=i.select(u(e)).on("touchmove"+t,U).on("dragstart"+t,U).on("selectstart"+t,U);if(null==_e&&(_e=!("onselectstart"in e)&&N(e.style,"userSelect")),_e){var a=c(e).style,o=a[_e];a[_e]="none"}return function(e){if(n.on(t,null),_e&&(a[_e]=o),e){var i=function(){n.on(r,null)};n.on(r,function(){U(),i()},!0),setTimeout(i,0)}}}i.mouse=function(e){return Me(e,q())};var Te=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Me(e,t){t.changedTouches&&(t=t.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var n=r.createSVGPoint();if(Te<0){var a=u(e);if(a.scrollX||a.scrollY){var o=(r=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();Te=!(o.f||o.e),r.remove()}}return Te?(n.x=t.pageX,n.y=t.pageY):(n.x=t.clientX,n.y=t.clientY),[(n=n.matrixTransform(e.getScreenCTM().inverse())).x,n.y]}var l=e.getBoundingClientRect();return[t.clientX-l.left-e.clientLeft,t.clientY-l.top-e.clientTop]}function Ae(){return i.event.changedTouches[0].identifier}i.touch=function(e,t,r){if(arguments.length<3&&(r=t,t=q().changedTouches),t)for(var n,a=0,i=t.length;a<i;++a)if((n=t[a]).identifier===r)return Me(e,n)},i.behavior.drag=function(){var e=Y(a,"drag","dragstart","dragend"),t=null,r=o(j,i.mouse,u,"mousemove","mouseup"),n=o(Ae,i.touch,I,"touchmove","touchend");function a(){this.on("mousedown.drag",r).on("touchstart.drag",n)}function o(r,n,a,o,l){return function(){var s,c=i.event.target.correspondingElement||i.event.target,u=this.parentNode,f=e.of(this,arguments),d=0,h=r(),p=".drag"+(null==h?"":"-"+h),y=i.select(a(c)).on(o+p,function(){var e,t,r=n(u,h);if(!r)return;e=r[0]-g[0],t=r[1]-g[1],d|=e|t,g=r,f({type:"drag",x:r[0]+s[0],y:r[1]+s[1],dx:e,dy:t})}).on(l+p,function(){if(!n(u,h))return;y.on(o+p,null).on(l+p,null),v(d),f({type:"dragend"})}),v=ke(c),g=n(u,h);s=t?[(s=t.apply(this,arguments)).x-g[0],s.y-g[1]]:[0,0],f({type:"dragstart"})}}return a.origin=function(e){return arguments.length?(t=e,a):t},i.rebind(a,e,"on")},i.touches=function(e,t){return arguments.length<2&&(t=q().touches),t?l(t).map(function(t){var r=Me(e,t);return r.identifier=t.identifier,r}):[]};var Se=1e-6,Le=Se*Se,Oe=Math.PI,Ce=2*Oe,De=Ce-Se,Pe=Oe/2,Ee=Oe/180,Re=180/Oe;function Ie(e){return e>1?Pe:e<-1?-Pe:Math.asin(e)}function ze(e){return((e=Math.exp(e))+1/e)/2}var Ne=Math.SQRT2;i.interpolateZoom=function(e,t){var r,n,a=e[0],i=e[1],o=e[2],l=t[0],s=t[1],c=t[2],u=l-a,f=s-i,d=u*u+f*f;if(d<Le)n=Math.log(c/o)/Ne,r=function(e){return[a+e*u,i+e*f,o*Math.exp(Ne*e*n)]};else{var h=Math.sqrt(d),p=(c*c-o*o+4*d)/(2*o*2*h),y=(c*c-o*o-4*d)/(2*c*2*h),v=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(y*y+1)-y);n=(g-v)/Ne,r=function(e){var t,r=e*n,l=ze(v),s=o/(2*h)*(l*(t=Ne*r+v,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[a+s*u,i+s*f,o*l/ze(Ne*r+v)]}}return r.duration=1e3*n,r},i.behavior.zoom=function(){var e,t,r,n,a,o,l,c,f,d={x:0,y:0,k:1},h=[960,500],p=Be,y=250,v=0,g="mousedown.zoom",m="mousemove.zoom",x="mouseup.zoom",b="touchstart.zoom",_=Y(w,"zoomstart","zoom","zoomend");function w(e){e.on(g,D).on(je+".zoom",E).on("dblclick.zoom",R).on(b,P)}function k(e){return[(e[0]-d.x)/d.k,(e[1]-d.y)/d.k]}function T(e){d.k=Math.max(p[0],Math.min(p[1],e))}function M(e,t){t=function(e){return[e[0]*d.k+d.x,e[1]*d.k+d.y]}(t),d.x+=e[0]-t[0],d.y+=e[1]-t[1]}function A(e,r,n,a){e.__chart__={x:d.x,y:d.y,k:d.k},T(Math.pow(2,a)),M(t=r,n),e=i.select(e),y>0&&(e=e.transition().duration(y)),e.call(w.event)}function S(){l&&l.domain(o.range().map(function(e){return(e-d.x)/d.k}).map(o.invert)),f&&f.domain(c.range().map(function(e){return(e-d.y)/d.k}).map(c.invert))}function L(e){v++||e({type:"zoomstart"})}function O(e){S(),e({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function C(e){--v||(e({type:"zoomend"}),t=null)}function D(){var e=this,t=_.of(e,arguments),r=0,n=i.select(u(e)).on(m,function(){r=1,M(i.mouse(e),a),O(t)}).on(x,function(){n.on(m,null).on(x,null),o(r),C(t)}),a=k(i.mouse(e)),o=ke(e);Na.call(e),L(t)}function P(){var e,t=this,r=_.of(t,arguments),n={},o=0,l=".zoom-"+i.event.changedTouches[0].identifier,s="touchmove"+l,c="touchend"+l,u=[],f=i.select(t),h=ke(t);function p(){var r=i.touches(t);return e=d.k,r.forEach(function(e){e.identifier in n&&(n[e.identifier]=k(e))}),r}function y(){var e=i.event.target;i.select(e).on(s,v).on(c,m),u.push(e);for(var r=i.event.changedTouches,l=0,f=r.length;l<f;++l)n[r[l].identifier]=null;var h=p(),y=Date.now();if(1===h.length){if(y-a<500){var g=h[0];A(t,g,n[g.identifier],Math.floor(Math.log(d.k)/Math.LN2)+1),U()}a=y}else if(h.length>1){g=h[0];var x=h[1],b=g[0]-x[0],_=g[1]-x[1];o=b*b+_*_}}function v(){var l,s,c,u,f=i.touches(t);Na.call(t);for(var d=0,h=f.length;d<h;++d,u=null)if(c=f[d],u=n[c.identifier]){if(s)break;l=c,s=u}if(u){var p=(p=c[0]-l[0])*p+(p=c[1]-l[1])*p,y=o&&Math.sqrt(p/o);l=[(l[0]+c[0])/2,(l[1]+c[1])/2],s=[(s[0]+u[0])/2,(s[1]+u[1])/2],T(y*e)}a=null,M(l,s),O(r)}function m(){if(i.event.touches.length){for(var e=i.event.changedTouches,t=0,a=e.length;t<a;++t)delete n[e[t].identifier];for(var o in n)return void p()}i.selectAll(u).on(l,null),f.on(g,D).on(b,P),h(),C(r)}y(),L(r),f.on(g,null).on(b,y)}function E(){var a=_.of(this,arguments);n?clearTimeout(n):(Na.call(this),e=k(t=r||i.mouse(this)),L(a)),n=setTimeout(function(){n=null,C(a)},50),U(),T(Math.pow(2,.002*Fe())*d.k),M(t,e),O(a)}function R(){var e=i.mouse(this),t=Math.log(d.k)/Math.LN2;A(this,e,k(e),i.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}return je||(je="onwheel"in s?(Fe=function(){return-i.event.deltaY*(i.event.deltaMode?120:1)},"wheel"):"onmousewheel"in s?(Fe=function(){return i.event.wheelDelta},"mousewheel"):(Fe=function(){return-i.event.detail},"MozMousePixelScroll")),w.event=function(e){e.each(function(){var e=_.of(this,arguments),r=d;Ba?i.select(this).transition().each("start.zoom",function(){d=this.__chart__||{x:0,y:0,k:1},L(e)}).tween("zoom:zoom",function(){var n=h[0],a=h[1],o=t?t[0]:n/2,l=t?t[1]:a/2,s=i.interpolateZoom([(o-d.x)/d.k,(l-d.y)/d.k,n/d.k],[(o-r.x)/r.k,(l-r.y)/r.k,n/r.k]);return function(t){var r=s(t),a=n/r[2];this.__chart__=d={x:o-r[0]*a,y:l-r[1]*a,k:a},O(e)}}).each("interrupt.zoom",function(){C(e)}).each("end.zoom",function(){C(e)}):(this.__chart__=d,L(e),O(e),C(e))})},w.translate=function(e){return arguments.length?(d={x:+e[0],y:+e[1],k:d.k},S(),w):[d.x,d.y]},w.scale=function(e){return arguments.length?(d={x:d.x,y:d.y,k:null},T(+e),S(),w):d.k},w.scaleExtent=function(e){return arguments.length?(p=null==e?Be:[+e[0],+e[1]],w):p},w.center=function(e){return arguments.length?(r=e&&[+e[0],+e[1]],w):r},w.size=function(e){return arguments.length?(h=e&&[+e[0],+e[1]],w):h},w.duration=function(e){return arguments.length?(y=+e,w):y},w.x=function(e){return arguments.length?(l=e,o=e.copy(),d={x:0,y:0,k:1},w):l},w.y=function(e){return arguments.length?(f=e,c=e.copy(),d={x:0,y:0,k:1},w):f},i.rebind(w,_,"on")};var Fe,je,Be=[0,1/0];function He(){}function Ue(e,t,r){return this instanceof Ue?(this.h=+e,this.s=+t,void(this.l=+r)):arguments.length<2?e instanceof Ue?new Ue(e.h,e.s,e.l):ut(""+e,ft,Ue):new Ue(e,t,r)}i.color=He,He.prototype.toString=function(){return this.rgb()+""},i.hsl=Ue;var qe=Ue.prototype=new He;function Ye(e,t,r){var n,a;function i(e){return Math.round(255*function(e){return e>360?e-=360:e<0&&(e+=360),e<60?n+(a-n)*e/60:e<180?a:e<240?n+(a-n)*(240-e)/60:n}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,n=2*(r=r<0?0:r>1?1:r)-(a=r<=.5?r*(1+t):r+t-r*t),new it(i(e+120),i(e),i(e-120))}function Ve(e,t,r){return this instanceof Ve?(this.h=+e,this.c=+t,void(this.l=+r)):arguments.length<2?e instanceof Ve?new Ve(e.h,e.c,e.l):tt(e instanceof We?e.l:(e=dt((e=i.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ve(e,t,r)}qe.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ue(this.h,this.s,this.l/e)},qe.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ue(this.h,this.s,e*this.l)},qe.rgb=function(){return Ye(this.h,this.s,this.l)},i.hcl=Ve;var Ge=Ve.prototype=new He;function Ze(e,t,r){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new We(r,Math.cos(e*=Ee)*t,Math.sin(e)*t)}function We(e,t,r){return this instanceof We?(this.l=+e,this.a=+t,void(this.b=+r)):arguments.length<2?e instanceof We?new We(e.l,e.a,e.b):e instanceof Ve?Ze(e.h,e.c,e.l):dt((e=it(e)).r,e.g,e.b):new We(e,t,r)}Ge.brighter=function(e){return new Ve(this.h,this.c,Math.min(100,this.l+Je*(arguments.length?e:1)))},Ge.darker=function(e){return new Ve(this.h,this.c,Math.max(0,this.l-Je*(arguments.length?e:1)))},Ge.rgb=function(){return Ze(this.h,this.c,this.l).rgb()},i.lab=We;var Je=18,Xe=.95047,Ke=1,$e=1.08883,Qe=We.prototype=new He;function et(e,t,r){var n=(e+16)/116,a=n+t/500,i=n-r/200;return new it(at(3.2404542*(a=rt(a)*Xe)-1.5371385*(n=rt(n)*Ke)-.4985314*(i=rt(i)*$e)),at(-.969266*a+1.8760108*n+.041556*i),at(.0556434*a-.2040259*n+1.0572252*i))}function tt(e,t,r){return e>0?new Ve(Math.atan2(r,t)*Re,Math.sqrt(t*t+r*r),e):new Ve(NaN,NaN,e)}function rt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function nt(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function at(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function it(e,t,r){return this instanceof it?(this.r=~~e,this.g=~~t,void(this.b=~~r)):arguments.length<2?e instanceof it?new it(e.r,e.g,e.b):ut(""+e,it,Ye):new it(e,t,r)}function ot(e){return new it(e>>16,e>>8&255,255&e)}function lt(e){return ot(e)+""}Qe.brighter=function(e){return new We(Math.min(100,this.l+Je*(arguments.length?e:1)),this.a,this.b)},Qe.darker=function(e){return new We(Math.max(0,this.l-Je*(arguments.length?e:1)),this.a,this.b)},Qe.rgb=function(){return et(this.l,this.a,this.b)},i.rgb=it;var st=it.prototype=new He;function ct(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ut(e,t,r){var n,a,i,o=0,l=0,s=0;if(n=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=n[2].split(","),n[1]){case"hsl":return r(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(pt(a[0]),pt(a[1]),pt(a[2]))}return(i=yt.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&i)>>4,o|=o>>4,l=240&i,l|=l>>4,s=15&i,s|=s<<4):7===e.length&&(o=(16711680&i)>>16,l=(65280&i)>>8,s=255&i)),t(o,l,s))}function ft(e,t,r){var n,a,i=Math.min(e/=255,t/=255,r/=255),o=Math.max(e,t,r),l=o-i,s=(o+i)/2;return l?(a=s<.5?l/(o+i):l/(2-o-i),n=e==o?(t-r)/l+(t<r?6:0):t==o?(r-e)/l+2:(e-t)/l+4,n*=60):(n=NaN,a=s>0&&s<1?0:n),new Ue(n,a,s)}function dt(e,t,r){var n=nt((.4124564*(e=ht(e))+.3575761*(t=ht(t))+.1804375*(r=ht(r)))/Xe),a=nt((.2126729*e+.7151522*t+.072175*r)/Ke);return We(116*a-16,500*(n-a),200*(a-nt((.0193339*e+.119192*t+.9503041*r)/$e)))}function ht(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}st.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,r=this.g,n=this.b,a=30;return t||r||n?(t&&t<a&&(t=a),r&&r<a&&(r=a),n&&n<a&&(n=a),new it(Math.min(255,t/e),Math.min(255,r/e),Math.min(255,n/e))):new it(a,a,a)},st.darker=function(e){return new it((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},st.hsl=function(){return ft(this.r,this.g,this.b)},st.toString=function(){return"#"+ct(this.r)+ct(this.g)+ct(this.b)};var yt=i.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function vt(e){return"function"==typeof e?e:function(){return e}}function gt(e){return function(t,r,n){return 2===arguments.length&&"function"==typeof r&&(n=r,r=null),mt(t,r,e,n)}}function mt(e,t,r,n){var a={},o=i.dispatch("beforesend","progress","load","error"),s={},c=new XMLHttpRequest,u=null;function f(){var e,t=c.status;if(!t&&function(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}(c)||t>=200&&t<300||304===t){try{e=r.call(a,c)}catch(e){return void o.error.call(a,e)}o.load.call(a,e)}else o.error.call(a,c)}return!self.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(e)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(e){var t=i.event;i.event=e;try{o.progress.call(a,c)}finally{i.event=t}},a.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",a)},a.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",a):t},a.responseType=function(e){return arguments.length?(u=e,a):u},a.response=function(e){return r=e,a},["get","post"].forEach(function(e){a[e]=function(){return a.send.apply(a,[e].concat(l(arguments)))}}),a.send=function(r,n,i){if(2===arguments.length&&"function"==typeof n&&(i=n,n=null),c.open(r,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),c.setRequestHeader)for(var l in s)c.setRequestHeader(l,s[l]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=u&&(c.responseType=u),null!=i&&a.on("error",i).on("load",function(e){i(null,e)}),o.beforesend.call(a,c),c.send(null==n?null:n),a},a.abort=function(){return c.abort(),a},i.rebind(a,o,"on"),null==n?a:a.get(function(e){return 1===e.length?function(t,r){e(null==t?r:null)}:e}(n))}yt.forEach(function(e,t){yt.set(e,ot(t))}),i.functor=vt,i.xhr=gt(I),i.dsv=function(e,t){var r=new RegExp('["'+e+"\n]"),n=e.charCodeAt(0);function a(e,r,n){arguments.length<3&&(n=r,r=null);var a=mt(e,t,null==r?i:o(r),n);return a.row=function(e){return arguments.length?a.response(null==(r=e)?i:o(e)):r},a}function i(e){return a.parse(e.responseText)}function o(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return r.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var r;return a.parseRows(e,function(e,n){if(r)return r(e,n-1);var a=function(t){for(var r={},n=e.length,a=0;a<n;++a)r[e[a]]=t[a];return r};r=t?function(e,r){return t(a(e),r)}:a})},a.parseRows=function(e,t){var r,a,i={},o={},l=[],s=e.length,c=0,u=0;function f(){if(c>=s)return o;if(a)return a=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var r=t;r++<s;)if(34===e.charCodeAt(r)){if(34!==e.charCodeAt(r+1))break;++r}return c=r+2,13===(l=e.charCodeAt(r+1))?(a=!0,10===e.charCodeAt(r+2)&&++c):10===l&&(a=!0),e.slice(t+1,r).replace(/""/g,'"')}for(;c<s;){var l,u=1;if(10===(l=e.charCodeAt(c++)))a=!0;else if(13===l)a=!0,10===e.charCodeAt(c)&&(++c,++u);else if(l!==n)continue;return e.slice(t,c-u)}return e.slice(t)}for(;(r=f())!==o;){for(var d=[];r!==i&&r!==o;)d.push(r),r=f();t&&null==(d=t(d,u++))||l.push(d)}return l},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var r=new R,n=[];return t.forEach(function(e){for(var t in e)r.has(t)||n.push(r.add(t))}),[n.map(s).join(e)].concat(t.map(function(t){return n.map(function(e){return s(t[e])}).join(e)})).join("\n")},a.formatRows=function(e){return e.map(l).join("\n")},a},i.csv=i.dsv(",","text/csv"),i.tsv=i.dsv("\t","text/tab-separated-values");var xt,bt,_t,wt,kt=this[N(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function Tt(e,t,r){var n=arguments.length;n<2&&(t=0),n<3&&(r=Date.now());var a={c:e,t:r+t,n:null};return bt?bt.n=a:xt=a,bt=a,_t||(wt=clearTimeout(wt),_t=1,kt(Mt)),a}function Mt(){var e=At(),t=St()-e;t>24?(isFinite(t)&&(clearTimeout(wt),wt=setTimeout(Mt,t)),_t=0):(_t=1,kt(Mt))}function At(){for(var e=Date.now(),t=xt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function St(){for(var e,t=xt,r=1/0;t;)t.c?(t.t<r&&(r=t.t),t=(e=t).n):t=e?e.n=t.n:xt=t.n;return bt=e,r}function Lt(e){return e[0]}function Ot(e){return e[1]}function Ct(e){for(var t,r,n,a=e.length,i=[0,1],o=2,l=2;l<a;l++){for(;o>1&&(t=e[i[o-2]],r=e[i[o-1]],n=e[l],(r[0]-t[0])*(n[1]-t[1])-(r[1]-t[1])*(n[0]-t[0])<=0);)--o;i[o++]=l}return i.slice(0,o)}function Dt(e,t){return e[0]-t[0]||e[1]-t[1]}i.timer=function(){Tt.apply(this,arguments)},i.timer.flush=function(){At(),St()},i.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},i.geom={},i.geom.hull=function(e){var t=Lt,r=Ot;if(arguments.length)return n(e);function n(e){if(e.length<3)return[];var n,a=vt(t),i=vt(r),o=e.length,l=[],s=[];for(n=0;n<o;n++)l.push([+a.call(this,e[n],n),+i.call(this,e[n],n),n]);for(l.sort(Dt),n=0;n<o;n++)s.push([l[n][0],-l[n][1]]);var c=Ct(l),u=Ct(s),f=u[0]===c[0],d=u[u.length-1]===c[c.length-1],h=[];for(n=c.length-1;n>=0;--n)h.push(e[l[c[n]][2]]);for(n=+f;n<u.length-d;++n)h.push(e[l[u[n]][2]]);return h}return n.x=function(e){return arguments.length?(t=e,n):t},n.y=function(e){return arguments.length?(r=e,n):r},n},i.geom.polygon=function(e){return G(e,Pt),e};var Pt=i.geom.polygon.prototype=[];function Et(e,t,r){return(r[0]-t[0])*(e[1]-t[1])<(r[1]-t[1])*(e[0]-t[0])}function Rt(e,t,r,n){var a=e[0],i=r[0],o=t[0]-a,l=n[0]-i,s=e[1],c=r[1],u=t[1]-s,f=n[1]-c,d=(l*(s-c)-f*(a-i))/(f*o-l*u);return[a+d*o,s+d*u]}function It(e){var t=e[0],r=e[e.length-1];return!(t[0]-r[0]||t[1]-r[1])}Pt.area=function(){for(var e,t=-1,r=this.length,n=this[r-1],a=0;++t<r;)e=n,n=this[t],a+=e[1]*n[0]-e[0]*n[1];return.5*a},Pt.centroid=function(e){var t,r,n=-1,a=this.length,i=0,o=0,l=this[a-1];for(arguments.length||(e=-1/(6*this.area()));++n<a;)t=l,l=this[n],r=t[0]*l[1]-l[0]*t[1],i+=(t[0]+l[0])*r,o+=(t[1]+l[1])*r;return[i*e,o*e]},Pt.clip=function(e){for(var t,r,n,a,i,o,l=It(e),s=-1,c=this.length-It(this),u=this[c-1];++s<c;){for(t=e.slice(),e.length=0,a=this[s],i=t[(n=t.length-l)-1],r=-1;++r<n;)Et(o=t[r],u,a)?(Et(i,u,a)||e.push(Rt(i,o,u,a)),e.push(o)):Et(i,u,a)&&e.push(Rt(i,o,u,a)),i=o;l&&e.push(e[0]),u=a}return e};var zt,Nt,Ft,jt,Bt,Ht=[],Ut=[];function qt(){lr(this),this.edge=this.site=this.circle=null}function Yt(e){var t=Ht.pop()||new qt;return t.site=e,t}function Vt(e){er(e),Ft.remove(e),Ht.push(e),lr(e)}function Gt(e){var t=e.circle,r=t.x,n=t.cy,a={x:r,y:n},i=e.P,o=e.N,l=[e];Vt(e);for(var s=i;s.circle&&w(r-s.circle.x)<Se&&w(n-s.circle.cy)<Se;)i=s.P,l.unshift(s),Vt(s),s=i;l.unshift(s),er(s);for(var c=o;c.circle&&w(r-c.circle.x)<Se&&w(n-c.circle.cy)<Se;)o=c.N,l.push(c),Vt(c),c=o;l.push(c),er(c);var u,f=l.length;for(u=1;u<f;++u)c=l[u],s=l[u-1],ar(c.edge,s.site,c.site,a);s=l[0],(c=l[f-1]).edge=nr(s.site,c.site,null,a),Qt(s),Qt(c)}function Zt(e){for(var t,r,n,a,i=e.x,o=e.y,l=Ft._;l;)if((n=Wt(l,o)-i)>Se)l=l.L;else{if(!((a=i-Jt(l,o))>Se)){n>-Se?(t=l.P,r=l):a>-Se?(t=l,r=l.N):t=r=l;break}if(!l.R){t=l;break}l=l.R}var s=Yt(e);if(Ft.insert(t,s),t||r){if(t===r)return er(t),r=Yt(t.site),Ft.insert(s,r),s.edge=r.edge=nr(t.site,s.site),Qt(t),void Qt(r);if(r){er(t),er(r);var c=t.site,u=c.x,f=c.y,d=e.x-u,h=e.y-f,p=r.site,y=p.x-u,v=p.y-f,g=2*(d*v-h*y),m=d*d+h*h,x=y*y+v*v,b={x:(v*m-h*x)/g+u,y:(d*x-y*m)/g+f};ar(r.edge,c,p,b),s.edge=nr(c,e,null,b),r.edge=nr(e,p,null,b),Qt(t),Qt(r)}else s.edge=nr(t.site,s.site)}}function Wt(e,t){var r=e.site,n=r.x,a=r.y,i=a-t;if(!i)return n;var o=e.P;if(!o)return-1/0;var l=(r=o.site).x,s=r.y,c=s-t;if(!c)return l;var u=l-n,f=1/i-1/c,d=u/c;return f?(-d+Math.sqrt(d*d-2*f*(u*u/(-2*c)-s+c/2+a-i/2)))/f+n:(n+l)/2}function Jt(e,t){var r=e.N;if(r)return Wt(r,t);var n=e.site;return n.y===t?n.x:1/0}function Xt(e){this.site=e,this.edges=[]}function Kt(e,t){return t.angle-e.angle}function $t(){lr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qt(e){var t=e.P,r=e.N;if(t&&r){var n=t.site,a=e.site,i=r.site;if(n!==i){var o=a.x,l=a.y,s=n.x-o,c=n.y-l,u=i.x-o,f=2*(s*(v=i.y-l)-c*u);if(!(f>=-Le)){var d=s*s+c*c,h=u*u+v*v,p=(v*d-c*h)/f,y=(s*h-u*d)/f,v=y+l,g=Ut.pop()||new $t;g.arc=e,g.site=a,g.x=p+o,g.y=v+Math.sqrt(p*p+y*y),g.cy=v,e.circle=g;for(var m=null,x=Bt._;x;)if(g.y<x.y||g.y===x.y&&g.x<=x.x){if(!x.L){m=x.P;break}x=x.L}else{if(!x.R){m=x;break}x=x.R}Bt.insert(m,g),m||(jt=g)}}}}function er(e){var t=e.circle;t&&(t.P||(jt=t.N),Bt.remove(t),Ut.push(t),lr(t),e.circle=null)}function tr(e,t){var r=e.b;if(r)return!0;var n,a,i=e.a,o=t[0][0],l=t[1][0],s=t[0][1],c=t[1][1],u=e.l,f=e.r,d=u.x,h=u.y,p=f.x,y=f.y,v=(d+p)/2,g=(h+y)/2;if(y===h){if(v<o||v>=l)return;if(d>p){if(i){if(i.y>=c)return}else i={x:v,y:s};r={x:v,y:c}}else{if(i){if(i.y<s)return}else i={x:v,y:c};r={x:v,y:s}}}else if(a=g-(n=(d-p)/(y-h))*v,n<-1||n>1)if(d>p){if(i){if(i.y>=c)return}else i={x:(s-a)/n,y:s};r={x:(c-a)/n,y:c}}else{if(i){if(i.y<s)return}else i={x:(c-a)/n,y:c};r={x:(s-a)/n,y:s}}else if(h<y){if(i){if(i.x>=l)return}else i={x:o,y:n*o+a};r={x:l,y:n*l+a}}else{if(i){if(i.x<o)return}else i={x:l,y:n*l+a};r={x:o,y:n*o+a}}return e.a=i,e.b=r,!0}function rr(e,t){this.l=e,this.r=t,this.a=this.b=null}function nr(e,t,r,n){var a=new rr(e,t);return zt.push(a),r&&ar(a,e,t,r),n&&ar(a,t,e,n),Nt[e.i].edges.push(new ir(a,e,t)),Nt[t.i].edges.push(new ir(a,t,e)),a}function ar(e,t,r,n){e.a||e.b?e.l===r?e.b=n:e.a=n:(e.a=n,e.l=t,e.r=r)}function ir(e,t,r){var n=e.a,a=e.b;this.edge=e,this.site=t,this.angle=r?Math.atan2(r.y-t.y,r.x-t.x):e.l===t?Math.atan2(a.x-n.x,n.y-a.y):Math.atan2(n.x-a.x,a.y-n.y)}function or(){this._=null}function lr(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function sr(e,t){var r=t,n=t.R,a=r.U;a?a.L===r?a.L=n:a.R=n:e._=n,n.U=a,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function cr(e,t){var r=t,n=t.L,a=r.U;a?a.L===r?a.L=n:a.R=n:e._=n,n.U=a,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function ur(e){for(;e.L;)e=e.L;return e}function fr(e,t){var r,n,a,i=e.sort(dr).pop();for(zt=[],Nt=new Array(e.length),Ft=new or,Bt=new or;;)if(a=jt,i&&(!a||i.y<a.y||i.y===a.y&&i.x<a.x))i.x===r&&i.y===n||(Nt[i.i]=new Xt(i),Zt(i),r=i.x,n=i.y),i=e.pop();else{if(!a)break;Gt(a.arc)}t&&(function(e){for(var t,r,n,a,i,o=zt,l=(r=e[0][0],n=e[0][1],a=e[1][0],i=e[1][1],function(e){var t,o=e.a,l=e.b,s=o.x,c=o.y,u=0,f=1,d=l.x-s,h=l.y-c;if(t=r-s,d||!(t>0)){if(t/=d,d<0){if(t<u)return;t<f&&(f=t)}else if(d>0){if(t>f)return;t>u&&(u=t)}if(t=a-s,d||!(t<0)){if(t/=d,d<0){if(t>f)return;t>u&&(u=t)}else if(d>0){if(t<u)return;t<f&&(f=t)}if(t=n-c,h||!(t>0)){if(t/=h,h<0){if(t<u)return;t<f&&(f=t)}else if(h>0){if(t>f)return;t>u&&(u=t)}if(t=i-c,h||!(t<0)){if(t/=h,h<0){if(t>f)return;t>u&&(u=t)}else if(h>0){if(t<u)return;t<f&&(f=t)}return u>0&&(e.a={x:s+u*d,y:c+u*h}),f<1&&(e.b={x:s+f*d,y:c+f*h}),e}}}}}),s=o.length;s--;)(!tr(t=o[s],e)||!l(t)||w(t.a.x-t.b.x)<Se&&w(t.a.y-t.b.y)<Se)&&(t.a=t.b=null,o.splice(s,1))}(t),function(e){for(var t,r,n,a,i,o,l,s,c,u,f=e[0][0],d=e[1][0],h=e[0][1],p=e[1][1],y=Nt,v=y.length;v--;)if((i=y[v])&&i.prepare())for(s=(l=i.edges).length,o=0;o<s;)n=(u=l[o].end()).x,a=u.y,t=(c=l[++o%s].start()).x,r=c.y,(w(n-t)>Se||w(a-r)>Se)&&(l.splice(o,0,new ir((g=i.site,m=u,x=w(n-f)<Se&&p-a>Se?{x:f,y:w(t-f)<Se?r:p}:w(a-p)<Se&&d-n>Se?{x:w(r-p)<Se?t:d,y:p}:w(n-d)<Se&&a-h>Se?{x:d,y:w(t-d)<Se?r:h}:w(a-h)<Se&&n-f>Se?{x:w(r-h)<Se?t:f,y:h}:null,b=void 0,b=new rr(g,null),b.a=m,b.b=x,zt.push(b),b),i.site,null)),++s);var g,m,x,b}(t));var o={cells:Nt,edges:zt};return Ft=Bt=zt=Nt=null,o}function dr(e,t){return t.y-e.y||t.x-e.x}Xt.prototype.prepare=function(){for(var e,t=this.edges,r=t.length;r--;)(e=t[r].edge).b&&e.a||t.splice(r,1);return t.sort(Kt),t.length},ir.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}},or.prototype={insert:function(e,t){var r,n,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;r=e}else this._?(e=ur(this._),t.P=null,t.N=e,e.P=e.L=t,r=e):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,e=t;r&&r.C;)r===(n=r.U).L?(a=n.R)&&a.C?(r.C=a.C=!1,n.C=!0,e=n):(e===r.R&&(sr(this,r),r=(e=r).U),r.C=!1,n.C=!0,cr(this,n)):(a=n.L)&&a.C?(r.C=a.C=!1,n.C=!0,e=n):(e===r.L&&(cr(this,r),r=(e=r).U),r.C=!1,n.C=!0,sr(this,n)),r=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,r,n,a=e.U,i=e.L,o=e.R;if(r=i?o?ur(o):i:o,a?a.L===e?a.L=r:a.R=r:this._=r,i&&o?(n=r.C,r.C=e.C,r.L=i,i.U=r,r!==o?(a=r.U,r.U=e.U,e=r.R,a.L=e,r.R=o,o.U=r):(r.U=a,a=r,e=r.R)):(n=e.C,e=r),e&&(e.U=a),!n)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if((t=a.R).C&&(t.C=!1,a.C=!0,sr(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,cr(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,sr(this,a),e=this._;break}}else if((t=a.L).C&&(t.C=!1,a.C=!0,cr(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,sr(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,cr(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}},i.geom.voronoi=function(e){var t=Lt,r=Ot,n=t,a=r,i=hr;if(e)return o(e);function o(e){var t=new Array(e.length),r=i[0][0],n=i[0][1],a=i[1][0],o=i[1][1];return fr(l(e),i).cells.forEach(function(i,l){var s=i.edges,c=i.site;(t[l]=s.length?s.map(function(e){var t=e.start();return[t.x,t.y]}):c.x>=r&&c.x<=a&&c.y>=n&&c.y<=o?[[r,o],[a,o],[a,n],[r,n]]:[]).point=e[l]}),t}function l(e){return e.map(function(e,t){return{x:Math.round(n(e,t)/Se)*Se,y:Math.round(a(e,t)/Se)*Se,i:t}})}return o.links=function(e){return fr(l(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},o.triangles=function(e){var t=[];return fr(l(e)).cells.forEach(function(r,n){for(var a,i,o,l,s=r.site,c=r.edges.sort(Kt),u=-1,f=c.length,d=c[f-1].edge,h=d.l===s?d.r:d.l;++u<f;)d,a=h,h=(d=c[u].edge).l===s?d.r:d.l,n<a.i&&n<h.i&&(o=a,l=h,((i=s).x-l.x)*(o.y-i.y)-(i.x-o.x)*(l.y-i.y)<0)&&t.push([e[n],e[a.i],e[h.i]])}),t},o.x=function(e){return arguments.length?(n=vt(t=e),o):t},o.y=function(e){return arguments.length?(a=vt(r=e),o):r},o.clipExtent=function(e){return arguments.length?(i=null==e?hr:e,o):i===hr?null:i},o.size=function(e){return arguments.length?o.clipExtent(e&&[[0,0],e]):i===hr?null:i&&i[1]},o};var hr=[[-1e6,-1e6],[1e6,1e6]];function pr(e){return e.x}function yr(e){return e.y}function vr(e,t){e=i.rgb(e),t=i.rgb(t);var r=e.r,n=e.g,a=e.b,o=t.r-r,l=t.g-n,s=t.b-a;return function(e){return"#"+ct(Math.round(r+o*e))+ct(Math.round(n+l*e))+ct(Math.round(a+s*e))}}function gr(e,t){var r,n={},a={};for(r in e)r in t?n[r]=wr(e[r],t[r]):a[r]=e[r];for(r in t)r in e||(a[r]=t[r]);return function(e){for(r in n)a[r]=n[r](e);return a}}function mr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function xr(e,t){var r,n,a,i=br.lastIndex=_r.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(r=br.exec(e))&&(n=_r.exec(t));)(a=n.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,s.push({i:o,x:mr(r,n)})),i=_r.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?(t=s[0].x,function(e){return t(e)+""}):function(){return t}:(t=s.length,function(e){for(var r,n=0;n<t;++n)l[(r=s[n]).i]=r.x(e);return l.join("")})}i.geom.delaunay=function(e){return i.geom.voronoi().triangles(e)},i.geom.quadtree=function(e,t,r,n,a){var i,o=Lt,l=Ot;if(i=arguments.length)return o=pr,l=yr,3===i&&(a=r,n=t,r=t=0),s(e);function s(e){var s,c,u,f,d,h,p,y,v,g=vt(o),m=vt(l);if(null!=t)h=t,p=r,y=n,v=a;else if(y=v=-(h=p=1/0),c=[],u=[],d=e.length,i)for(f=0;f<d;++f)(s=e[f]).x<h&&(h=s.x),s.y<p&&(p=s.y),s.x>y&&(y=s.x),s.y>v&&(v=s.y),c.push(s.x),u.push(s.y);else for(f=0;f<d;++f){var x=+g(s=e[f],f),b=+m(s,f);x<h&&(h=x),b<p&&(p=b),x>y&&(y=x),b>v&&(v=b),c.push(x),u.push(b)}var _=y-h,k=v-p;function T(e,t,r,n,a,i,o,l){if(!isNaN(r)&&!isNaN(n))if(e.leaf){var s=e.x,c=e.y;if(null!=s)if(w(s-r)+w(c-n)<.01)M(e,t,r,n,a,i,o,l);else{var u=e.point;e.x=e.y=e.point=null,M(e,u,s,c,a,i,o,l),M(e,t,r,n,a,i,o,l)}else e.x=r,e.y=n,e.point=t}else M(e,t,r,n,a,i,o,l)}function M(e,t,r,n,a,i,o,l){var s=.5*(a+o),c=.5*(i+l),u=r>=s,f=n>=c,d=f<<1|u;e.leaf=!1,u?a=s:o=s,f?i=c:l=c,T(e=e.nodes[d]||(e.nodes[d]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,r,n,a,i,o,l)}_>k?v=p+_:y=h+k;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){T(A,e,+g(e,++f),+m(e,f),h,p,y,v)}};if(A.visit=function(e){!function e(t,r,n,a,i,o){if(!t(r,n,a,i,o)){var l=.5*(n+i),s=.5*(a+o),c=r.nodes;c[0]&&e(t,c[0],n,a,l,s),c[1]&&e(t,c[1],l,a,i,s),c[2]&&e(t,c[2],n,s,l,o),c[3]&&e(t,c[3],l,s,i,o)}}(e,A,h,p,y,v)},A.find=function(e){return function(e,t,r,n,a,i,o){var l,s=1/0;return function e(c,u,f,d,h){if(!(u>i||f>o||d<n||h<a)){if(p=c.point){var p,y=t-c.x,v=r-c.y,g=y*y+v*v;if(g<s){var m=Math.sqrt(s=g);n=t-m,a=r-m,i=t+m,o=r+m,l=p}}for(var x=c.nodes,b=.5*(u+d),_=.5*(f+h),w=(r>=_)<<1|t>=b,k=w+4;w<k;++w)if(c=x[3&w])switch(3&w){case 0:e(c,u,f,b,_);break;case 1:e(c,b,f,d,_);break;case 2:e(c,u,_,b,h);break;case 3:e(c,b,_,d,h)}}}(e,n,a,i,o),l}(A,e[0],e[1],h,p,y,v)},f=-1,null==t){for(;++f<d;)T(A,e[f],c[f],u[f],h,p,y,v);--f}else e.forEach(A.add);return c=u=e=s=null,A}return s.x=function(e){return arguments.length?(o=e,s):o},s.y=function(e){return arguments.length?(l=e,s):l},s.extent=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=+e[0][0],r=+e[0][1],n=+e[1][0],a=+e[1][1]),s):null==t?null:[[t,r],[n,a]]},s.size=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=r=0,n=+e[0],a=+e[1]),s):null==t?null:[n-t,a-r]},s},i.interpolateRgb=vr,i.interpolateObject=gr,i.interpolateNumber=mr,i.interpolateString=xr;var br=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_r=new RegExp(br.source,"g");function wr(e,t){for(var r,n=i.interpolators.length;--n>=0&&!(r=i.interpolators[n](e,t)););return r}function kr(e,t){var r,n=[],a=[],i=e.length,o=t.length,l=Math.min(e.length,t.length);for(r=0;r<l;++r)n.push(wr(e[r],t[r]));for(;r<i;++r)a[r]=e[r];for(;r<o;++r)a[r]=t[r];return function(e){for(r=0;r<l;++r)a[r]=n[r](e);return a}}i.interpolate=wr,i.interpolators=[function(e,t){var r=typeof t;return("string"===r?yt.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?vr:xr:t instanceof He?vr:Array.isArray(t)?kr:"object"===r&&isNaN(t)?gr:mr)(e,t)}],i.interpolateArray=kr;var Tr=function(){return I},Mr=i.map({linear:Tr,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return Or},cubic:function(){return Cr},sin:function(){return Pr},exp:function(){return Er},circle:function(){return Rr},elastic:function(e,t){var r;arguments.length<2&&(t=.45);arguments.length?r=t/Ce*Math.asin(1/e):(e=1,r=t/4);return function(n){return 1+e*Math.pow(2,-10*n)*Math.sin((n-r)*Ce/t)}},back:function(e){e||(e=1.70158);return function(t){return t*t*((e+1)*t-e)}},bounce:function(){return Ir}}),Ar=i.map({in:I,out:Sr,"in-out":Lr,"out-in":function(e){return Lr(Sr(e))}});function Sr(e){return function(t){return 1-e(1-t)}}function Lr(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Or(e){return e*e}function Cr(e){return e*e*e}function Dr(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function Pr(e){return 1-Math.cos(e*Pe)}function Er(e){return Math.pow(2,10*(e-1))}function Rr(e){return 1-Math.sqrt(1-e*e)}function Ir(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function zr(e,t){return t-=e,function(r){return Math.round(e+t*r)}}function Nr(e){var t,r,n,a=[e.a,e.b],i=[e.c,e.d],o=jr(a),l=Fr(a,i),s=jr(((t=i)[0]+=(n=-l)*(r=a)[0],t[1]+=n*r[1],t))||0;a[0]*i[1]<i[0]*a[1]&&(a[0]*=-1,a[1]*=-1,o*=-1,l*=-1),this.rotate=(o?Math.atan2(a[1],a[0]):Math.atan2(-i[0],i[1]))*Re,this.translate=[e.e,e.f],this.scale=[o,s],this.skew=s?Math.atan2(l,s)*Re:0}function Fr(e,t){return e[0]*t[0]+e[1]*t[1]}function jr(e){var t=Math.sqrt(Fr(e,e));return t&&(e[0]/=t,e[1]/=t),t}i.ease=function(e){var t,r=e.indexOf("-"),n=r>=0?e.slice(0,r):e,a=r>=0?e.slice(r+1):"in";return n=Mr.get(n)||Tr,a=Ar.get(a)||I,t=a(n.apply(null,o.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},i.interpolateHcl=function(e,t){e=i.hcl(e),t=i.hcl(t);var r=e.h,n=e.c,a=e.l,o=t.h-r,l=t.c-n,s=t.l-a;isNaN(l)&&(l=0,n=isNaN(n)?t.c:n);isNaN(o)?(o=0,r=isNaN(r)?t.h:r):o>180?o-=360:o<-180&&(o+=360);return function(e){return Ze(r+o*e,n+l*e,a+s*e)+""}},i.interpolateHsl=function(e,t){e=i.hsl(e),t=i.hsl(t);var r=e.h,n=e.s,a=e.l,o=t.h-r,l=t.s-n,s=t.l-a;isNaN(l)&&(l=0,n=isNaN(n)?t.s:n);isNaN(o)?(o=0,r=isNaN(r)?t.h:r):o>180?o-=360:o<-180&&(o+=360);return function(e){return Ye(r+o*e,n+l*e,a+s*e)+""}},i.interpolateLab=function(e,t){e=i.lab(e),t=i.lab(t);var r=e.l,n=e.a,a=e.b,o=t.l-r,l=t.a-n,s=t.b-a;return function(e){return et(r+o*e,n+l*e,a+s*e)+""}},i.interpolateRound=zr,i.transform=function(e){var t=s.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(e){if(null!=e){t.setAttribute("transform",e);var r=t.transform.baseVal.consolidate()}return new Nr(r?r.matrix:Br)})(e)},Nr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Br={a:1,b:0,c:0,d:1,e:0,f:0};function Hr(e){return e.length?e.pop()+",":""}function Ur(e,t){var r=[],n=[];return e=i.transform(e),t=i.transform(t),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push("translate(",null,",",null,")");n.push({i:a-4,x:mr(e[0],t[0])},{i:a-2,x:mr(e[1],t[1])})}else(t[0]||t[1])&&r.push("translate("+t+")")}(e.translate,t.translate,r,n),function(e,t,r,n){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),n.push({i:r.push(Hr(r)+"rotate(",null,")")-2,x:mr(e,t)})):t&&r.push(Hr(r)+"rotate("+t+")")}(e.rotate,t.rotate,r,n),function(e,t,r,n){e!==t?n.push({i:r.push(Hr(r)+"skewX(",null,")")-2,x:mr(e,t)}):t&&r.push(Hr(r)+"skewX("+t+")")}(e.skew,t.skew,r,n),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push(Hr(r)+"scale(",null,",",null,")");n.push({i:a-4,x:mr(e[0],t[0])},{i:a-2,x:mr(e[1],t[1])})}else 1===t[0]&&1===t[1]||r.push(Hr(r)+"scale("+t+")")}(e.scale,t.scale,r,n),e=t=null,function(e){for(var t,a=-1,i=n.length;++a<i;)r[(t=n[a]).i]=t.x(e);return r.join("")}}function qr(e,t){return t=(t-=e=+e)||1/t,function(r){return(r-e)/t}}function Yr(e,t){return t=(t-=e=+e)||1/t,function(r){return Math.max(0,Math.min(1,(r-e)/t))}}function Vr(e){for(var t=e.source,r=e.target,n=function(e,t){if(e===t)return e;var r=Gr(e),n=Gr(t),a=r.pop(),i=n.pop(),o=null;for(;a===i;)o=a,a=r.pop(),i=n.pop();return o}(t,r),a=[t];t!==n;)t=t.parent,a.push(t);for(var i=a.length;r!==n;)a.splice(i,0,r),r=r.parent;return a}function Gr(e){for(var t=[],r=e.parent;null!=r;)t.push(e),e=r,r=r.parent;return t.push(e),t}function Zr(e){e.fixed|=2}function Wr(e){e.fixed&=-7}function Jr(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Xr(e){e.fixed&=-5}i.interpolateTransform=Ur,i.layout={},i.layout.bundle=function(){return function(e){for(var t=[],r=-1,n=e.length;++r<n;)t.push(Vr(e[r]));return t}},i.layout.chord=function(){var e,t,r,n,a,o,l,s={},c=0;function u(){var s,u,d,h,p,y={},v=[],g=i.range(n),m=[];for(e=[],t=[],s=0,h=-1;++h<n;){for(u=0,p=-1;++p<n;)u+=r[h][p];v.push(u),m.push(i.range(n)),s+=u}for(a&&g.sort(function(e,t){return a(v[e],v[t])}),o&&m.forEach(function(e,t){e.sort(function(e,n){return o(r[t][e],r[t][n])})}),s=(Ce-c*n)/s,u=0,h=-1;++h<n;){for(d=u,p=-1;++p<n;){var x=g[h],b=m[x][p],_=r[x][b],w=u,k=u+=_*s;y[x+"-"+b]={index:x,subindex:b,startAngle:w,endAngle:k,value:_}}t[x]={index:x,startAngle:d,endAngle:u,value:v[x]},u+=c}for(h=-1;++h<n;)for(p=h-1;++p<n;){var T=y[h+"-"+p],M=y[p+"-"+h];(T.value||M.value)&&e.push(T.value<M.value?{source:M,target:T}:{source:T,target:M})}l&&f()}function f(){e.sort(function(e,t){return l((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)})}return s.matrix=function(a){return arguments.length?(n=(r=a)&&r.length,e=t=null,s):r},s.padding=function(r){return arguments.length?(c=r,e=t=null,s):c},s.sortGroups=function(r){return arguments.length?(a=r,e=t=null,s):a},s.sortSubgroups=function(t){return arguments.length?(o=t,e=null,s):o},s.sortChords=function(t){return arguments.length?(l=t,e&&f(),s):l},s.chords=function(){return e||u(),e},s.groups=function(){return t||u(),t},s},i.layout.force=function(){var e,t,r,n,a,o,l={},s=i.dispatch("start","tick","end"),c=[1,1],u=.9,f=Kr,d=$r,h=-30,p=Qr,y=.1,v=.64,g=[],m=[];function x(e){return function(t,r,n,a){if(t.point!==e){var i=t.cx-e.x,o=t.cy-e.y,l=a-r,s=i*i+o*o;if(l*l/v<s){if(s<p){var c=t.charge/s;e.px-=i*c,e.py-=o*c}return!0}if(t.point&&s&&s<p){c=t.pointCharge/s;e.px-=i*c,e.py-=o*c}}return!t.charge}}function b(e){e.px=i.event.x,e.py=i.event.y,l.resume()}return l.tick=function(){if((r*=.99)<.005)return e=null,s.end({type:"end",alpha:r=0}),!0;var t,l,f,d,p,v,b,_,w,k=g.length,T=m.length;for(l=0;l<T;++l)d=(f=m[l]).source,(v=(_=(p=f.target).x-d.x)*_+(w=p.y-d.y)*w)&&(_*=v=r*a[l]*((v=Math.sqrt(v))-n[l])/v,w*=v,p.x-=_*(b=d.weight+p.weight?d.weight/(d.weight+p.weight):.5),p.y-=w*b,d.x+=_*(b=1-b),d.y+=w*b);if((b=r*y)&&(_=c[0]/2,w=c[1]/2,l=-1,b))for(;++l<k;)(f=g[l]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(h)for(!function e(t,r,n){var a=0,i=0;t.charge=0;if(!t.leaf)for(var o,l=t.nodes,s=l.length,c=-1;++c<s;)null!=(o=l[c])&&(e(o,r,n),t.charge+=o.charge,a+=o.charge*o.cx,i+=o.charge*o.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var u=r*n[t.point.index];t.charge+=t.pointCharge=u,a+=u*t.point.x,i+=u*t.point.y}t.cx=a/t.charge;t.cy=i/t.charge}(t=i.geom.quadtree(g),r,o),l=-1;++l<k;)(f=g[l]).fixed||t.visit(x(f));for(l=-1;++l<k;)(f=g[l]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);s.tick({type:"tick",alpha:r})},l.nodes=function(e){return arguments.length?(g=e,l):g},l.links=function(e){return arguments.length?(m=e,l):m},l.size=function(e){return arguments.length?(c=e,l):c},l.linkDistance=function(e){return arguments.length?(f="function"==typeof e?e:+e,l):f},l.distance=l.linkDistance,l.linkStrength=function(e){return arguments.length?(d="function"==typeof e?e:+e,l):d},l.friction=function(e){return arguments.length?(u=+e,l):u},l.charge=function(e){return arguments.length?(h="function"==typeof e?e:+e,l):h},l.chargeDistance=function(e){return arguments.length?(p=e*e,l):Math.sqrt(p)},l.gravity=function(e){return arguments.length?(y=+e,l):y},l.theta=function(e){return arguments.length?(v=e*e,l):Math.sqrt(v)},l.alpha=function(t){return arguments.length?(t=+t,r?t>0?r=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:r=0})):t>0&&(s.start({type:"start",alpha:r=t}),e=Tt(l.tick)),l):r},l.start=function(){var e,t,r,i=g.length,s=m.length,u=c[0],p=c[1];for(e=0;e<i;++e)(r=g[e]).index=e,r.weight=0;for(e=0;e<s;++e)"number"==typeof(r=m[e]).source&&(r.source=g[r.source]),"number"==typeof r.target&&(r.target=g[r.target]),++r.source.weight,++r.target.weight;for(e=0;e<i;++e)r=g[e],isNaN(r.x)&&(r.x=y("x",u)),isNaN(r.y)&&(r.y=y("y",p)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(n=[],"function"==typeof f)for(e=0;e<s;++e)n[e]=+f.call(this,m[e],e);else for(e=0;e<s;++e)n[e]=f;if(a=[],"function"==typeof d)for(e=0;e<s;++e)a[e]=+d.call(this,m[e],e);else for(e=0;e<s;++e)a[e]=d;if(o=[],"function"==typeof h)for(e=0;e<i;++e)o[e]=+h.call(this,g[e],e);else for(e=0;e<i;++e)o[e]=h;function y(r,n){if(!t){for(t=new Array(i),c=0;c<i;++c)t[c]=[];for(c=0;c<s;++c){var a=m[c];t[a.source.index].push(a.target),t[a.target.index].push(a.source)}}for(var o,l=t[e],c=-1,u=l.length;++c<u;)if(!isNaN(o=l[c][r]))return o;return Math.random()*n}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(t||(t=i.behavior.drag().origin(I).on("dragstart.force",Zr).on("drag.force",b).on("dragend.force",Wr)),!arguments.length)return t;this.on("mouseover.force",Jr).on("mouseout.force",Xr).call(t)},i.rebind(l,s,"on")};var Kr=20,$r=1,Qr=1/0;function en(e,t){return i.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=ln,e}function tn(e,t){for(var r=[e];null!=(e=r.pop());)if(t(e),(a=e.children)&&(n=a.length))for(var n,a;--n>=0;)r.push(a[n])}function rn(e,t){for(var r=[e],n=[];null!=(e=r.pop());)if(n.push(e),(i=e.children)&&(a=i.length))for(var a,i,o=-1;++o<a;)r.push(i[o]);for(;null!=(e=n.pop());)t(e)}function nn(e){return e.children}function an(e){return e.value}function on(e,t){return t.value-e.value}function ln(e){return i.merge(e.map(function(e){return(e.children||[]).map(function(t){return{source:e,target:t}})}))}i.layout.hierarchy=function(){var e=on,t=nn,r=an;function n(a){var i,o=[a],l=[];for(a.depth=0;null!=(i=o.pop());)if(l.push(i),(c=t.call(n,i,i.depth))&&(s=c.length)){for(var s,c,u;--s>=0;)o.push(u=c[s]),u.parent=i,u.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return rn(a,function(t){var n,a;e&&(n=t.children)&&n.sort(e),r&&(a=t.parent)&&(a.value+=t.value)}),l}return n.sort=function(t){return arguments.length?(e=t,n):e},n.children=function(e){return arguments.length?(t=e,n):t},n.value=function(e){return arguments.length?(r=e,n):r},n.revalue=function(e){return r&&(tn(e,function(e){e.children&&(e.value=0)}),rn(e,function(e){var t;e.children||(e.value=+r.call(n,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)})),e},n},i.layout.partition=function(){var e=i.layout.hierarchy(),t=[1,1];function r(r,n){var a=e.call(this,r,n);return function e(t,r,n,a){var i=t.children;if(t.x=r,t.y=t.depth*a,t.dx=n,t.dy=a,i&&(o=i.length)){var o,l,s,c=-1;for(n=t.value?n/t.value:0;++c<o;)e(l=i[c],r,s=l.value*n,a),r+=s}}(a[0],0,t[0],t[1]/function e(t){var r=t.children,n=0;if(r&&(a=r.length))for(var a,i=-1;++i<a;)n=Math.max(n,e(r[i]));return 1+n}(a[0])),a}return r.size=function(e){return arguments.length?(t=e,r):t},en(r,e)},i.layout.pie=function(){var e=Number,t=sn,r=0,n=Ce,a=0;function o(l){var s,c=l.length,u=l.map(function(t,r){return+e.call(o,t,r)}),f=+("function"==typeof r?r.apply(this,arguments):r),d=("function"==typeof n?n.apply(this,arguments):n)-f,h=Math.min(Math.abs(d)/c,+("function"==typeof a?a.apply(this,arguments):a)),p=h*(d<0?-1:1),y=i.sum(u),v=y?(d-c*p)/y:0,g=i.range(c),m=[];return null!=t&&g.sort(t===sn?function(e,t){return u[t]-u[e]}:function(e,r){return t(l[e],l[r])}),g.forEach(function(e){m[e]={data:l[e],value:s=u[e],startAngle:f,endAngle:f+=s*v+p,padAngle:h}}),m}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(e){return arguments.length?(t=e,o):t},o.startAngle=function(e){return arguments.length?(r=e,o):r},o.endAngle=function(e){return arguments.length?(n=e,o):n},o.padAngle=function(e){return arguments.length?(a=e,o):a},o};var sn={};function cn(e){return e.x}function un(e){return e.y}function fn(e,t,r){e.y0=t,e.y=r}i.layout.stack=function(){var e=I,t=pn,r=yn,n=fn,a=cn,o=un;function l(s,c){if(!(h=s.length))return s;var u=s.map(function(t,r){return e.call(l,t,r)}),f=u.map(function(e){return e.map(function(e,t){return[a.call(l,e,t),o.call(l,e,t)]})}),d=t.call(l,f,c);u=i.permute(u,d),f=i.permute(f,d);var h,p,y,v,g=r.call(l,f,c),m=u[0].length;for(y=0;y<m;++y)for(n.call(l,u[0][y],v=g[y],f[0][y][1]),p=1;p<h;++p)n.call(l,u[p][y],v+=f[p-1][y][1],f[p][y][1]);return s}return l.values=function(t){return arguments.length?(e=t,l):e},l.order=function(e){return arguments.length?(t="function"==typeof e?e:dn.get(e)||pn,l):t},l.offset=function(e){return arguments.length?(r="function"==typeof e?e:hn.get(e)||yn,l):r},l.x=function(e){return arguments.length?(a=e,l):a},l.y=function(e){return arguments.length?(o=e,l):o},l.out=function(e){return arguments.length?(n=e,l):n},l};var dn=i.map({"inside-out":function(e){var t,r,n=e.length,a=e.map(vn),o=e.map(gn),l=i.range(n).sort(function(e,t){return a[e]-a[t]}),s=0,c=0,u=[],f=[];for(t=0;t<n;++t)r=l[t],s<c?(s+=o[r],u.push(r)):(c+=o[r],f.push(r));return f.reverse().concat(u)},reverse:function(e){return i.range(e.length).reverse()},default:pn}),hn=i.map({silhouette:function(e){var t,r,n,a=e.length,i=e[0].length,o=[],l=0,s=[];for(r=0;r<i;++r){for(t=0,n=0;t<a;t++)n+=e[t][r][1];n>l&&(l=n),o.push(n)}for(r=0;r<i;++r)s[r]=(l-o[r])/2;return s},wiggle:function(e){var t,r,n,a,i,o,l,s,c,u=e.length,f=e[0],d=f.length,h=[];for(h[0]=s=c=0,r=1;r<d;++r){for(t=0,a=0;t<u;++t)a+=e[t][r][1];for(t=0,i=0,l=f[r][0]-f[r-1][0];t<u;++t){for(n=0,o=(e[t][r][1]-e[t][r-1][1])/(2*l);n<t;++n)o+=(e[n][r][1]-e[n][r-1][1])/l;i+=o*e[t][r][1]}h[r]=s-=a?i/a*l:0,s<c&&(c=s)}for(r=0;r<d;++r)h[r]-=c;return h},expand:function(e){var t,r,n,a=e.length,i=e[0].length,o=1/a,l=[];for(r=0;r<i;++r){for(t=0,n=0;t<a;t++)n+=e[t][r][1];if(n)for(t=0;t<a;t++)e[t][r][1]/=n;else for(t=0;t<a;t++)e[t][r][1]=o}for(r=0;r<i;++r)l[r]=0;return l},zero:yn});function pn(e){return i.range(e.length)}function yn(e){for(var t=-1,r=e[0].length,n=[];++t<r;)n[t]=0;return n}function vn(e){for(var t,r=1,n=0,a=e[0][1],i=e.length;r<i;++r)(t=e[r][1])>a&&(n=r,a=t);return n}function gn(e){return e.reduce(mn,0)}function mn(e,t){return e+t[1]}function xn(e,t){return bn(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function bn(e,t){for(var r=-1,n=+e[0],a=(e[1]-n)/t,i=[];++r<=t;)i[r]=a*r+n;return i}function _n(e){return[i.min(e),i.max(e)]}function wn(e,t){return e.value-t.value}function kn(e,t){var r=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=r,r._pack_prev=t}function Tn(e,t){e._pack_next=t,t._pack_prev=e}function Mn(e,t){var r=t.x-e.x,n=t.y-e.y,a=e.r+t.r;return.999*a*a>r*r+n*n}function An(e){if((t=e.children)&&(s=t.length)){var t,r,n,a,i,o,l,s,c=1/0,u=-1/0,f=1/0,d=-1/0;if(t.forEach(Sn),(r=t[0]).x=-r.r,r.y=0,x(r),s>1&&((n=t[1]).x=n.r,n.y=0,x(n),s>2))for(On(r,n,a=t[2]),x(a),kn(r,a),r._pack_prev=a,kn(a,n),n=r._pack_next,i=3;i<s;i++){On(r,n,a=t[i]);var h=0,p=1,y=1;for(o=n._pack_next;o!==n;o=o._pack_next,p++)if(Mn(o,a)){h=1;break}if(1==h)for(l=r._pack_prev;l!==o._pack_prev&&!Mn(l,a);l=l._pack_prev,y++);h?(p<y||p==y&&n.r<r.r?Tn(r,n=o):Tn(r=l,n),i--):(kn(r,a),n=a,x(a))}var v=(c+u)/2,g=(f+d)/2,m=0;for(i=0;i<s;i++)(a=t[i]).x-=v,a.y-=g,m=Math.max(m,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=m,t.forEach(Ln)}function x(e){c=Math.min(e.x-e.r,c),u=Math.max(e.x+e.r,u),f=Math.min(e.y-e.r,f),d=Math.max(e.y+e.r,d)}}function Sn(e){e._pack_next=e._pack_prev=e}function Ln(e){delete e._pack_next,delete e._pack_prev}function On(e,t,r){var n=e.r+r.r,a=t.x-e.x,i=t.y-e.y;if(n&&(a||i)){var o=t.r+r.r,l=a*a+i*i,s=.5+((n*=n)-(o*=o))/(2*l),c=Math.sqrt(Math.max(0,2*o*(n+l)-(n-=l)*n-o*o))/(2*l);r.x=e.x+s*a+c*i,r.y=e.y+s*i-c*a}else r.x=e.x+n,r.y=e.y}function Cn(e,t){return e.parent==t.parent?1:2}function Dn(e){var t=e.children;return t.length?t[0]:e.t}function Pn(e){var t,r=e.children;return(t=r.length)?r[t-1]:e.t}function En(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function Rn(e,t,r){return e.a.parent===t.parent?e.a:r}function In(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function zn(e,t){var r=e.x+t[3],n=e.y+t[0],a=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return a<0&&(r+=a/2,a=0),i<0&&(n+=i/2,i=0),{x:r,y:n,dx:a,dy:i}}function Nn(e){var t=e[0],r=e[e.length-1];return t<r?[t,r]:[r,t]}function Fn(e){return e.rangeExtent?e.rangeExtent():Nn(e.range())}function jn(e,t,r,n){var a=r(e[0],e[1]),i=n(t[0],t[1]);return function(e){return i(a(e))}}function Bn(e,t){var r,n=0,a=e.length-1,i=e[n],o=e[a];return o<i&&(r=n,n=a,a=r,r=i,i=o,o=r),e[n]=t.floor(i),e[a]=t.ceil(o),e}function Hn(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Un}i.layout.histogram=function(){var e=!0,t=Number,r=_n,n=xn;function a(a,o){for(var l,s,c=[],u=a.map(t,this),f=r.call(this,u,o),d=n.call(this,f,u,o),h=(o=-1,u.length),p=d.length-1,y=e?1:1/h;++o<p;)(l=c[o]=[]).dx=d[o+1]-(l.x=d[o]),l.y=0;if(p>0)for(o=-1;++o<h;)(s=u[o])>=f[0]&&s<=f[1]&&((l=c[i.bisect(d,s,1,p)-1]).y+=y,l.push(a[o]));return c}return a.value=function(e){return arguments.length?(t=e,a):t},a.range=function(e){return arguments.length?(r=vt(e),a):r},a.bins=function(e){return arguments.length?(n="number"==typeof e?function(t){return bn(t,e)}:vt(e),a):n},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},i.layout.pack=function(){var e,t=i.layout.hierarchy().sort(wn),r=0,n=[1,1];function a(a,i){var o=t.call(this,a,i),l=o[0],s=n[0],c=n[1],u=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(l.x=l.y=0,rn(l,function(e){e.r=+u(e.value)}),rn(l,An),r){var f=r*(e?1:Math.max(2*l.r/s,2*l.r/c))/2;rn(l,function(e){e.r+=f}),rn(l,An),rn(l,function(e){e.r-=f})}return function e(t,r,n,a){var i=t.children;t.x=r+=a*t.x;t.y=n+=a*t.y;t.r*=a;if(i)for(var o=-1,l=i.length;++o<l;)e(i[o],r,n,a)}(l,s/2,c/2,e?1:1/Math.max(2*l.r/s,2*l.r/c)),o}return a.size=function(e){return arguments.length?(n=e,a):n},a.radius=function(t){return arguments.length?(e=null==t||"function"==typeof t?t:+t,a):e},a.padding=function(e){return arguments.length?(r=+e,a):r},en(a,t)},i.layout.tree=function(){var e=i.layout.hierarchy().sort(null).value(null),t=Cn,r=[1,1],n=null;function a(a,i){var c=e.call(this,a,i),u=c[0],f=function(e){var t,r={A:null,children:[e]},n=[r];for(;null!=(t=n.pop());)for(var a,i=t.children,o=0,l=i.length;o<l;++o)n.push((i[o]=a={_:i[o],parent:t,children:(a=i[o].children)&&a.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=a);return r.children[0]}(u);if(rn(f,o),f.parent.m=-f.z,tn(f,l),n)tn(u,s);else{var d=u,h=u,p=u;tn(u,function(e){e.x<d.x&&(d=e),e.x>h.x&&(h=e),e.depth>p.depth&&(p=e)});var y=t(d,h)/2-d.x,v=r[0]/(h.x+t(h,d)/2+y),g=r[1]/(p.depth||1);tn(u,function(e){e.x=(e.x+y)*v,e.y=e.depth*g})}return c}function o(e){var r=e.children,n=e.parent.children,a=e.i?n[e.i-1]:null;if(r.length){!function(e){var t,r=0,n=0,a=e.children,i=a.length;for(;--i>=0;)(t=a[i]).z+=r,t.m+=r,r+=t.s+(n+=t.c)}(e);var i=(r[0].z+r[r.length-1].z)/2;a?(e.z=a.z+t(e._,a._),e.m=e.z-i):e.z=i}else a&&(e.z=a.z+t(e._,a._));e.parent.A=function(e,r,n){if(r){for(var a,i=e,o=e,l=r,s=i.parent.children[0],c=i.m,u=o.m,f=l.m,d=s.m;l=Pn(l),i=Dn(i),l&&i;)s=Dn(s),(o=Pn(o)).a=e,(a=l.z+f-i.z-c+t(l._,i._))>0&&(En(Rn(l,e,n),e,a),c+=a,u+=a),f+=l.m,c+=i.m,d+=s.m,u+=o.m;l&&!Pn(o)&&(o.t=l,o.m+=f-u),i&&!Dn(s)&&(s.t=i,s.m+=c-d,n=e)}return n}(e,a,e.parent.A||n[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=r[0],e.y=e.depth*r[1]}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(n=null==(r=e)?s:null,a):n?null:r},a.nodeSize=function(e){return arguments.length?(n=null==(r=e)?null:s,a):n?r:null},en(a,e)},i.layout.cluster=function(){var e=i.layout.hierarchy().sort(null).value(null),t=Cn,r=[1,1],n=!1;function a(a,o){var l,s=e.call(this,a,o),c=s[0],u=0;rn(c,function(e){var r=e.children;r&&r.length?(e.x=function(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}(r),e.y=function(e){return 1+i.max(e,function(e){return e.y})}(r)):(e.x=l?u+=t(e,l):0,e.y=0,l=e)});var f=function e(t){var r=t.children;return r&&r.length?e(r[0]):t}(c),d=function e(t){var r,n=t.children;return n&&(r=n.length)?e(n[r-1]):t}(c),h=f.x-t(f,d)/2,p=d.x+t(d,f)/2;return rn(c,n?function(e){e.x=(e.x-c.x)*r[0],e.y=(c.y-e.y)*r[1]}:function(e){e.x=(e.x-h)/(p-h)*r[0],e.y=(1-(c.y?e.y/c.y:1))*r[1]}),s}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(n=null==(r=e),a):n?null:r},a.nodeSize=function(e){return arguments.length?(n=null!=(r=e),a):n?r:null},en(a,e)},i.layout.treemap=function(){var e,t=i.layout.hierarchy(),r=Math.round,n=[1,1],a=null,o=In,l=!1,s="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var r,n,a=-1,i=e.length;++a<i;)n=(r=e[a]).value*(t<0?0:t),r.area=isNaN(n)||n<=0?0:n}function f(e){var t=e.children;if(t&&t.length){var r,n,a,i=o(e),l=[],c=t.slice(),d=1/0,y="slice"===s?i.dx:"dice"===s?i.dy:"slice-dice"===s?1&e.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(u(c,i.dx*i.dy/e.value),l.area=0;(a=c.length)>0;)l.push(r=c[a-1]),l.area+=r.area,"squarify"!==s||(n=h(l,y))<=d?(c.pop(),d=n):(l.area-=l.pop().area,p(l,y,i,!1),y=Math.min(i.dx,i.dy),l.length=l.area=0,d=1/0);l.length&&(p(l,y,i,!0),l.length=l.area=0),t.forEach(f)}}function d(e){var t=e.children;if(t&&t.length){var r,n=o(e),a=t.slice(),i=[];for(u(a,n.dx*n.dy/e.value),i.area=0;r=a.pop();)i.push(r),i.area+=r.area,null!=r.z&&(p(i,r.z?n.dx:n.dy,n,!a.length),i.length=i.area=0);t.forEach(d)}}function h(e,t){for(var r,n=e.area,a=0,i=1/0,o=-1,l=e.length;++o<l;)(r=e[o].area)&&(r<i&&(i=r),r>a&&(a=r));return t*=t,(n*=n)?Math.max(t*a*c/n,n/(t*i*c)):1/0}function p(e,t,n,a){var i,o=-1,l=e.length,s=n.x,c=n.y,u=t?r(e.area/t):0;if(t==n.dx){for((a||u>n.dy)&&(u=n.dy);++o<l;)(i=e[o]).x=s,i.y=c,i.dy=u,s+=i.dx=Math.min(n.x+n.dx-s,u?r(i.area/u):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=u,n.dy-=u}else{for((a||u>n.dx)&&(u=n.dx);++o<l;)(i=e[o]).x=s,i.y=c,i.dx=u,c+=i.dy=Math.min(n.y+n.dy-c,u?r(i.area/u):0);i.z=!1,i.dy+=n.y+n.dy-c,n.x+=u,n.dx-=u}}function y(r){var a=e||t(r),i=a[0];return i.x=i.y=0,i.value?(i.dx=n[0],i.dy=n[1]):i.dx=i.dy=0,e&&t.revalue(i),u([i],i.dx*i.dy/i.value),(e?d:f)(i),l&&(e=a),a}return y.size=function(e){return arguments.length?(n=e,y):n},y.padding=function(e){if(!arguments.length)return a;function t(t){return zn(t,e)}var r;return o=null==(a=e)?In:"function"==(r=typeof e)?function(t){var r=e.call(y,t,t.depth);return null==r?In(t):zn(t,"number"==typeof r?[r,r,r,r]:r)}:"number"===r?(e=[e,e,e,e],t):t,y},y.round=function(e){return arguments.length?(r=e?Math.round:Number,y):r!=Number},y.sticky=function(t){return arguments.length?(l=t,e=null,y):l},y.ratio=function(e){return arguments.length?(c=e,y):c},y.mode=function(e){return arguments.length?(s=e+"",y):s},en(y,t)},i.random={normal:function(e,t){var r=arguments.length;return r<2&&(t=1),r<1&&(e=0),function(){var r,n,a;do{a=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!a||a>1);return e+t*r*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var e=i.random.normal.apply(i,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=i.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,r=0;r<e;r++)t+=Math.random();return t}}},i.scale={};var Un={floor:I,ceil:I};function qn(e,t,r,n){var a=[],o=[],l=0,s=Math.min(e.length,t.length)-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<=s;)a.push(r(e[l-1],e[l])),o.push(n(t[l-1],t[l]));return function(t){var r=i.bisect(e,t,1,s)-1;return o[r](a[r](t))}}function Yn(e,t){return i.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Vn(e,t){return Bn(e,Hn(Gn(e,t)[2])),Bn(e,Hn(Gn(e,t)[2])),e}function Gn(e,t){null==t&&(t=10);var r=Nn(e),n=r[1]-r[0],a=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),i=t/n*a;return i<=.15?a*=10:i<=.35?a*=5:i<=.75&&(a*=2),r[0]=Math.ceil(r[0]/a)*a,r[1]=Math.floor(r[1]/a)*a+.5*a,r[2]=a,r}function Zn(e,t){return i.range.apply(i,Gn(e,t))}i.scale.linear=function(){return function e(t,r,n,a){var i,o;function l(){var e=Math.min(t.length,r.length)>2?qn:jn,l=a?Yr:qr;return i=e(t,r,l,n),o=e(r,t,l,wr),s}function s(e){return i(e)}s.invert=function(e){return o(e)};s.domain=function(e){return arguments.length?(t=e.map(Number),l()):t};s.range=function(e){return arguments.length?(r=e,l()):r};s.rangeRound=function(e){return s.range(e).interpolate(zr)};s.clamp=function(e){return arguments.length?(a=e,l()):a};s.interpolate=function(e){return arguments.length?(n=e,l()):n};s.ticks=function(e){return Zn(t,e)};s.tickFormat=function(e,r){return d3_scale_linearTickFormat(t,e,r)};s.nice=function(e){return Vn(t,e),l()};s.copy=function(){return e(t,r,n,a)};return l()}([0,1],[0,1],wr,!1)};i.scale.log=function(){return function e(t,r,n,a){function i(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(r)}function o(e){return n?Math.pow(r,e):-Math.pow(r,-e)}function l(e){return t(i(e))}l.invert=function(e){return o(t.invert(e))};l.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((a=e.map(Number)).map(i)),l):a};l.base=function(e){return arguments.length?(r=+e,t.domain(a.map(i)),l):r};l.nice=function(){var e=Bn(a.map(i),n?Math:Wn);return t.domain(e),a=e.map(o),l};l.ticks=function(){var e=Nn(a),t=[],l=e[0],s=e[1],c=Math.floor(i(l)),u=Math.ceil(i(s)),f=r%1?2:r;if(isFinite(u-c)){if(n){for(;c<u;c++)for(var d=1;d<f;d++)t.push(o(c)*d);t.push(o(c))}else for(t.push(o(c));c++<u;)for(var d=f-1;d>0;d--)t.push(o(c)*d);for(c=0;t[c]<l;c++);for(u=t.length;t[u-1]>s;u--);t=t.slice(c,u)}return t};l.copy=function(){return e(t.copy(),r,n,a)};return Yn(l,t)}(i.scale.linear().domain([0,1]),10,!0,[1,10])};var Wn={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function Jn(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}i.scale.pow=function(){return function e(t,r,n){var a=Jn(r),i=Jn(1/r);function o(e){return t(a(e))}o.invert=function(e){return i(t.invert(e))};o.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(a)),o):n};o.ticks=function(e){return Zn(n,e)};o.tickFormat=function(e,t){return d3_scale_linearTickFormat(n,e,t)};o.nice=function(e){return o.domain(Vn(n,e))};o.exponent=function(e){return arguments.length?(a=Jn(r=e),i=Jn(1/r),t.domain(n.map(a)),o):r};o.copy=function(){return e(t.copy(),r,n)};return Yn(o,t)}(i.scale.linear(),1,[0,1])},i.scale.sqrt=function(){return i.scale.pow().exponent(.5)},i.scale.ordinal=function(){return function e(t,r){var n,a,o;function l(e){return a[((n.get(e)||("range"===r.t?n.set(e,t.push(e)):NaN))-1)%a.length]}function s(e,r){return i.range(t.length).map(function(t){return e+r*t})}l.domain=function(e){if(!arguments.length)return t;t=[],n=new T;for(var a,i=-1,o=e.length;++i<o;)n.has(a=e[i])||n.set(a,t.push(a));return l[r.t].apply(l,r.a)};l.range=function(e){return arguments.length?(a=e,o=0,r={t:"range",a:arguments},l):a};l.rangePoints=function(e,n){arguments.length<2&&(n=0);var i=e[0],c=e[1],u=t.length<2?(i=(i+c)/2,0):(c-i)/(t.length-1+n);return a=s(i+u*n/2,u),o=0,r={t:"rangePoints",a:arguments},l};l.rangeRoundPoints=function(e,n){arguments.length<2&&(n=0);var i=e[0],c=e[1],u=t.length<2?(i=c=Math.round((i+c)/2),0):(c-i)/(t.length-1+n)|0;return a=s(i+Math.round(u*n/2+(c-i-(t.length-1+n)*u)/2),u),o=0,r={t:"rangeRoundPoints",a:arguments},l};l.rangeBands=function(e,n,i){arguments.length<2&&(n=0),arguments.length<3&&(i=n);var c=e[1]<e[0],u=e[c-0],f=e[1-c],d=(f-u)/(t.length-n+2*i);return a=s(u+d*i,d),c&&a.reverse(),o=d*(1-n),r={t:"rangeBands",a:arguments},l};l.rangeRoundBands=function(e,n,i){arguments.length<2&&(n=0),arguments.length<3&&(i=n);var c=e[1]<e[0],u=e[c-0],f=e[1-c],d=Math.floor((f-u)/(t.length-n+2*i));return a=s(u+Math.round((f-u-(t.length-n)*d)/2),d),c&&a.reverse(),o=Math.round(d*(1-n)),r={t:"rangeRoundBands",a:arguments},l};l.rangeBand=function(){return o};l.rangeExtent=function(){return Nn(r.a[0])};l.copy=function(){return e(t,r)};return l.domain(t)}([],{t:"range",a:[[]]})},i.scale.category10=function(){return i.scale.ordinal().range(Xn)},i.scale.category20=function(){return i.scale.ordinal().range(Kn)},i.scale.category20b=function(){return i.scale.ordinal().range($n)},i.scale.category20c=function(){return i.scale.ordinal().range(Qn)};var Xn=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(lt),Kn=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(lt),$n=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(lt),Qn=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(lt);function ea(){return 0}i.scale.quantile=function(){return function e(t,r){var n;function a(){var e=0,a=r.length;for(n=[];++e<a;)n[e-1]=i.quantile(t,e/a);return o}function o(e){if(!isNaN(e=+e))return r[i.bisect(n,e)]}o.domain=function(e){return arguments.length?(t=e.map(g).filter(m).sort(v),a()):t};o.range=function(e){return arguments.length?(r=e,a()):r};o.quantiles=function(){return n};o.invertExtent=function(e){return(e=r.indexOf(e))<0?[NaN,NaN]:[e>0?n[e-1]:t[0],e<n.length?n[e]:t[t.length-1]]};o.copy=function(){return e(t,r)};return a()}([],[])},i.scale.quantize=function(){return function e(t,r,n){var a,i;function o(e){return n[Math.max(0,Math.min(i,Math.floor(a*(e-t))))]}function l(){return a=n.length/(r-t),i=n.length-1,o}o.domain=function(e){return arguments.length?(t=+e[0],r=+e[e.length-1],l()):[t,r]};o.range=function(e){return arguments.length?(n=e,l()):n};o.invertExtent=function(e){return[e=(e=n.indexOf(e))<0?NaN:e/a+t,e+1/a]};o.copy=function(){return e(t,r,n)};return l()}(0,1,[0,1])},i.scale.threshold=function(){return function e(t,r){function n(e){if(e<=e)return r[i.bisect(t,e)]}n.domain=function(e){return arguments.length?(t=e,n):t};n.range=function(e){return arguments.length?(r=e,n):r};n.invertExtent=function(e){return e=r.indexOf(e),[t[e-1],t[e]]};n.copy=function(){return e(t,r)};return n}([.5],[0,1])},i.scale.identity=function(){return function e(t){function r(e){return+e}r.invert=r;r.domain=r.range=function(e){return arguments.length?(t=e.map(r),r):t};r.ticks=function(e){return Zn(t,e)};r.tickFormat=function(e,r){return d3_scale_linearTickFormat(t,e,r)};r.copy=function(){return e(t)};return r}([0,1])},i.svg={},i.svg.arc=function(){var e=ra,t=na,r=ea,n=ta,a=aa,i=ia,o=oa;function l(){var l=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+t.apply(this,arguments)),u=a.apply(this,arguments)-Pe,f=i.apply(this,arguments)-Pe,d=Math.abs(f-u),h=u>f?0:1;if(c<l&&(p=c,c=l,l=p),d>=De)return s(c,h)+(l?s(l,1-h):"")+"Z";var p,y,v,g,m,x,b,_,w,k,T,M,A=0,S=0,L=[];if((g=(+o.apply(this,arguments)||0)/2)&&(v=n===ta?Math.sqrt(l*l+c*c):+n.apply(this,arguments),h||(S*=-1),c&&(S=Ie(v/c*Math.sin(g))),l&&(A=Ie(v/l*Math.sin(g)))),c){m=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var O=Math.abs(f-u-2*S)<=Oe?0:1;if(S&&la(m,x,b,_)===h^O){var C=(u+f)/2;m=c*Math.cos(C),x=c*Math.sin(C),b=_=null}}else m=x=0;if(l){w=l*Math.cos(f-A),k=l*Math.sin(f-A),T=l*Math.cos(u+A),M=l*Math.sin(u+A);var D=Math.abs(u-f+2*A)<=Oe?0:1;if(A&&la(w,k,T,M)===1-h^D){var P=(u+f)/2;w=l*Math.cos(P),k=l*Math.sin(P),T=M=null}}else w=k=0;if(d>Se&&(p=Math.min(Math.abs(c-l)/2,+r.apply(this,arguments)))>.001){y=l<c^h?0:1;var E=p,R=p;if(d<Oe){var I=null==T?[w,k]:null==b?[m,x]:Rt([m,x],[T,M],[b,_],[w,k]),z=m-I[0],N=x-I[1],F=b-I[0],j=_-I[1],B=1/Math.sin(Math.acos((z*F+N*j)/(Math.sqrt(z*z+N*N)*Math.sqrt(F*F+j*j)))/2),H=Math.sqrt(I[0]*I[0]+I[1]*I[1]);R=Math.min(p,(l-H)/(B-1)),E=Math.min(p,(c-H)/(B+1))}if(null!=b){var U=sa(null==T?[w,k]:[T,M],[m,x],c,E,h),q=sa([b,_],[w,k],c,E,h);p===E?L.push("M",U[0],"A",E,",",E," 0 0,",y," ",U[1],"A",c,",",c," 0 ",1-h^la(U[1][0],U[1][1],q[1][0],q[1][1]),",",h," ",q[1],"A",E,",",E," 0 0,",y," ",q[0]):L.push("M",U[0],"A",E,",",E," 0 1,",y," ",q[0])}else L.push("M",m,",",x);if(null!=T){var Y=sa([m,x],[T,M],l,-R,h),V=sa([w,k],null==b?[m,x]:[b,_],l,-R,h);p===R?L.push("L",V[0],"A",R,",",R," 0 0,",y," ",V[1],"A",l,",",l," 0 ",h^la(V[1][0],V[1][1],Y[1][0],Y[1][1]),",",1-h," ",Y[1],"A",R,",",R," 0 0,",y," ",Y[0]):L.push("L",V[0],"A",R,",",R," 0 0,",y," ",Y[0])}else L.push("L",w,",",k)}else L.push("M",m,",",x),null!=b&&L.push("A",c,",",c," 0 ",O,",",h," ",b,",",_),L.push("L",w,",",k),null!=T&&L.push("A",l,",",l," 0 ",D,",",1-h," ",T,",",M);return L.push("Z"),L.join("")}function s(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return l.innerRadius=function(t){return arguments.length?(e=vt(t),l):e},l.outerRadius=function(e){return arguments.length?(t=vt(e),l):t},l.cornerRadius=function(e){return arguments.length?(r=vt(e),l):r},l.padRadius=function(e){return arguments.length?(n=e==ta?ta:vt(e),l):n},l.startAngle=function(e){return arguments.length?(a=vt(e),l):a},l.endAngle=function(e){return arguments.length?(i=vt(e),l):i},l.padAngle=function(e){return arguments.length?(o=vt(e),l):o},l.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Pe;return[Math.cos(n)*r,Math.sin(n)*r]},l};var ta="auto";function ra(e){return e.innerRadius}function na(e){return e.outerRadius}function aa(e){return e.startAngle}function ia(e){return e.endAngle}function oa(e){return e&&e.padAngle}function la(e,t,r,n){return(e-r)*t-(t-n)*e>0?0:1}function sa(e,t,r,n,a){var i=e[0]-t[0],o=e[1]-t[1],l=(a?n:-n)/Math.sqrt(i*i+o*o),s=l*o,c=-l*i,u=e[0]+s,f=e[1]+c,d=t[0]+s,h=t[1]+c,p=(u+d)/2,y=(f+h)/2,v=d-u,g=h-f,m=v*v+g*g,x=r-n,b=u*h-d*f,_=(g<0?-1:1)*Math.sqrt(Math.max(0,x*x*m-b*b)),w=(b*g-v*_)/m,k=(-b*v-g*_)/m,T=(b*g+v*_)/m,M=(-b*v+g*_)/m,A=w-p,S=k-y,L=T-p,O=M-y;return A*A+S*S>L*L+O*O&&(w=T,k=M),[[w-s,k-c],[w*r/x,k*r/x]]}function ca(){return!0}function ua(e){var t=Lt,r=Ot,n=ca,a=da,i=a.key,o=.7;function l(i){var l,s=[],c=[],u=-1,f=i.length,d=vt(t),h=vt(r);function p(){s.push("M",a(e(c),o))}for(;++u<f;)n.call(this,l=i[u],u)?c.push([+d.call(this,l,u),+h.call(this,l,u)]):c.length&&(p(),c=[]);return c.length&&p(),s.length?s.join(""):null}return l.x=function(e){return arguments.length?(t=e,l):t},l.y=function(e){return arguments.length?(r=e,l):r},l.defined=function(e){return arguments.length?(n=e,l):n},l.interpolate=function(e){return arguments.length?(i="function"==typeof e?a=e:(a=fa.get(e)||da).key,l):i},l.tension=function(e){return arguments.length?(o=e,l):o},l}i.svg.line=function(){return ua(I)};var fa=i.map({linear:da,"linear-closed":ha,step:function(e){var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];for(;++t<r;)a.push("H",(n[0]+(n=e[t])[0])/2,"V",n[1]);r>1&&a.push("H",n[0]);return a.join("")},"step-before":pa,"step-after":ya,basis:ma,"basis-open":function(e){if(e.length<4)return da(e);var t,r=[],n=-1,a=e.length,i=[0],o=[0];for(;++n<3;)t=e[n],i.push(t[0]),o.push(t[1]);r.push(xa(wa,i)+","+xa(wa,o)),--n;for(;++n<a;)t=e[n],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),ka(r,i,o);return r.join("")},"basis-closed":function(e){var t,r,n=-1,a=e.length,i=a+4,o=[],l=[];for(;++n<4;)r=e[n%a],o.push(r[0]),l.push(r[1]);t=[xa(wa,o),",",xa(wa,l)],--n;for(;++n<i;)r=e[n%a],o.shift(),o.push(r[0]),l.shift(),l.push(r[1]),ka(t,o,l);return t.join("")},bundle:function(e,t){var r=e.length-1;if(r)for(var n,a,i=e[0][0],o=e[0][1],l=e[r][0]-i,s=e[r][1]-o,c=-1;++c<=r;)n=e[c],a=c/r,n[0]=t*n[0]+(1-t)*(i+a*l),n[1]=t*n[1]+(1-t)*(o+a*s);return ma(e)},cardinal:function(e,t){return e.length<3?da(e):e[0]+va(e,ga(e,t))},"cardinal-open":function(e,t){return e.length<4?da(e):e[1]+va(e.slice(1,-1),ga(e,t))},"cardinal-closed":function(e,t){return e.length<3?ha(e):e[0]+va((e.push(e[0]),e),ga([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?da(e):e[0]+va(e,function(e){var t,r,n,a,i=[],o=function(e){var t=0,r=e.length-1,n=[],a=e[0],i=e[1],o=n[0]=Ta(a,i);for(;++t<r;)n[t]=(o+(o=Ta(a=i,i=e[t+1])))/2;return n[t]=o,n}(e),l=-1,s=e.length-1;for(;++l<s;)t=Ta(e[l],e[l+1]),w(t)<Se?o[l]=o[l+1]=0:(r=o[l]/t,n=o[l+1]/t,(a=r*r+n*n)>9&&(a=3*t/Math.sqrt(a),o[l]=a*r,o[l+1]=a*n));l=-1;for(;++l<=s;)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+o[l]*o[l])),i.push([a||0,o[l]*a||0]);return i}(e))}});function da(e){return e.length>1?e.join("L"):e+"Z"}function ha(e){return e.join("L")+"Z"}function pa(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("V",(n=e[t])[1],"H",n[0]);return a.join("")}function ya(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("H",(n=e[t])[0],"V",n[1]);return a.join("")}function va(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return da(e);var r=e.length!=t.length,n="",a=e[0],i=e[1],o=t[0],l=o,s=1;if(r&&(n+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],a=e[1],s=2),t.length>1){l=t[1],i=e[s],s++,n+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,s++)i=e[s],l=t[c],n+="S"+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1]}if(r){var u=e[s];n+="Q"+(i[0]+2*l[0]/3)+","+(i[1]+2*l[1]/3)+","+u[0]+","+u[1]}return n}function ga(e,t){for(var r,n=[],a=(1-t)/2,i=e[0],o=e[1],l=1,s=e.length;++l<s;)r=i,i=o,o=e[l],n.push([a*(o[0]-r[0]),a*(o[1]-r[1])]);return n}function ma(e){if(e.length<3)return da(e);var t=1,r=e.length,n=e[0],a=n[0],i=n[1],o=[a,a,a,(n=e[1])[0]],l=[i,i,i,n[1]],s=[a,",",i,"L",xa(wa,o),",",xa(wa,l)];for(e.push(e[r-1]);++t<=r;)n=e[t],o.shift(),o.push(n[0]),l.shift(),l.push(n[1]),ka(s,o,l);return e.pop(),s.push("L",n),s.join("")}function xa(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}fa.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var ba=[0,2/3,1/3,0],_a=[0,1/3,2/3,0],wa=[0,1/6,2/3,1/6];function ka(e,t,r){e.push("C",xa(ba,t),",",xa(ba,r),",",xa(_a,t),",",xa(_a,r),",",xa(wa,t),",",xa(wa,r))}function Ta(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Ma(e){for(var t,r,n,a=-1,i=e.length;++a<i;)r=(t=e[a])[0],n=t[1]-Pe,t[0]=r*Math.cos(n),t[1]=r*Math.sin(n);return e}function Aa(e){var t=Lt,r=Lt,n=0,a=Ot,i=ca,o=da,l=o.key,s=o,c="L",u=.7;function f(l){var f,d,h,p=[],y=[],v=[],g=-1,m=l.length,x=vt(t),b=vt(n),_=t===r?function(){return d}:vt(r),w=n===a?function(){return h}:vt(a);function k(){p.push("M",o(e(v),u),c,s(e(y.reverse()),u),"Z")}for(;++g<m;)i.call(this,f=l[g],g)?(y.push([d=+x.call(this,f,g),h=+b.call(this,f,g)]),v.push([+_.call(this,f,g),+w.call(this,f,g)])):y.length&&(k(),y=[],v=[]);return y.length&&k(),p.length?p.join(""):null}return f.x=function(e){return arguments.length?(t=r=e,f):r},f.x0=function(e){return arguments.length?(t=e,f):t},f.x1=function(e){return arguments.length?(r=e,f):r},f.y=function(e){return arguments.length?(n=a=e,f):a},f.y0=function(e){return arguments.length?(n=e,f):n},f.y1=function(e){return arguments.length?(a=e,f):a},f.defined=function(e){return arguments.length?(i=e,f):i},f.interpolate=function(e){return arguments.length?(l="function"==typeof e?o=e:(o=fa.get(e)||da).key,s=o.reverse||o,c=o.closed?"M":"L",f):l},f.tension=function(e){return arguments.length?(u=e,f):u},f}function Sa(e){return e.source}function La(e){return e.target}function Oa(e){return e.radius}function Ca(e){return[e.x,e.y]}function Da(){return 64}function Pa(){return"circle"}function Ea(e){var t=Math.sqrt(e/Oe);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}i.svg.line.radial=function(){var e=ua(Ma);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},pa.reverse=ya,ya.reverse=pa,i.svg.area=function(){return Aa(I)},i.svg.area.radial=function(){var e=Aa(Ma);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},i.svg.chord=function(){var e=Sa,t=La,r=Oa,n=aa,a=ia;function i(r,n){var a,i,c=o(this,e,r,n),u=o(this,t,r,n);return"M"+c.p0+l(c.r,c.p1,c.a1-c.a0)+(i=u,(a=c).a0==i.a0&&a.a1==i.a1?s(c.r,c.p1,c.r,c.p0):s(c.r,c.p1,u.r,u.p0)+l(u.r,u.p1,u.a1-u.a0)+s(u.r,u.p1,c.r,c.p0))+"Z"}function o(e,t,i,o){var l=t.call(e,i,o),s=r.call(e,l,o),c=n.call(e,l,o)-Pe,u=a.call(e,l,o)-Pe;return{r:s,a0:c,a1:u,p0:[s*Math.cos(c),s*Math.sin(c)],p1:[s*Math.cos(u),s*Math.sin(u)]}}function l(e,t,r){return"A"+e+","+e+" 0 "+ +(r>Oe)+",1 "+t}function s(e,t,r,n){return"Q 0,0 "+n}return i.radius=function(e){return arguments.length?(r=vt(e),i):r},i.source=function(t){return arguments.length?(e=vt(t),i):e},i.target=function(e){return arguments.length?(t=vt(e),i):t},i.startAngle=function(e){return arguments.length?(n=vt(e),i):n},i.endAngle=function(e){return arguments.length?(a=vt(e),i):a},i},i.svg.diagonal=function(){var e=Sa,t=La,r=Ca;function n(n,a){var i=e.call(this,n,a),o=t.call(this,n,a),l=(i.y+o.y)/2,s=[i,{x:i.x,y:l},{x:o.x,y:l},o];return"M"+(s=s.map(r))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return n.source=function(t){return arguments.length?(e=vt(t),n):e},n.target=function(e){return arguments.length?(t=vt(e),n):t},n.projection=function(e){return arguments.length?(r=e,n):r},n},i.svg.diagonal.radial=function(){var e=i.svg.diagonal(),t=Ca,r=e.projection;return e.projection=function(e){return arguments.length?r(function(e){return function(){var t=e.apply(this,arguments),r=t[0],n=t[1]-Pe;return[r*Math.cos(n),r*Math.sin(n)]}}(t=e)):t},e},i.svg.symbol=function(){var e=Pa,t=Da;function r(r,n){return(Ra.get(e.call(this,r,n))||Ea)(t.call(this,r,n))}return r.type=function(t){return arguments.length?(e=vt(t),r):e},r.size=function(e){return arguments.length?(t=vt(e),r):t},r};var Ra=i.map({circle:Ea,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*za)),r=t*za;return"M0,"+-t+"L"+r+",0 0,"+t+" "+-r+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Ia),r=t*Ia/2;return"M0,"+r+"L"+t+","+-r+" "+-t+","+-r+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Ia),r=t*Ia/2;return"M0,"+-r+"L"+t+","+r+" "+-t+","+r+"Z"}});i.svg.symbolTypes=Ra.keys();var Ia=Math.sqrt(3),za=Math.tan(30*Ee);K.transition=function(e){for(var t,r,n=Ba||++qa,a=Ga(e),i=[],o=Ha||{time:Date.now(),ease:Dr,delay:0,duration:250},l=-1,s=this.length;++l<s;){i.push(t=[]);for(var c=this[l],u=-1,f=c.length;++u<f;)(r=c[u])&&Za(r,u,a,n,o),t.push(r)}return ja(i,a,n)},K.interrupt=function(e){return this.each(null==e?Na:Fa(Ga(e)))};var Na=Fa(Ga());function Fa(e){return function(){var t,r,n;(t=this[e])&&(n=t[r=t.active])&&(n.timer.c=null,n.timer.t=NaN,--t.count?delete t[r]:delete this[e],t.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function ja(e,t,r){return G(e,Ua),e.namespace=t,e.id=r,e}var Ba,Ha,Ua=[],qa=0;function Ya(e,t,r,n){var a=e.id,i=e.namespace;return pe(e,"function"==typeof r?function(e,o,l){e[i][a].tween.set(t,n(r.call(e,e.__data__,o,l)))}:(r=n(r),function(e){e[i][a].tween.set(t,r)}))}function Va(e){return null==e&&(e=""),function(){this.textContent=e}}function Ga(e){return null==e?"__transition__":"__transition_"+e+"__"}function Za(e,t,r,n,a){var i,o,l,s,c,u=e[r]||(e[r]={active:0,count:0}),f=u[n];function d(r){var a=u.active,d=u[a];for(var p in d&&(d.timer.c=null,d.timer.t=NaN,--u.count,delete u[a],d.event&&d.event.interrupt.call(e,e.__data__,d.index)),u)if(+p<n){var y=u[p];y.timer.c=null,y.timer.t=NaN,--u.count,delete u[p]}o.c=h,Tt(function(){return o.c&&h(r||1)&&(o.c=null,o.t=NaN),1},0,i),u.active=n,f.event&&f.event.start.call(e,e.__data__,t),c=[],f.tween.forEach(function(r,n){(n=n.call(e,e.__data__,t))&&c.push(n)}),s=f.ease,l=f.duration}function h(a){for(var i=a/l,o=s(i),d=c.length;d>0;)c[--d].call(e,o);if(i>=1)return f.event&&f.event.end.call(e,e.__data__,t),--u.count?delete u[n]:delete e[r],1}f||(i=a.time,o=Tt(function(e){var t=f.delay;if(o.t=t+i,t<=e)return d(e-t);o.c=d},0,i),f=u[n]={tween:new T,time:i,timer:o,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++u.count)}Ua.call=K.call,Ua.empty=K.empty,Ua.node=K.node,Ua.size=K.size,i.transition=function(e,t){return e&&e.transition?Ba?e.transition(t):e:i.selection().transition(e)},i.transition.prototype=Ua,Ua.select=function(e){var t,r,n,a=this.id,i=this.namespace,o=[];e=$(e);for(var l=-1,s=this.length;++l<s;){o.push(t=[]);for(var c=this[l],u=-1,f=c.length;++u<f;)(n=c[u])&&(r=e.call(n,n.__data__,u,l))?("__data__"in n&&(r.__data__=n.__data__),Za(r,u,i,a,n[i][a]),t.push(r)):t.push(null)}return ja(o,i,a)},Ua.selectAll=function(e){var t,r,n,a,i,o=this.id,l=this.namespace,s=[];e=Q(e);for(var c=-1,u=this.length;++c<u;)for(var f=this[c],d=-1,h=f.length;++d<h;)if(n=f[d]){i=n[l][o],r=e.call(n,n.__data__,d,c),s.push(t=[]);for(var p=-1,y=r.length;++p<y;)(a=r[p])&&Za(a,p,l,o,i),t.push(a)}return ja(s,l,o)},Ua.filter=function(e){var t,r,n=[];"function"!=typeof e&&(e=he(e));for(var a=0,i=this.length;a<i;a++){n.push(t=[]);for(var o,l=0,s=(o=this[a]).length;l<s;l++)(r=o[l])&&e.call(r,r.__data__,l,a)&&t.push(r)}return ja(n,this.namespace,this.id)},Ua.tween=function(e,t){var r=this.id,n=this.namespace;return arguments.length<2?this.node()[n][r].tween.get(e):pe(this,null==t?function(t){t[n][r].tween.remove(e)}:function(a){a[n][r].tween.set(e,t)})},Ua.attr=function(e,t){if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var r="transform"==e?Ur:wr,n=i.ns.qualify(e);function a(){this.removeAttribute(n)}function o(){this.removeAttributeNS(n.space,n.local)}return Ya(this,"attr."+e,t,n.local?function(e){return null==e?o:(e+="",function(){var t,a=this.getAttributeNS(n.space,n.local);return a!==e&&(t=r(a,e),function(e){this.setAttributeNS(n.space,n.local,t(e))})})}:function(e){return null==e?a:(e+="",function(){var t,a=this.getAttribute(n);return a!==e&&(t=r(a,e),function(e){this.setAttribute(n,t(e))})})})},Ua.attrTween=function(e,t){var r=i.ns.qualify(e);return this.tween("attr."+e,r.local?function(e,n){var a=t.call(this,e,n,this.getAttributeNS(r.space,r.local));return a&&function(e){this.setAttributeNS(r.space,r.local,a(e))}}:function(e,n){var a=t.call(this,e,n,this.getAttribute(r));return a&&function(e){this.setAttribute(r,a(e))}})},Ua.style=function(e,t,r){var n=arguments.length;if(n<3){if("string"!=typeof e){for(r in n<2&&(t=""),e)this.style(r,e[r],t);return this}r=""}function a(){this.style.removeProperty(e)}return Ya(this,"style."+e,t,function(t){return null==t?a:(t+="",function(){var n,a=u(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(n=wr(a,t),function(t){this.style.setProperty(e,n(t),r)})})})},Ua.styleTween=function(e,t,r){return arguments.length<3&&(r=""),this.tween("style."+e,function(n,a){var i=t.call(this,n,a,u(this).getComputedStyle(this,null).getPropertyValue(e));return i&&function(t){this.style.setProperty(e,i(t),r)}})},Ua.text=function(e){return Ya(this,"text",e,Va)},Ua.remove=function(){var e=this.namespace;return this.each("end.transition",function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Ua.ease=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].ease:("function"!=typeof e&&(e=i.ease.apply(i,arguments)),pe(this,function(n){n[r][t].ease=e}))},Ua.delay=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].delay:pe(this,"function"==typeof e?function(n,a,i){n[r][t].delay=+e.call(n,n.__data__,a,i)}:(e=+e,function(n){n[r][t].delay=e}))},Ua.duration=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].duration:pe(this,"function"==typeof e?function(n,a,i){n[r][t].duration=Math.max(1,e.call(n,n.__data__,a,i))}:(e=Math.max(1,e),function(n){n[r][t].duration=e}))},Ua.each=function(e,t){var r=this.id,n=this.namespace;if(arguments.length<2){var a=Ha,o=Ba;try{Ba=r,pe(this,function(t,a,i){Ha=t[n][r],e.call(t,t.__data__,a,i)})}finally{Ha=a,Ba=o}}else pe(this,function(a){var o=a[n][r];(o.event||(o.event=i.dispatch("start","end","interrupt"))).on(e,t)});return this},Ua.transition=function(){for(var e,t,r,n=this.id,a=++qa,i=this.namespace,o=[],l=0,s=this.length;l<s;l++){o.push(e=[]);for(var c,u=0,f=(c=this[l]).length;u<f;u++)(t=c[u])&&Za(t,u,i,a,{time:(r=t[i][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),e.push(t)}return ja(o,i,a)},i.svg.axis=function(){var e,t=i.scale.linear(),r=Wa,n=6,a=6,o=3,s=[10],c=null;function u(l){l.each(function(){var l,u=i.select(this),f=this.__chart__||t,d=this.__chart__=t.copy(),h=null==c?d.ticks?d.ticks.apply(d,s):d.domain():c,p=null==e?d.tickFormat?d.tickFormat.apply(d,s):I:e,y=u.selectAll(".tick").data(h,d),v=y.enter().insert("g",".domain").attr("class","tick").style("opacity",Se),g=i.transition(y.exit()).style("opacity",Se).remove(),m=i.transition(y.order()).style("opacity",1),x=Math.max(n,0)+o,b=Fn(d),_=u.selectAll(".domain").data([0]),w=(_.enter().append("path").attr("class","domain"),i.transition(_));v.append("line"),v.append("text");var k,T,M,A,S=v.select("line"),L=m.select("line"),O=y.select("text").text(p),C=v.select("text"),D=m.select("text"),P="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(l=Xa,k="x",M="y",T="x2",A="y2",O.attr("dy",P<0?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+b[0]+","+P*a+"V0H"+b[1]+"V"+P*a)):(l=Ka,k="y",M="x",T="y2",A="x2",O.attr("dy",".32em").style("text-anchor",P<0?"end":"start"),w.attr("d","M"+P*a+","+b[0]+"H0V"+b[1]+"H"+P*a)),S.attr(A,P*n),C.attr(M,P*x),L.attr(T,0).attr(A,P*n),D.attr(k,0).attr(M,P*x),d.rangeBand){var E=d,R=E.rangeBand()/2;f=d=function(e){return E(e)+R}}else f.rangeBand?f=d:g.call(l,d,f);v.call(l,f,d),m.call(l,d,d)})}return u.scale=function(e){return arguments.length?(t=e,u):t},u.orient=function(e){return arguments.length?(r=e in Ja?e+"":Wa,u):r},u.ticks=function(){return arguments.length?(s=l(arguments),u):s},u.tickValues=function(e){return arguments.length?(c=e,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(e){var t=arguments.length;return t?(n=+e,a=+arguments[t-1],u):n},u.innerTickSize=function(e){return arguments.length?(n=+e,u):n},u.outerTickSize=function(e){return arguments.length?(a=+e,u):a},u.tickPadding=function(e){return arguments.length?(o=+e,u):o},u.tickSubdivide=function(){return arguments.length&&u},u};var Wa="bottom",Ja={top:1,right:1,bottom:1,left:1};function Xa(e,t,r){e.attr("transform",function(e){var n=t(e);return"translate("+(isFinite(n)?n:r(e))+",0)"})}function Ka(e,t,r){e.attr("transform",function(e){var n=t(e);return"translate(0,"+(isFinite(n)?n:r(e))+")"})}i.svg.brush=function(){var e,t,r=Y(d,"brushstart","brush","brushend"),n=null,a=null,o=[0,0],l=[0,0],s=!0,c=!0,f=Qa[0];function d(e){e.each(function(){var e=i.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",v).on("touchstart.brush",v),t=e.selectAll(".background").data([0]);t.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var r=e.selectAll(".resize").data(f,I);r.exit().remove(),r.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return $a[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),r.style("display",d.empty()?"none":null);var o,l=i.transition(e),s=i.transition(t);n&&(o=Fn(n),s.attr("x",o[0]).attr("width",o[1]-o[0]),p(l)),a&&(o=Fn(a),s.attr("y",o[0]).attr("height",o[1]-o[0]),y(l)),h(l)})}function h(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+o[+/e$/.test(e)]+","+l[+/^s/.test(e)]+")"})}function p(e){e.select(".extent").attr("x",o[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",o[1]-o[0])}function y(e){e.select(".extent").attr("y",l[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function v(){var f,v,g=this,m=i.select(i.event.target),x=r.of(g,arguments),b=i.select(g),_=m.datum(),w=!/^(n|s)$/.test(_)&&n,k=!/^(e|w)$/.test(_)&&a,T=m.classed("extent"),M=ke(g),A=i.mouse(g),S=i.select(u(g)).on("keydown.brush",function(){32==i.event.keyCode&&(T||(f=null,A[0]-=o[1],A[1]-=l[1],T=2),U())}).on("keyup.brush",function(){32==i.event.keyCode&&2==T&&(A[0]+=o[1],A[1]+=l[1],T=0,U())});if(i.event.changedTouches?S.on("touchmove.brush",C).on("touchend.brush",P):S.on("mousemove.brush",C).on("mouseup.brush",P),b.interrupt().selectAll("*").interrupt(),T)A[0]=o[0]-A[0],A[1]=l[0]-A[1];else if(_){var L=+/w$/.test(_),O=+/^n/.test(_);v=[o[1-L]-A[0],l[1-O]-A[1]],A[0]=o[L],A[1]=l[O]}else i.event.altKey&&(f=A.slice());function C(){var e=i.mouse(g),t=!1;v&&(e[0]+=v[0],e[1]+=v[1]),T||(i.event.altKey?(f||(f=[(o[0]+o[1])/2,(l[0]+l[1])/2]),A[0]=o[+(e[0]<f[0])],A[1]=l[+(e[1]<f[1])]):f=null),w&&D(e,n,0)&&(p(b),t=!0),k&&D(e,a,1)&&(y(b),t=!0),t&&(h(b),x({type:"brush",mode:T?"move":"resize"}))}function D(r,n,a){var i,u,d=Fn(n),h=d[0],p=d[1],y=A[a],v=a?l:o,g=v[1]-v[0];if(T&&(h-=y,p-=g+y),i=(a?c:s)?Math.max(h,Math.min(p,r[a])):r[a],T?u=(i+=y)+g:(f&&(y=Math.max(h,Math.min(p,2*f[a]-i))),y<i?(u=i,i=y):u=y),v[0]!=i||v[1]!=u)return a?t=null:e=null,v[0]=i,v[1]=u,!0}function P(){C(),b.style("pointer-events","all").selectAll(".resize").style("display",d.empty()?"none":null),i.select("body").style("cursor",null),S.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),M(),x({type:"brushend"})}b.style("pointer-events","none").selectAll(".resize").style("display",null),i.select("body").style("cursor",m.style("cursor")),x({type:"brushstart"}),C()}return d.event=function(n){n.each(function(){var n=r.of(this,arguments),a={x:o,y:l,i:e,j:t},s=this.__chart__||a;this.__chart__=a,Ba?i.select(this).transition().each("start.brush",function(){e=s.i,t=s.j,o=s.x,l=s.y,n({type:"brushstart"})}).tween("brush:brush",function(){var r=kr(o,a.x),i=kr(l,a.y);return e=t=null,function(e){o=a.x=r(e),l=a.y=i(e),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){e=a.i,t=a.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},d.x=function(e){return arguments.length?(f=Qa[!(n=e)<<1|!a],d):n},d.y=function(e){return arguments.length?(f=Qa[!n<<1|!(a=e)],d):a},d.clamp=function(e){return arguments.length?(n&&a?(s=!!e[0],c=!!e[1]):n?s=!!e:a&&(c=!!e),d):n&&a?[s,c]:n?s:a?c:null},d.extent=function(r){var i,s,c,u,f;return arguments.length?(n&&(i=r[0],s=r[1],a&&(i=i[0],s=s[0]),e=[i,s],n.invert&&(i=n(i),s=n(s)),s<i&&(f=i,i=s,s=f),i==o[0]&&s==o[1]||(o=[i,s])),a&&(c=r[0],u=r[1],n&&(c=c[1],u=u[1]),t=[c,u],a.invert&&(c=a(c),u=a(u)),u<c&&(f=c,c=u,u=f),c==l[0]&&u==l[1]||(l=[c,u])),d):(n&&(e?(i=e[0],s=e[1]):(i=o[0],s=o[1],n.invert&&(i=n.invert(i),s=n.invert(s)),s<i&&(f=i,i=s,s=f))),a&&(t?(c=t[0],u=t[1]):(c=l[0],u=l[1],a.invert&&(c=a.invert(c),u=a.invert(u)),u<c&&(f=c,c=u,u=f))),n&&a?[[i,c],[s,u]]:n?[i,s]:a&&[c,u])},d.clear=function(){return d.empty()||(o=[0,0],l=[0,0],e=t=null),d},d.empty=function(){return!!n&&o[0]==o[1]||!!a&&l[0]==l[1]},i.rebind(d,r,"on")};var $a={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qa=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];function ei(e){return JSON.parse(e.responseText)}function ti(e){var t=s.createRange();return t.selectNode(s.body),t.createContextualFragment(e.responseText)}i.text=gt(function(e){return e.responseText}),i.json=function(e,t){return mt(e,"application/json",ei,t)},i.html=function(e,t){return mt(e,"text/html",ti,t)},i.xml=gt(function(e){return e.responseXML}),void 0===(a="function"==typeof(n=i)?n.call(t,r,t,e):n)||(e.exports=a)}).apply(self)},45408:function(e,t,r){"use strict";var n=r(4168);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o,l=r(86832).codes,s=l.ERR_AMBIGUOUS_ARGUMENT,c=l.ERR_INVALID_ARG_TYPE,u=l.ERR_INVALID_ARG_VALUE,f=l.ERR_INVALID_RETURN_VALUE,d=l.ERR_MISSING_ARGS,h=r(26144),p=r(35840).inspect,y=r(35840).types,v=y.isPromise,g=y.isRegExp,m=Object.assign?Object.assign:r(60964).assign,x=Object.is?Object.is:r(39896);new Map;function b(){var e=r(25116);i=e.isDeepEqual,o=e.isDeepStrictEqual}var _=!1,w=e.exports=A,k={};function T(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function M(e,t,r,n){if(!r){var a=!1;if(0===t)a=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=a,i}}function A(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];M.apply(void 0,[A,t.length].concat(t))}w.fail=function e(t,r,a,i,o){var l,s=arguments.length;0===s?l="Failed":1===s?(a=t,t=void 0):(!1===_&&(_=!0,(n.emitWarning?n.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===s&&(i="!="));if(a instanceof Error)throw a;var c={actual:t,expected:r,operator:void 0===i?"fail":i,stackStartFn:o||e};void 0!==a&&(c.message=a);var u=new h(c);throw l&&(u.message=l,u.generatedMessage=!0),u},w.AssertionError=h,w.ok=A,w.equal=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t!=r&&T({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},w.notEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t==r&&T({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},w.deepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&b(),i(t,r)||T({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},w.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&b(),i(t,r)&&T({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},w.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&b(),o(t,r)||T({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},w.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&b();o(t,r)&&T({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},w.strictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");x(t,r)||T({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},w.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");x(t,r)&&T({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var S=function e(t,r,n){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach(function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&g(t[e])&&t[e].test(n[e])?a[e]=n[e]:a[e]=t[e])})};function L(e,t,r,n){if("function"!=typeof t){if(g(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var l=new h({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw l.operator=n.name,l}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new u("error",t,"may not be an empty object");return void 0===i&&b(),s.forEach(function(a){"string"==typeof e[a]&&g(t[a])&&t[a].test(e[a])||function(e,t,r,n,a,i){if(!(r in e&&o(e[r],t[r]))){if(!n){var l=new S(e,a),s=new S(t,a,e),c=new h({actual:l,expected:s,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=e,c.expected=t,c.operator=i.name,c}T({actual:e,expected:t,message:n,operator:i.name,stackStartFn:i})}}(e,t,a,r,s,n)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return k}function C(e){return v(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function D(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!C(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!C(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return k}).catch(function(e){return e})})}function P(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===a(t)&&null!==t){if(t.message===r)throw new s("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new s("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==a(r)&&"function"!=typeof r)throw new c("error",["Object","Error","Function","RegExp"],r);if(t===k){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var o="rejects"===e.name?"rejection":"exception";T({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(r&&!L(t,r,n,e))throw t}function E(e,t,r,n){if(t!==k){if("string"==typeof r&&(n=r,r=void 0),!r||L(t,r)){var a=n?": ".concat(n):".",i="doesNotReject"===e.name?"rejection":"exception";T({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(i).concat(a,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];M.apply(void 0,[R,t.length].concat(t))}w.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];P.apply(void 0,[e,O(t)].concat(n))},w.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return D(t).then(function(t){return P.apply(void 0,[e,t].concat(n))})},w.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];E.apply(void 0,[e,O(t)].concat(n))},w.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return D(t).then(function(t){return E.apply(void 0,[e,t].concat(n))})},w.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=p(t);var n=new h({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var l=n.stack.split("\n"),s=0;s<o.length;s++){var c=l.indexOf(o[s]);if(-1!==c){l=l.slice(0,c);break}}n.stack="".concat(l.join("\n"),"\n").concat(o.join("\n"))}throw n}},w.strict=m(R,w,{equal:w.strictEqual,deepEqual:w.deepStrictEqual,notEqual:w.notStrictEqual,notDeepEqual:w.notDeepStrictEqual}),w.strict.strict=w.strict},26144:function(e,t,r){"use strict";var n=r(4168);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?l(e):t}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)})(e)}function c(e,t,r){return(c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&u(a,r.prototype),a}).apply(null,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var h=r(35840).inspect,p=r(86832).codes.ERR_INVALID_ARG_TYPE;function y(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var v="",g="",m="",x="",b={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},_=10;function w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function k(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function T(e,t,r){var a="",i="",o=0,l="",s=!1,c=k(e),u=c.split("\n"),f=k(t).split("\n"),h=0,p="";if("strictEqual"===r&&"object"===d(e)&&"object"===d(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===f.length&&u[0]!==f[0]){var w=u[0].length+f[0].length;if(w<=_){if(!("object"===d(e)&&null!==e||"object"===d(t)&&null!==t||0===e&&0===t))return"".concat(b[r],"\n\n")+"".concat(u[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r){if(w<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;u[0][h]===f[0][h];)h++;h>2&&(p="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}}for(var T=u[u.length-1],M=f[f.length-1];T===M&&(h++<2?l="\n ".concat(T).concat(l):a=T,u.pop(),f.pop(),0!==u.length&&0!==f.length);)T=u[u.length-1],M=f[f.length-1];var A=Math.max(u.length,f.length);if(0===A){var S=c.split("\n");if(S.length>30)for(S[26]="".concat(v,"...").concat(x);S.length>27;)S.pop();return"".concat(b.notIdentical,"\n\n").concat(S.join("\n"),"\n")}h>3&&(l="\n".concat(v,"...").concat(x).concat(l),s=!0),""!==a&&(l="\n ".concat(a).concat(l),a="");var L=0,O=b[r]+"\n".concat(g,"+ actual").concat(x," ").concat(m,"- expected").concat(x),C=" ".concat(v,"...").concat(x," Lines skipped");for(h=0;h<A;h++){var D=h-o;if(u.length<h+1)D>1&&h>2&&(D>4?(i+="\n".concat(v,"...").concat(x),s=!0):D>3&&(i+="\n ".concat(f[h-2]),L++),i+="\n ".concat(f[h-1]),L++),o=h,a+="\n".concat(m,"-").concat(x," ").concat(f[h]),L++;else if(f.length<h+1)D>1&&h>2&&(D>4?(i+="\n".concat(v,"...").concat(x),s=!0):D>3&&(i+="\n ".concat(u[h-2]),L++),i+="\n ".concat(u[h-1]),L++),o=h,i+="\n".concat(g,"+").concat(x," ").concat(u[h]),L++;else{var P=f[h],E=u[h],R=E!==P&&(!y(E,",")||E.slice(0,-1)!==P);R&&y(P,",")&&P.slice(0,-1)===E&&(R=!1,E+=","),R?(D>1&&h>2&&(D>4?(i+="\n".concat(v,"...").concat(x),s=!0):D>3&&(i+="\n ".concat(u[h-2]),L++),i+="\n ".concat(u[h-1]),L++),o=h,i+="\n".concat(g,"+").concat(x," ").concat(E),a+="\n".concat(m,"-").concat(x," ").concat(P),L+=2):(i+=a,a="",1!==D&&0!==h||(i+="\n ".concat(E),L++))}if(L>20&&h<A-2)return"".concat(O).concat(C,"\n").concat(i,"\n").concat(v,"...").concat(x).concat(a,"\n")+"".concat(v,"...").concat(x)}return"".concat(O).concat(s?C:"","\n").concat(i).concat(a).concat(l).concat(p)}var M=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==d(e)||null===e)throw new p("options","Object",e);var a=e.message,i=e.operator,s=e.stackStartFn,c=e.actual,u=e.expected,h=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=a)r=o(this,f(t).call(this,String(a)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(v="[34m",g="[32m",x="[39m",m="[31m"):(v="",g="",x="",m="")),"object"===d(c)&&null!==c&&"object"===d(u)&&null!==u&&"stack"in c&&c instanceof Error&&"stack"in u&&u instanceof Error&&(c=w(c),u=w(u)),"deepStrictEqual"===i||"strictEqual"===i)r=o(this,f(t).call(this,T(c,u,i)));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var y=b[i],_=k(c).split("\n");if("notStrictEqual"===i&&"object"===d(c)&&null!==c&&(y=b.notStrictEqualObject),_.length>30)for(_[26]="".concat(v,"...").concat(x);_.length>27;)_.pop();r=1===_.length?o(this,f(t).call(this,"".concat(y," ").concat(_[0]))):o(this,f(t).call(this,"".concat(y,"\n\n").concat(_.join("\n"),"\n")))}else{var M=k(c),A="",S=b[i];"notDeepEqual"===i||"notEqual"===i?(M="".concat(b[i],"\n\n").concat(M)).length>1024&&(M="".concat(M.slice(0,1021),"...")):(A="".concat(k(u)),M.length>512&&(M="".concat(M.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===i||"equal"===i?M="".concat(S,"\n\n").concat(M,"\n\nshould equal\n\n"):A=" ".concat(i," ").concat(A)),r=o(this,f(t).call(this,"".concat(M).concat(A)))}return Error.stackTraceLimit=h,r.generatedMessage=!a,Object.defineProperty(l(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=u,r.operator=i,Error.captureStackTrace&&Error.captureStackTrace(l(r),s),r.stack,r.name="AssertionError",o(r)}var r,c,y;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,s(Error)),r=t,(c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){a(e,t,r[t])})}return e}({},t,{customInspect:!1,depth:0}))}}])&&i(r.prototype,c),y&&i(r,y),t}();e.exports=M},86832:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l,s,c={};function u(e,t,r){r||(r=Error);var n=function(n){function l(r,n,o){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(s=a(this,i(l).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o)))).code=e,s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(l,r),l}();c[e]=n}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",function(e,t,a){var i,o,s,c;if(void 0===l&&(l=r(45408)),l("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(i," ").concat(f(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(f(t,"type"))}return c+=". Received type ".concat(n(a))},TypeError),u("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(35840));var a=s.inspect(t);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(a)},TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",function(e,t,r){var a;return a=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(a,".")},TypeError),u("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===l&&(l=r(45408)),l(t.length>0,"At least one arg needs to be specified");var a="The ",i=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),i){case 1:a+="".concat(t[0]," argument");break;case 2:a+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:a+=t.slice(0,i-1).join(", "),a+=", and ".concat(t[i-1]," arguments")}return"".concat(a," must be specified")},TypeError),e.exports.codes=c},25116:function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(n=(o=l.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(a)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},l=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},s=Object.is?Object.is:r(39896),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:r(1560);function f(e){return e.call.bind(e)}var d=f(Object.prototype.hasOwnProperty),h=f(Object.prototype.propertyIsEnumerable),p=f(Object.prototype.toString),y=r(35840).types,v=y.isAnyArrayBuffer,g=y.isArrayBufferView,m=y.isDate,x=y.isMap,b=y.isRegExp,_=y.isSet,w=y.isNativeError,k=y.isBoxedPrimitive,T=y.isNumberObject,M=y.isStringObject,A=y.isBooleanObject,S=y.isBigIntObject,L=y.isSymbolObject,O=y.isFloat32Array,C=y.isFloat64Array;function D(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(D).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function E(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0}var R=!0,I=!1,z=0,N=1,F=2,j=3;function B(e,t,r,n){if(e===t)return 0!==e||(!r||s(e,t));if(r){if("object"!==a(e))return"number"==typeof e&&u(e)&&u(t);if("object"!==a(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==a(e))return(null===t||"object"!==a(t))&&e==t;if(null===t||"object"!==a(t))return!1}var o,l,c,f,d=p(e);if(d!==p(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var h=P(e),y=P(t);return h.length===y.length&&U(e,t,r,n,N,h)}if("[object Object]"===d&&(!x(e)&&x(t)||!_(e)&&_(t)))return!1;if(m(e)){if(!m(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(b(e)){if(!(b(t)&&(c=e,f=t,i?c.source===f.source&&c.flags===f.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(f))))return!1}else if(w(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(g(e)){if(r||!O(e)&&!C(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===E(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var D=P(e),R=P(t);return D.length===R.length&&U(e,t,r,n,z,D)}if(_(e))return!(!_(t)||e.size!==t.size)&&U(e,t,r,n,F);if(x(e))return!(!x(t)||e.size!==t.size)&&U(e,t,r,n,j);if(v(e)){if(l=t,(o=e).byteLength!==l.byteLength||0!==E(new Uint8Array(o),new Uint8Array(l)))return!1}else if(k(e)&&!function(e,t){return T(e)?T(t)&&s(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):M(e)?M(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):S(e)?S(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):L(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return U(e,t,r,n,z)}function H(e,t){return t.filter(function(t){return h(e,t)})}function U(e,t,r,i,s,u){if(5===arguments.length){u=Object.keys(e);var f=Object.keys(t);if(u.length!==f.length)return!1}for(var p=0;p<u.length;p++)if(!d(t,u[p]))return!1;if(r&&5===arguments.length){var y=c(e);if(0!==y.length){var v=0;for(p=0;p<y.length;p++){var g=y[p];if(h(e,g)){if(!h(t,g))return!1;u.push(g),v++}else if(h(t,g))return!1}var m=c(t);if(y.length!==m.length&&H(t,m).length!==v)return!1}else{var x=c(t);if(0!==x.length&&0!==H(t,x).length)return!1}}if(0===u.length&&(s===z||s===N&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var b=i.val1.get(e);if(void 0!==b){var _=i.val2.get(t);if(void 0!==_)return b===_}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var w=function(e,t,r,i,s,c){var u=0;if(c===F){if(!function(e,t,r,n){for(var i=null,l=o(e),s=0;s<l.length;s++){var c=l[s];if("object"===a(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!t.has(c)){if(r)return!1;if(!V(e,t,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var u=o(t),f=0;f<u.length;f++){var d=u[f];if("object"===a(d)&&null!==d){if(!q(i,d,r,n))return!1}else if(!r&&!e.has(d)&&!q(i,d,r,n))return!1}return 0===i.size}return!0}(e,t,r,s))return!1}else if(c===j){if(!function(e,t,r,i){for(var o=null,s=l(e),c=0;c<s.length;c++){var u=n(s[c],2),f=u[0],d=u[1];if("object"===a(f)&&null!==f)null===o&&(o=new Set),o.add(f);else{var h=t.get(f);if(void 0===h&&!t.has(f)||!B(d,h,r,i)){if(r)return!1;if(!G(e,t,f,d,i))return!1;null===o&&(o=new Set),o.add(f)}}}if(null!==o){for(var p=l(t),y=0;y<p.length;y++){var v=n(p[y],2),f=v[0],g=v[1];if("object"===a(f)&&null!==f){if(!Z(o,e,f,g,r,i))return!1}else if(!(r||e.has(f)&&B(e.get(f),g,!1,i)||Z(o,e,f,g,!1,i)))return!1}return 0===o.size}return!0}(e,t,r,s))return!1}else if(c===N)for(;u<e.length;u++){if(!d(e,u)){if(d(t,u))return!1;for(var f=Object.keys(e);u<f.length;u++){var h=f[u];if(!d(t,h)||!B(e[h],t[h],r,s))return!1}return f.length===Object.keys(t).length}if(!d(t,u)||!B(e[u],t[u],r,s))return!1}for(u=0;u<i.length;u++){var p=i[u];if(!B(e[p],t[p],r,s))return!1}return!0}(e,t,r,u,i,s);return i.val1.delete(e),i.val2.delete(t),w}function q(e,t,r,n){for(var a=o(e),i=0;i<a.length;i++){var l=a[i];if(B(t,l,r,n))return e.delete(l),!0}return!1}function Y(e){switch(a(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(u(e))return!1}return!0}function V(e,t,r){var n=Y(r);return null!=n?n:t.has(n)&&!e.has(n)}function G(e,t,r,n,a){var i=Y(r);if(null!=i)return i;var o=t.get(i);return!(void 0===o&&!t.has(i)||!B(n,o,!1,a))&&(!e.has(i)&&B(n,o,!1,a))}function Z(e,t,r,n,a,i){for(var l=o(e),s=0;s<l.length;s++){var c=l[s];if(B(r,c,a,i)&&B(n,t.get(c),a,i))return e.delete(c),!0}return!1}e.exports={isDeepEqual:function(e,t){return B(e,t,I)},isDeepStrictEqual:function(e,t){return B(e,t,R)}}},83160:function(e,t,r){"use strict";r.r(t),r.d(t,{decode:function(){return l},encode:function(){return o}});for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<n.length;i++)a[n.charCodeAt(i)]=i;var o=function(e){var t,r=new Uint8Array(e),a=r.length,i="";for(t=0;t<a;t+=3)i+=n[r[t]>>2],i+=n[(3&r[t])<<4|r[t+1]>>4],i+=n[(15&r[t+1])<<2|r[t+2]>>6],i+=n[63&r[t+2]];return a%3==2?i=i.substring(0,i.length-1)+"=":a%3==1&&(i=i.substring(0,i.length-2)+"=="),i},l=function(e){var t,r,n,i,o,l=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(l--,"="===e[e.length-2]&&l--);var u=new ArrayBuffer(l),f=new Uint8Array(u);for(t=0;t<s;t+=4)r=a[e.charCodeAt(t)],n=a[e.charCodeAt(t+1)],i=a[e.charCodeAt(t+2)],o=a[e.charCodeAt(t+3)],f[c++]=r<<2|n>>4,f[c++]=(15&n)<<4|i>>2,f[c++]=(3&i)<<6|63&o;return u}},59968:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=s(e),o=i[0],l=i[1],c=new a(function(e,t,r){return 3*(t+r)/4-r}(0,o,l)),u=0,f=l>0?o-4:o;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t);1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,i=[],o=0,l=n-a;o<l;o+=16383)i.push(c(e,o,o+16383>l?l:o+16383));1===a?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=i.length;o<l;++o)r[o]=i[o],n[i.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var a,i,o=[],l=t;l<n;l+=3)a=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),o.push(r[(i=a)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},99676:function(e,t,r){"use strict";var n=r(53664),a=r(57916),i=a(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?a(r):r}},57916:function(e,t,r){"use strict";var n=r(8844),a=r(53664),i=r(14500),o=a("%TypeError%"),l=a("%Function.prototype.apply%"),s=a("%Function.prototype.call%"),c=a("%Reflect.apply%",!0)||n.call(s,l),u=a("%Object.defineProperty%",!0),f=a("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var t=c(n,s,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(n,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},57624:function(e,t,r){"use strict";function n(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}r.d(t,{E9:function(){return d},SO:function(){return y}});var a,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=i.exec(e)))throw new Error("invalid format: "+e);var t;return new l({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function l(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function s(e,t){var r=n(e,t);if(!r)return e+"";var a=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}o.prototype=l.prototype,l.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var c={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return s(100*e,t)},r:s,s:function(e,t){var r=n(e,t);if(!r)return e+"";var i=r[0],o=r[1],l=o-(a=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return l===s?i:l>s?i+new Array(l-s+1).join("0"):l>0?i.slice(0,l)+"."+i.slice(l):"0."+new Array(1-l).join("0")+n(e,Math.max(0,t+l-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function u(e){return e}var f,d,h=Array.prototype.map,p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function y(e){var t,r,i=void 0===e.grouping||void 0===e.thousands?u:(t=h.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var a=e.length,i=[],o=0,l=t[0],s=0;a>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),i.push(e.substring(a-=l,a+l)),!((s+=l+1)>n));)l=t[o=(o+1)%t.length];return i.reverse().join(r)}),l=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",f=void 0===e.decimal?".":e.decimal+"",d=void 0===e.numerals?u:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(h.call(e.numerals,String)),y=void 0===e.percent?"%":e.percent+"",v=void 0===e.minus?"-":e.minus+"",g=void 0===e.nan?"NaN":e.nan+"";function m(e){var t=(e=o(e)).fill,r=e.align,n=e.sign,u=e.symbol,h=e.zero,m=e.width,x=e.comma,b=e.precision,_=e.trim,w=e.type;"n"===w?(x=!0,w="g"):c[w]||(void 0===b&&(b=12),_=!0,w="g"),(h||"0"===t&&"="===r)&&(h=!0,t="0",r="=");var k="$"===u?l:"#"===u&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",T="$"===u?s:/[%p]/.test(w)?y:"",M=c[w],A=/[defgprs%]/.test(w);function S(e){var o,l,s,c=k,u=T;if("c"===w)u=M(e)+u,e="";else{var y=(e=+e)<0||1/e<0;if(e=isNaN(e)?g:M(Math.abs(e),b),_&&(e=function(e){e:for(var t,r=e.length,n=1,a=-1;n<r;++n)switch(e[n]){case".":a=t=n;break;case"0":0===a&&(a=n),t=n;break;default:if(!+e[n])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),y&&0==+e&&"+"!==n&&(y=!1),c=(y?"("===n?n:v:"-"===n||"("===n?"":n)+c,u=("s"===w?p[8+a/3]:"")+u+(y&&"("===n?")":""),A)for(o=-1,l=e.length;++o<l;)if(48>(s=e.charCodeAt(o))||s>57){u=(46===s?f+e.slice(o+1):e.slice(o))+u,e=e.slice(0,o);break}}x&&!h&&(e=i(e,1/0));var S=c.length+e.length+u.length,L=S<m?new Array(m-S+1).join(t):"";switch(x&&h&&(e=i(L+e,L.length?m-u.length:1/0),L=""),r){case"<":e=c+e+u+L;break;case"=":e=c+L+e+u;break;case"^":e=L.slice(0,S=L.length>>1)+c+e+u+L.slice(S);break;default:e=L+c+e+u}return d(e)}return b=void 0===b?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return e+""},S}return{format:m,formatPrefix:function(e,t){var r,a=m(((e=o(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((r=t,((r=n(Math.abs(r)))?r[1]:NaN)/3)))),l=Math.pow(10,-i),s=p[8+i/3];return function(e){return a(l*e)+s}}}}f=y({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),d=f.format,f.formatPrefix},94336:function(e,t,r){"use strict";r.d(t,{Yn:function(){return p},m_:function(){return d},E9:function(){return y}});var n=r(8208),a=r(58931),i=r(46192),o=r(68936),l=r(32171),s=r(53528);function c(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function u(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function f(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function d(e){var t=e.dateTime,r=e.date,l=e.time,s=e.periods,d=e.days,h=e.shortDays,p=e.months,y=e.shortMonths,g=w(s),m=k(s),x=w(d),b=k(d),_=w(h),Se=k(h),Le=w(p),Oe=k(p),Ce=w(y),De=k(y),Pe={a:function(e){return h[e.getDay()]},A:function(e){return d[e.getDay()]},b:function(e){return y[e.getMonth()]},B:function(e){return p[e.getMonth()]},c:null,d:Y,e:Y,f:J,H:V,I:G,j:Z,L:W,m:X,M:K,p:function(e){return s[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Me,s:Ae,S:$,u:Q,U:ee,V:te,w:re,W:ne,x:null,X:null,y:ae,Y:ie,Z:oe,"%":Te},Ee={a:function(e){return h[e.getUTCDay()]},A:function(e){return d[e.getUTCDay()]},b:function(e){return y[e.getUTCMonth()]},B:function(e){return p[e.getUTCMonth()]},c:null,d:le,e:le,f:de,H:se,I:ce,j:ue,L:fe,m:he,M:pe,p:function(e){return s[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Me,s:Ae,S:ye,u:ve,U:ge,V:me,w:xe,W:be,x:null,X:null,y:_e,Y:we,Z:ke,"%":Te},Re={a:function(e,t,r){var n=_.exec(t.slice(r));return n?(e.w=Se[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=x.exec(t.slice(r));return n?(e.w=b[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=Ce.exec(t.slice(r));return n?(e.m=De[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=Le.exec(t.slice(r));return n?(e.m=Oe[n[0].toLowerCase()],r+n[0].length):-1},c:function(e,r,n){return Ne(e,t,r,n)},d:R,e:R,f:B,H:z,I:z,j:I,L:j,m:E,M:N,p:function(e,t,r){var n=g.exec(t.slice(r));return n?(e.p=m[n[0].toLowerCase()],r+n[0].length):-1},q:P,Q:U,s:q,S:F,u:M,U:A,V:S,w:T,W:L,x:function(e,t,n){return Ne(e,r,t,n)},X:function(e,t,r){return Ne(e,l,t,r)},y:C,Y:O,Z:D,"%":H};function Ie(e,t){return function(r){var n,a,i,o=[],l=-1,s=0,c=e.length;for(r instanceof Date||(r=new Date(+r));++l<c;)37===e.charCodeAt(l)&&(o.push(e.slice(s,l)),null!=(a=v[n=e.charAt(++l)])?n=e.charAt(++l):a="e"===n?" ":"0",(i=t[n])&&(n=i(r,a)),o.push(n),s=l+1);return o.push(e.slice(s,l)),o.join("")}}function ze(e,t){return function(r){var l,s,d=f(1900,void 0,1);if(Ne(d,e,r+="",0)!=r.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(1e3*d.s+("L"in d?d.L:0));if(!t||"Z"in d||(d.Z=0),"p"in d&&(d.H=d.H%12+12*d.p),void 0===d.m&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(s=(l=u(f(d.y,0,1))).getUTCDay(),l=s>4||0===s?n.ot.ceil(l):(0,n.ot)(l),l=a.c.offset(l,7*(d.V-1)),d.y=l.getUTCFullYear(),d.m=l.getUTCMonth(),d.d=l.getUTCDate()+(d.w+6)%7):(s=(l=c(f(d.y,0,1))).getDay(),l=s>4||0===s?i.qT.ceil(l):(0,i.qT)(l),l=o.c.offset(l,7*(d.V-1)),d.y=l.getFullYear(),d.m=l.getMonth(),d.d=l.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),s="Z"in d?u(f(d.y,0,1)).getUTCDay():c(f(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+7*d.W-(s+5)%7:d.w+7*d.U-(s+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,u(d)):c(d)}}function Ne(e,t,r,n){for(var a,i,o=0,l=t.length,s=r.length;o<l;){if(n>=s)return-1;if(37===(a=t.charCodeAt(o++))){if(a=t.charAt(o++),!(i=Re[a in v?t.charAt(o++):a])||(n=i(e,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}return Pe.x=Ie(r,Pe),Pe.X=Ie(l,Pe),Pe.c=Ie(t,Pe),Ee.x=Ie(r,Ee),Ee.X=Ie(l,Ee),Ee.c=Ie(t,Ee),{format:function(e){var t=Ie(e+="",Pe);return t.toString=function(){return e},t},parse:function(e){var t=ze(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ie(e+="",Ee);return t.toString=function(){return e},t},utcParse:function(e){var t=ze(e+="",!0);return t.toString=function(){return e},t}}}var h,p,y,v={"-":"",_:" ",0:"0"},g=/^\s*\d+/,m=/^%/,x=/[\\^$*+?|[\]().{}]/g;function b(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function _(e){return e.replace(x,"\\$&")}function w(e){return new RegExp("^(?:"+e.map(_).join("|")+")","i")}function k(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function T(e,t,r){var n=g.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function M(e,t,r){var n=g.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function A(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function S(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function L(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function O(e,t,r){var n=g.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function C(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function D(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function P(e,t,r){var n=g.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function E(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function R(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function I(e,t,r){var n=g.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function z(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function N(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function F(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function j(e,t,r){var n=g.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function B(e,t,r){var n=g.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function H(e,t,r){var n=m.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function U(e,t,r){var n=g.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function q(e,t,r){var n=g.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Y(e,t){return b(e.getDate(),t,2)}function V(e,t){return b(e.getHours(),t,2)}function G(e,t){return b(e.getHours()%12||12,t,2)}function Z(e,t){return b(1+o.c.count((0,l.c)(e),e),t,3)}function W(e,t){return b(e.getMilliseconds(),t,3)}function J(e,t){return W(e,t)+"000"}function X(e,t){return b(e.getMonth()+1,t,2)}function K(e,t){return b(e.getMinutes(),t,2)}function $(e,t){return b(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function ee(e,t){return b(i.uU.count((0,l.c)(e)-1,e),t,2)}function te(e,t){var r=e.getDay();return e=r>=4||0===r?(0,i.kD)(e):i.kD.ceil(e),b(i.kD.count((0,l.c)(e),e)+(4===(0,l.c)(e).getDay()),t,2)}function re(e){return e.getDay()}function ne(e,t){return b(i.qT.count((0,l.c)(e)-1,e),t,2)}function ae(e,t){return b(e.getFullYear()%100,t,2)}function ie(e,t){return b(e.getFullYear()%1e4,t,4)}function oe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function le(e,t){return b(e.getUTCDate(),t,2)}function se(e,t){return b(e.getUTCHours(),t,2)}function ce(e,t){return b(e.getUTCHours()%12||12,t,2)}function ue(e,t){return b(1+a.c.count((0,s.c)(e),e),t,3)}function fe(e,t){return b(e.getUTCMilliseconds(),t,3)}function de(e,t){return fe(e,t)+"000"}function he(e,t){return b(e.getUTCMonth()+1,t,2)}function pe(e,t){return b(e.getUTCMinutes(),t,2)}function ye(e,t){return b(e.getUTCSeconds(),t,2)}function ve(e){var t=e.getUTCDay();return 0===t?7:t}function ge(e,t){return b(n.EV.count((0,s.c)(e)-1,e),t,2)}function me(e,t){var r=e.getUTCDay();return e=r>=4||0===r?(0,n.yA)(e):n.yA.ceil(e),b(n.yA.count((0,s.c)(e),e)+(4===(0,s.c)(e).getUTCDay()),t,2)}function xe(e){return e.getUTCDay()}function be(e,t){return b(n.ot.count((0,s.c)(e)-1,e),t,2)}function _e(e,t){return b(e.getUTCFullYear()%100,t,2)}function we(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function ke(){return"+0000"}function Te(){return"%"}function Me(e){return+e}function Ae(e){return Math.floor(+e/1e3)}h=d({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"]}),p=h.format,h.parse,y=h.utcFormat,h.utcParse},68936:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(81628),a=r(69792),i=(0,n.c)(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a.iy)/a.SK},function(e){return e.getDate()-1});t.c=i;var o=i.range},69792:function(e,t,r){"use strict";r.d(t,{KK:function(){return l},SK:function(){return o},cg:function(){return i},iy:function(){return a},yc:function(){return n}});var n=1e3,a=6e4,i=36e5,o=864e5,l=6048e5},73220:function(e,t,r){"use strict";r.r(t),r.d(t,{timeDay:function(){return g.c},timeDays:function(){return g.m},timeFriday:function(){return m.iB},timeFridays:function(){return m.sJ},timeHour:function(){return y},timeHours:function(){return v},timeInterval:function(){return n.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return o},timeMinute:function(){return d},timeMinutes:function(){return h},timeMonday:function(){return m.qT},timeMondays:function(){return m.QP},timeMonth:function(){return b},timeMonths:function(){return _},timeSaturday:function(){return m.Wc},timeSaturdays:function(){return m.aI},timeSecond:function(){return c},timeSeconds:function(){return u},timeSunday:function(){return m.uU},timeSundays:function(){return m.Ab},timeThursday:function(){return m.kD},timeThursdays:function(){return m.eC},timeTuesday:function(){return m.Mf},timeTuesdays:function(){return m.Oc},timeWednesday:function(){return m.eg},timeWednesdays:function(){return m.sn},timeWeek:function(){return m.uU},timeWeeks:function(){return m.Ab},timeYear:function(){return w.c},timeYears:function(){return w.Q},utcDay:function(){return O.c},utcDays:function(){return O.o},utcFriday:function(){return C.od},utcFridays:function(){return C.iG},utcHour:function(){return S},utcHours:function(){return L},utcMillisecond:function(){return i},utcMilliseconds:function(){return o},utcMinute:function(){return T},utcMinutes:function(){return M},utcMonday:function(){return C.ot},utcMondays:function(){return C.iO},utcMonth:function(){return P},utcMonths:function(){return E},utcSaturday:function(){return C.Ad},utcSaturdays:function(){return C.K8},utcSecond:function(){return c},utcSeconds:function(){return u},utcSunday:function(){return C.EV},utcSundays:function(){return C.Wq},utcThursday:function(){return C.yA},utcThursdays:function(){return C.ob},utcTuesday:function(){return C.sG},utcTuesdays:function(){return C.kl},utcWednesday:function(){return C._6},utcWednesdays:function(){return C.W_},utcWeek:function(){return C.EV},utcWeeks:function(){return C.Wq},utcYear:function(){return R.c},utcYears:function(){return R.i}});var n=r(81628),a=(0,n.c)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,n.c)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):a:null};var i=a,o=a.range,l=r(69792),s=(0,n.c)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*l.yc)},function(e,t){return(t-e)/l.yc},function(e){return e.getUTCSeconds()}),c=s,u=s.range,f=(0,n.c)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l.yc)},function(e,t){e.setTime(+e+t*l.iy)},function(e,t){return(t-e)/l.iy},function(e){return e.getMinutes()}),d=f,h=f.range,p=(0,n.c)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l.yc-e.getMinutes()*l.iy)},function(e,t){e.setTime(+e+t*l.cg)},function(e,t){return(t-e)/l.cg},function(e){return e.getHours()}),y=p,v=p.range,g=r(68936),m=r(46192),x=(0,n.c)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),b=x,_=x.range,w=r(32171),k=(0,n.c)(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*l.iy)},function(e,t){return(t-e)/l.iy},function(e){return e.getUTCMinutes()}),T=k,M=k.range,A=(0,n.c)(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*l.cg)},function(e,t){return(t-e)/l.cg},function(e){return e.getUTCHours()}),S=A,L=A.range,O=r(58931),C=r(8208),D=(0,n.c)(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),P=D,E=D.range,R=r(53528)},81628:function(e,t,r){"use strict";r.d(t,{c:function(){return i}});var n=new Date,a=new Date;function i(e,t,r,o){function l(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return l.floor=function(t){return e(t=new Date(+t)),t},l.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},l.round=function(e){var t=l(e),r=l.ceil(e);return e-t<r-e?t:r},l.offset=function(e,r){return t(e=new Date(+e),null==r?1:Math.floor(r)),e},l.range=function(r,n,a){var i,o=[];if(r=l.ceil(r),a=null==a?1:Math.floor(a),!(r<n&&a>0))return o;do{o.push(i=new Date(+r)),t(r,a),e(r)}while(i<r&&r<n);return o},l.filter=function(r){return i(function(t){if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););})},r&&(l.count=function(t,i){return n.setTime(+t),a.setTime(+i),e(n),e(a),Math.floor(r(n,a))},l.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?l.filter(o?function(t){return o(t)%e==0}:function(t){return l.count(0,t)%e==0}):l:null}),l}},58931:function(e,t,r){"use strict";r.d(t,{o:function(){return o}});var n=r(81628),a=r(69792),i=(0,n.c)(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/a.SK},function(e){return e.getUTCDate()-1});t.c=i;var o=i.range},8208:function(e,t,r){"use strict";r.d(t,{Ad:function(){return d},EV:function(){return o},K8:function(){return x},W_:function(){return v},Wq:function(){return h},_6:function(){return c},iG:function(){return m},iO:function(){return p},kl:function(){return y},ob:function(){return g},od:function(){return f},ot:function(){return l},sG:function(){return s},yA:function(){return u}});var n=r(81628),a=r(69792);function i(e){return(0,n.c)(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/a.KK})}var o=i(0),l=i(1),s=i(2),c=i(3),u=i(4),f=i(5),d=i(6),h=o.range,p=l.range,y=s.range,v=c.range,g=u.range,m=f.range,x=d.range},53528:function(e,t,r){"use strict";r.d(t,{i:function(){return i}});var n=r(81628),a=(0,n.c)(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});a.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,n.c)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},t.c=a;var i=a.range},46192:function(e,t,r){"use strict";r.d(t,{Ab:function(){return h},Mf:function(){return s},Oc:function(){return y},QP:function(){return p},Wc:function(){return d},aI:function(){return x},eC:function(){return g},eg:function(){return c},iB:function(){return f},kD:function(){return u},qT:function(){return l},sJ:function(){return m},sn:function(){return v},uU:function(){return o}});var n=r(81628),a=r(69792);function i(e){return(0,n.c)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a.iy)/a.KK})}var o=i(0),l=i(1),s=i(2),c=i(3),u=i(4),f=i(5),d=i(6),h=o.range,p=l.range,y=s.range,v=c.range,g=u.range,m=f.range,x=d.range},32171:function(e,t,r){"use strict";r.d(t,{Q:function(){return i}});var n=r(81628),a=(0,n.c)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});a.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,n.c)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},t.c=a;var i=a.range},64348:function(e,t,r){"use strict";var n=r(39640)(),a=r(53664),i=n&&a("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(e){i=!1}var o=a("%SyntaxError%"),l=a("%TypeError%"),s=r(2304);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new l("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],f=!!s&&s(e,t);if(i)i(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===n&&f?f.enumerable:!n,value:r,writable:null===a&&f?f.writable:!a});else{if(!u&&(n||a||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},81288:function(e,t,r){"use strict";var n=r(41820),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,o=Array.prototype.concat,l=Object.defineProperty,s=r(39640)(),c=l&&s,u=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(a=n)||"[object Function]"!==i.call(a)||!n())return;var a;c?l(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},f=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(t);a&&(i=o.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l<i.length;l+=1)u(e,i[l],t[i[l]],r[i[l]])};f.supportsDescriptors=!!c,e.exports=f},60964:function(e){"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var i=Object.keys(Object(a)),o=0,l=i.length;o<l;o++){var s=i[o],c=Object.getOwnPropertyDescriptor(a,s);void 0!==c&&c.enumerable&&(r[s]=a[s])}}return r}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},61252:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){function a(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}p(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&p(e,"error",t,r)}(e,a,{once:!0})})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var a,i,o,c;if(l(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(a=s(e))>0&&o.length>a&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(n);return a.listener=r,n.wrapFn=a,a}function f(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(a):h(a,a.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function p(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function a(i){n.once&&e.removeEventListener(t,a),r(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var a="error"===e,i=this._events;if(void 0!==i)a=a&&void 0===i.error;else if(!a)return!1;if(a){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else{var c=s.length,u=h(s,c);for(r=0;r<c;++r)n(u[r],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return l(t),this.on(e,u(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,u(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,a,i,o;if(l(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,a),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var a,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(a=i[n])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},38248:function(e,t,r){"use strict";var n=r(94576);e.exports=function(e){var t=typeof e;if("string"===t){var r=e;if(0===(e=+e)&&n(r))return!1}else if("number"!==t)return!1;return e-e<1}},46492:function(e,t,r){"use strict";var n=r(90720),a=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),"[object Array]"===a.call(e)?function(e,t,r){for(var n=0,a=e.length;n<a;n++)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,o):"string"==typeof e?function(e,t,r){for(var n=0,a=e.length;n<a;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,o):function(e,t,r){for(var n in e)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,o)}},74336:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var a=0;a<t.length;a+=1)r[a+e.length]=t[a];return r};e.exports=function(e){var a=this;if("function"!=typeof a||"[object Function]"!==t.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var i,o=function(e,t){for(var r=[],n=t||0,a=0;n<e.length;n+=1,a+=1)r[a]=e[n];return r}(arguments,1),l=r(0,a.length-o.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(s,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=a.apply(this,n(o,arguments));return Object(t)===t?t:this}return a.apply(e,n(o,arguments))}),a.prototype){var u=function(){};u.prototype=a.prototype,i.prototype=new u,u.prototype=null}return i}},8844:function(e,t,r){"use strict";var n=r(74336);e.exports=Function.prototype.bind||n},53664:function(e,t,r){"use strict";var n=SyntaxError,a=Function,i=TypeError,o=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var s=function(){throw new i},c=l?function(){try{return arguments.callee,s}catch(e){try{return l(arguments,"callee").get}catch(e){return s}}}():s,u=r(71080)(),f=r(69572)(),d=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),h={},p="undefined"!=typeof Uint8Array&&d?d(Uint8Array):void 0,y={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u&&d?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&d?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&d?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u&&d?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&d?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(d)try{null.error}catch(e){var v=d(d(e));y["%Error.prototype%"]=v}var g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(8844),x=r(92064),b=m.call(Function.call,Array.prototype.concat),_=m.call(Function.apply,Array.prototype.splice),w=m.call(Function.call,String.prototype.replace),k=m.call(Function.call,String.prototype.slice),T=m.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,S=function(e,t){var r,a=e;if(x(g,a)&&(a="%"+(r=g[a])[0]+"%"),x(y,a)){var l=y[a];if(l===h&&(l=function e(t){var r;if("%AsyncFunction%"===t)r=o("async function () {}");else if("%GeneratorFunction%"===t)r=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=o("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&d&&(r=d(a.prototype))}return y[t]=r,r}(a)),void 0===l&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:a,value:l}}throw new n("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var a=[];return w(e,M,function(e,t,r,n){a[a.length]=r?w(n,A,"$1"):t||e}),a}(e),a=r.length>0?r[0]:"",o=S("%"+a+"%",t),s=o.name,c=o.value,u=!1,f=o.alias;f&&(a=f[0],_(r,b([0,1],f)));for(var d=1,h=!0;d<r.length;d+=1){var p=r[d],v=k(p,0,1),g=k(p,-1);if(('"'===v||"'"===v||"`"===v||'"'===g||"'"===g||"`"===g)&&v!==g)throw new n("property names with quotes must have matching quotes");if("constructor"!==p&&h||(u=!0),x(y,s="%"+(a+="."+p)+"%"))c=y[s];else if(null!=c){if(!(p in c)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=r.length){var m=l(c,p);c=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[p]}else h=x(c,p),c=c[p];h&&!u&&(y[s]=c)}}return c}},12408:function(e){e.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],l=t[5],s=t[6],c=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],y=t[13],v=t[14],g=t[15];return e[0]=l*(d*g-h*v)-f*(s*g-c*v)+y*(s*h-c*d),e[1]=-(n*(d*g-h*v)-f*(a*g-i*v)+y*(a*h-i*d)),e[2]=n*(s*g-c*v)-l*(a*g-i*v)+y*(a*c-i*s),e[3]=-(n*(s*h-c*d)-l*(a*h-i*d)+f*(a*c-i*s)),e[4]=-(o*(d*g-h*v)-u*(s*g-c*v)+p*(s*h-c*d)),e[5]=r*(d*g-h*v)-u*(a*g-i*v)+p*(a*h-i*d),e[6]=-(r*(s*g-c*v)-o*(a*g-i*v)+p*(a*c-i*s)),e[7]=r*(s*h-c*d)-o*(a*h-i*d)+u*(a*c-i*s),e[8]=o*(f*g-h*y)-u*(l*g-c*y)+p*(l*h-c*f),e[9]=-(r*(f*g-h*y)-u*(n*g-i*y)+p*(n*h-i*f)),e[10]=r*(l*g-c*y)-o*(n*g-i*y)+p*(n*c-i*l),e[11]=-(r*(l*h-c*f)-o*(n*h-i*f)+u*(n*c-i*l)),e[12]=-(o*(f*v-d*y)-u*(l*v-s*y)+p*(l*d-s*f)),e[13]=r*(f*v-d*y)-u*(n*v-a*y)+p*(n*d-a*f),e[14]=-(r*(l*v-s*y)-o*(n*v-a*y)+p*(n*s-a*l)),e[15]=r*(l*d-s*f)-o*(n*d-a*f)+u*(n*s-a*l),e}},76860:function(e){e.exports=function(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},64492:function(e){e.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},54212:function(e){e.exports=function(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},70800:function(e){e.exports=function(e){var t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],c=e[8],u=e[9],f=e[10],d=e[11],h=e[12],p=e[13],y=e[14],v=e[15];return(t*o-r*i)*(f*v-d*y)-(t*l-n*i)*(u*v-d*p)+(t*s-a*i)*(u*y-f*p)+(r*l-n*o)*(c*v-d*h)-(r*s-a*o)*(c*y-f*h)+(n*s-a*l)*(c*p-u*h)}},61784:function(e){e.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r+r,l=n+n,s=a+a,c=r*o,u=n*o,f=n*l,d=a*o,h=a*l,p=a*s,y=i*o,v=i*l,g=i*s;return e[0]=1-f-p,e[1]=u+g,e[2]=d-v,e[3]=0,e[4]=u-g,e[5]=1-c-p,e[6]=h+y,e[7]=0,e[8]=d+v,e[9]=h-y,e[10]=1-c-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},91616:function(e){e.exports=function(e,t,r){var n,a,i,o=r[0],l=r[1],s=r[2],c=Math.sqrt(o*o+l*l+s*s);if(Math.abs(c)<1e-6)return null;return o*=c=1/c,l*=c,s*=c,n=Math.sin(t),a=Math.cos(t),i=1-a,e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},51944:function(e){e.exports=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],l=n+n,s=a+a,c=i+i,u=n*l,f=n*s,d=n*c,h=a*s,p=a*c,y=i*c,v=o*l,g=o*s,m=o*c;return e[0]=1-(h+y),e[1]=f+m,e[2]=d-g,e[3]=0,e[4]=f-m,e[5]=1-(u+y),e[6]=p+v,e[7]=0,e[8]=d+g,e[9]=p-v,e[10]=1-(u+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}},69444:function(e){e.exports=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},48268:function(e){e.exports=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}},21856:function(e){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},79216:function(e){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},57736:function(e){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},38848:function(e){e.exports=function(e,t,r,n,a,i,o){var l=1/(r-t),s=1/(a-n),c=1/(i-o);return e[0]=2*i*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(a+n)*s,e[10]=(o+i)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*c,e[15]=0,e}},36635:function(e){e.exports=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},36524:function(e,t,r){e.exports={create:r(54212),clone:r(76860),copy:r(64492),identity:r(36635),transpose:r(86520),invert:r(4308),adjoint:r(12408),determinant:r(70800),multiply:r(80944),translate:r(35176),scale:r(68152),rotate:r(30016),rotateX:r(15456),rotateY:r(64840),rotateZ:r(4192),fromRotation:r(91616),fromRotationTranslation:r(51944),fromScaling:r(69444),fromTranslation:r(48268),fromXRotation:r(21856),fromYRotation:r(79216),fromZRotation:r(57736),fromQuat:r(61784),frustum:r(38848),perspective:r(51296),perspectiveFromFieldOfView:r(63688),ortho:r(97688),lookAt:r(56508),str:r(89412)}},4308:function(e){e.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],l=t[5],s=t[6],c=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],y=t[13],v=t[14],g=t[15],m=r*l-n*o,x=r*s-a*o,b=r*c-i*o,_=n*s-a*l,w=n*c-i*l,k=a*c-i*s,T=u*y-f*p,M=u*v-d*p,A=u*g-h*p,S=f*v-d*y,L=f*g-h*y,O=d*g-h*v,C=m*O-x*L+b*S+_*A-w*M+k*T;if(!C)return null;return C=1/C,e[0]=(l*O-s*L+c*S)*C,e[1]=(a*L-n*O-i*S)*C,e[2]=(y*k-v*w+g*_)*C,e[3]=(d*w-f*k-h*_)*C,e[4]=(s*A-o*O-c*M)*C,e[5]=(r*O-a*A+i*M)*C,e[6]=(v*b-p*k-g*x)*C,e[7]=(u*k-d*b+h*x)*C,e[8]=(o*L-l*A+c*T)*C,e[9]=(n*A-r*L-i*T)*C,e[10]=(p*w-y*b+g*m)*C,e[11]=(f*b-u*w-h*m)*C,e[12]=(l*M-o*S-s*T)*C,e[13]=(r*S-n*M+a*T)*C,e[14]=(y*x-p*_-v*m)*C,e[15]=(u*_-f*x+d*m)*C,e}},56508:function(e,t,r){var n=r(36635);e.exports=function(e,t,r,a){var i,o,l,s,c,u,f,d,h,p,y=t[0],v=t[1],g=t[2],m=a[0],x=a[1],b=a[2],_=r[0],w=r[1],k=r[2];if(Math.abs(y-_)<1e-6&&Math.abs(v-w)<1e-6&&Math.abs(g-k)<1e-6)return n(e);f=y-_,d=v-w,h=g-k,p=1/Math.sqrt(f*f+d*d+h*h),i=x*(h*=p)-b*(d*=p),o=b*(f*=p)-m*h,l=m*d-x*f,(p=Math.sqrt(i*i+o*o+l*l))?(i*=p=1/p,o*=p,l*=p):(i=0,o=0,l=0);s=d*l-h*o,c=h*i-f*l,u=f*o-d*i,(p=Math.sqrt(s*s+c*c+u*u))?(s*=p=1/p,c*=p,u*=p):(s=0,c=0,u=0);return e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=o,e[5]=c,e[6]=d,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*y+o*v+l*g),e[13]=-(s*y+c*v+u*g),e[14]=-(f*y+d*v+h*g),e[15]=1,e}},80944:function(e){e.exports=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8],d=t[9],h=t[10],p=t[11],y=t[12],v=t[13],g=t[14],m=t[15],x=r[0],b=r[1],_=r[2],w=r[3];return e[0]=x*n+b*l+_*f+w*y,e[1]=x*a+b*s+_*d+w*v,e[2]=x*i+b*c+_*h+w*g,e[3]=x*o+b*u+_*p+w*m,x=r[4],b=r[5],_=r[6],w=r[7],e[4]=x*n+b*l+_*f+w*y,e[5]=x*a+b*s+_*d+w*v,e[6]=x*i+b*c+_*h+w*g,e[7]=x*o+b*u+_*p+w*m,x=r[8],b=r[9],_=r[10],w=r[11],e[8]=x*n+b*l+_*f+w*y,e[9]=x*a+b*s+_*d+w*v,e[10]=x*i+b*c+_*h+w*g,e[11]=x*o+b*u+_*p+w*m,x=r[12],b=r[13],_=r[14],w=r[15],e[12]=x*n+b*l+_*f+w*y,e[13]=x*a+b*s+_*d+w*v,e[14]=x*i+b*c+_*h+w*g,e[15]=x*o+b*u+_*p+w*m,e}},97688:function(e){e.exports=function(e,t,r,n,a,i,o){var l=1/(t-r),s=1/(n-a),c=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(a+n)*s,e[14]=(o+i)*c,e[15]=1,e}},51296:function(e){e.exports=function(e,t,r,n,a){var i=1/Math.tan(t/2),o=1/(n-a);return e[0]=i/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}},63688:function(e){e.exports=function(e,t,r,n){var a=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),c=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(o-l)*s*.5,e[9]=(a-i)*c*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}},30016:function(e){e.exports=function(e,t,r,n){var a,i,o,l,s,c,u,f,d,h,p,y,v,g,m,x,b,_,w,k,T,M,A,S,L=n[0],O=n[1],C=n[2],D=Math.sqrt(L*L+O*O+C*C);if(Math.abs(D)<1e-6)return null;L*=D=1/D,O*=D,C*=D,a=Math.sin(r),i=Math.cos(r),o=1-i,l=t[0],s=t[1],c=t[2],u=t[3],f=t[4],d=t[5],h=t[6],p=t[7],y=t[8],v=t[9],g=t[10],m=t[11],x=L*L*o+i,b=O*L*o+C*a,_=C*L*o-O*a,w=L*O*o-C*a,k=O*O*o+i,T=C*O*o+L*a,M=L*C*o+O*a,A=O*C*o-L*a,S=C*C*o+i,e[0]=l*x+f*b+y*_,e[1]=s*x+d*b+v*_,e[2]=c*x+h*b+g*_,e[3]=u*x+p*b+m*_,e[4]=l*w+f*k+y*T,e[5]=s*w+d*k+v*T,e[6]=c*w+h*k+g*T,e[7]=u*w+p*k+m*T,e[8]=l*M+f*A+y*S,e[9]=s*M+d*A+v*S,e[10]=c*M+h*A+g*S,e[11]=u*M+p*A+m*S,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e}},15456:function(e){e.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[4],o=t[5],l=t[6],s=t[7],c=t[8],u=t[9],f=t[10],d=t[11];t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[4]=i*a+c*n,e[5]=o*a+u*n,e[6]=l*a+f*n,e[7]=s*a+d*n,e[8]=c*a-i*n,e[9]=u*a-o*n,e[10]=f*a-l*n,e[11]=d*a-s*n,e}},64840:function(e){e.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],l=t[2],s=t[3],c=t[8],u=t[9],f=t[10],d=t[11];t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=i*a-c*n,e[1]=o*a-u*n,e[2]=l*a-f*n,e[3]=s*a-d*n,e[8]=i*n+c*a,e[9]=o*n+u*a,e[10]=l*n+f*a,e[11]=s*n+d*a,e}},4192:function(e){e.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],l=t[2],s=t[3],c=t[4],u=t[5],f=t[6],d=t[7];t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=i*a+c*n,e[1]=o*a+u*n,e[2]=l*a+f*n,e[3]=s*a+d*n,e[4]=c*a-i*n,e[5]=u*a-o*n,e[6]=f*a-l*n,e[7]=d*a-s*n,e}},68152:function(e){e.exports=function(e,t,r){var n=r[0],a=r[1],i=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},89412:function(e){e.exports=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}},35176:function(e){e.exports=function(e,t,r){var n,a,i,o,l,s,c,u,f,d,h,p,y=r[0],v=r[1],g=r[2];t===e?(e[12]=t[0]*y+t[4]*v+t[8]*g+t[12],e[13]=t[1]*y+t[5]*v+t[9]*g+t[13],e[14]=t[2]*y+t[6]*v+t[10]*g+t[14],e[15]=t[3]*y+t[7]*v+t[11]*g+t[15]):(n=t[0],a=t[1],i=t[2],o=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8],d=t[9],h=t[10],p=t[11],e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=l,e[5]=s,e[6]=c,e[7]=u,e[8]=f,e[9]=d,e[10]=h,e[11]=p,e[12]=n*y+l*v+f*g+t[12],e[13]=a*y+s*v+d*g+t[13],e[14]=i*y+c*v+h*g+t[14],e[15]=o*y+u*v+p*g+t[15]);return e}},86520:function(e){e.exports=function(e,t){if(e===t){var r=t[1],n=t[2],a=t[3],i=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=i,e[11]=t[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}},2304:function(e,t,r){"use strict";var n=r(53664)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},52264:function(e,t,r){"use strict";var n,a=r(24200);n="function"==typeof r.g.matchMedia?!r.g.matchMedia("(hover: none)").matches:a,e.exports=n},89184:function(e,t,r){"use strict";var n=r(24200);e.exports=n&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return e}()},39640:function(e,t,r){"use strict";var n=r(53664)("%Object.defineProperty%",!0),a=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},69572:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},71080:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,a=r(89320);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&a())))}},89320:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},46672:function(e,t,r){"use strict";var n=r(89320);e.exports=function(){return n()&&!!Symbol.toStringTag}},92064:function(e,t,r){"use strict";var n=Function.prototype.call,a=Object.prototype.hasOwnProperty,i=r(8844);e.exports=i.call(n,a)},35984:function(e,t){t.read=function(e,t,r,n,a){var i,o,l=8*a-n-1,s=(1<<l)-1,c=s>>1,u=-7,f=r?a-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-u)-1,h>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=n;u>0;o=256*o+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),i-=c}return(h?-1:1)*o*Math.pow(2,i-n)},t.write=function(e,t,r,n,a,i){var o,l,s,c=8*i-a-1,u=(1<<c)-1,f=u>>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=u?(l=0,o=u):o+f>=1?(l=(t*s-1)*Math.pow(2,a),o+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[r+h]=255&l,h+=p,l/=256,a-=8);for(o=o<<a|l,c+=a;c>0;e[r+h]=255&o,h+=p,o/=256,c-=8);e[r+h-p]|=128*y}},6768:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},91148:function(e,t,r){"use strict";var n=r(46672)(),a=r(99676)("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},o=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},l=function(){return i(arguments)}();i.isLegacyArguments=o,e.exports=l?i:o},24200:function(e){e.exports=!0},90720:function(e){"use strict";var t,r,n=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},a(function(){throw 42},null,t)}catch(e){e!==r&&(a=null)}else a=null;var i=/^\s*class\b/,o=function(e){try{var t=n.call(e);return i.test(t)}catch(e){return!1}},l=function(e){try{return!o(e)&&(n.call(e),!0)}catch(e){return!1}},s=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var d=document.all;s.call(d)===s.call(document.all)&&(f=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=a?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,t)}catch(e){if(e!==r)return!1}return!o(e)&&l(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return l(e);if(o(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},84420:function(e,t,r){"use strict";var n,a=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,l=r(46672)(),s=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(i.call(e)))return!0;if(!l)return"[object GeneratorFunction]"===a.call(e);if(!s)return!1;if(void 0===n){var t=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&s(t)}return s(e)===n}},85992:function(e){"use strict";e.exports=function(e){return e!=e}},1560:function(e,t,r){"use strict";var n=r(57916),a=r(81288),i=r(85992),o=r(57740),l=r(59736),s=n(o(),Number);a(s,{getPolyfill:o,implementation:i,shim:l}),e.exports=s},57740:function(e,t,r){"use strict";var n=r(85992);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},59736:function(e,t,r){"use strict";var n=r(81288),a=r(57740);e.exports=function(){var e=a();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},94576:function(e){"use strict";e.exports=function(e){for(var t,r=e.length,n=0;n<r;n++)if(((t=e.charCodeAt(n))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},7728:function(e,t,r){"use strict";var n=r(46492),a=r(63436),i=r(99676),o=i("Object.prototype.toString"),l=r(46672)(),s=r(2304),c="undefined"==typeof globalThis?r.g:globalThis,u=a(),f=i("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},d=i("String.prototype.slice"),h={},p=Object.getPrototypeOf;l&&s&&p&&n(u,function(e){var t=new c[e];if(Symbol.toStringTag in t){var r=p(t),n=s(r,Symbol.toStringTag);if(!n){var a=p(r);n=s(a,Symbol.toStringTag)}h[e]=n.get}});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!(l&&Symbol.toStringTag in e)){var t=d(o(e),8,-1);return f(u,t)>-1}return!!s&&function(e){var t=!1;return n(h,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t}(e)}},29128:function(e){var t={left:0,top:0};e.exports=function(e,r,n){r=r||e.currentTarget||e.srcElement,Array.isArray(n)||(n=[0,0]);var a=e.clientX||0,i=e.clientY||0,o=(l=r,l===window||l===document||l===document.body?t:l.getBoundingClientRect());var l;return n[0]=a-o.left,n[1]=i-o.top,n}},88324:function(e,t,r){var n,a,i,o;a="Promise",i=void 0!==r.g?r.g:this,o=function(){"use strict";var e,t,r,n=Object.prototype.toString,a="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(t){e=function(e,t,r){return e[t]=r,e}}function i(e,n){r.add(e,n),t||(t=a(r.drain))}function o(e){var t,r=typeof e;return null==e||"object"!=r&&"function"!=r||(t=e.then),"function"==typeof t&&t}function l(){for(var e=0;e<this.chain.length;e++)s(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function s(e,t,r){var n,a;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(a=o(n))?a.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function c(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(l,t))}function u(e,t,r,n){for(var a=0;a<t.length;a++)!function(a){e.resolve(t[a]).then(function(e){r(a,e)},n)}(a)}function f(e){this.def=e,this.triggered=!1}function d(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new d(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&i(l,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){(function e(t){var r,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(r=o(t))?i(function(){var a=new f(n);try{r.call(t,function(){e.apply(a,arguments)},function(){c.apply(a,arguments)})}catch(e){c.call(a,e)}}):(n.msg=t,n.state=1,n.chain.length>0&&i(l,n))}catch(e){c.call(new f(n),e)}}}).call(t,e)},function(e){c.call(t,e)})}catch(e){c.call(t,e)}}r=function(){var e,r,n;function a(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){n=new a(t,i),r?r.next=n:e=n,r=n,n=void 0},drain:function(){var n=e;for(e=r=t=void 0;n;)n.fn.call(n.self),n=n.next}}}();var p=e({},"constructor",h,!1);return h.prototype=p,e(p,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=n.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var a=e.length,i=Array(a),o=0;u(t,e,function(e,t){i[e]=t,++o===a&&r(i)},n)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=n.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");u(t,e,function(e,t){r(t)},n)})}),h},i[a]=i[a]||o(),e.exports?e.exports=i[a]:void 0===(n=function(){return i[a]}.call(t,r,t,e))||(e.exports=n)},50896:function(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,o,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))r.call(i,c)&&(l[c]=i[c]);if(t){o=t(i);for(var u=0;u<o.length;u++)n.call(i,o[u])&&(l[o[u]]=i[o[u]])}}return l}},76835:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},39896:function(e,t,r){"use strict";var n=r(81288),a=r(57916),i=r(76835),o=r(66148),l=r(16408),s=a(o(),Object);n(s,{getPolyfill:o,implementation:i,shim:l}),e.exports=s},66148:function(e,t,r){"use strict";var n=r(76835);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},16408:function(e,t,r){"use strict";var n=r(66148),a=r(81288);e.exports=function(){var e=n();return a(Object,{is:e},{is:function(){return Object.is!==e}}),e}},32764:function(e,t,r){"use strict";var n;if(!Object.keys){var a=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=r(97344),l=Object.prototype.propertyIsEnumerable,s=!l.call({toString:null},"toString"),c=l.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),n=o(e),l=t&&"[object String]"===i.call(e),d=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var p=c&&r;if(l&&e.length>0&&!a.call(e,0))for(var y=0;y<e.length;++y)d.push(String(y));if(n&&e.length>0)for(var v=0;v<e.length;++v)d.push(String(v));else for(var g in e)p&&"prototype"===g||!a.call(e,g)||d.push(String(g));if(s)for(var m=function(e){if("undefined"==typeof window||!h)return f(e);try{return f(e)}catch(e){return!1}}(e),x=0;x<u.length;++x)m&&"constructor"===u[x]||!a.call(e,u[x])||d.push(u[x]);return d}}e.exports=n},41820:function(e,t,r){"use strict";var n=Array.prototype.slice,a=r(97344),i=Object.keys,o=i?function(e){return i(e)}:r(32764),l=Object.keys;o.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return a(e)?l(n.call(e)):l(e)}):Object.keys=o;return Object.keys||o},e.exports=o},97344:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},21984:function(e){e.exports=function(e){var a=[];return e.replace(r,function(e,r,i){var o=r.toLowerCase();for(i=function(e){var t=e.match(n);return t?t.map(Number):[]}(i),"m"==o&&i.length>2&&(a.push([r].concat(i.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(i.length==t[o])return i.unshift(r),a.push(i);if(i.length<t[o])throw new Error("malformed path data");a.push([r].concat(i.splice(0,t[o])))}}),a};var t={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var n=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},61456:function(e){e.exports=function(e,t,r,n){var a=e[0],i=e[1],o=!1;void 0===r&&(r=0),void 0===n&&(n=t.length);for(var l=n-r,s=0,c=l-1;s<l;c=s++){var u=t[s+r][0],f=t[s+r][1],d=t[c+r][0],h=t[c+r][1];f>i!=h>i&&a<(d-u)*(i-f)/(h-f)+u&&(o=!o)}return o}},14756:function(e,t,r){var n,a=r(7688),i=r(28648),o=r(72200),l=r(11403),s=r(82368),c=r(17792),u=!1,f=i();function d(e,t,r){var a=n.segments(e),i=n.segments(t),o=r(n.combine(a,i));return n.polygon(o)}n={buildLog:function(e){return!0===e?u=a():!1===e&&(u=!1),!1!==u&&u.list},epsilon:function(e){return f.epsilon(e)},segments:function(e){var t=o(!0,f,u);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:o(!1,f,u).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:s.union(e.combined,u),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:s.intersect(e.combined,u),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:s.difference(e.combined,u),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:s.differenceRev(e.combined,u),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:s.xor(e.combined,u),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:l(e.segments,f,u),inverted:e.inverted}},polygonFromGeoJSON:function(e){return c.toPolygon(n,e)},polygonToGeoJSON:function(e){return c.fromPolygon(n,f,e)},union:function(e,t){return d(e,t,n.selectUnion)},intersect:function(e,t){return d(e,t,n.selectIntersect)},difference:function(e,t){return d(e,t,n.selectDifference)},differenceRev:function(e,t){return d(e,t,n.selectDifferenceRev)},xor:function(e,t){return d(e,t,n.selectXor)}},"object"==typeof window&&(window.PolyBool=n),e.exports=n},7688:function(e){e.exports=function(){var e,t=0,r=!1;function n(t,r){return e.list.push({type:t,data:r?JSON.parse(JSON.stringify(r)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return n("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return n("div_seg",{seg:e,pt:t}),n("chop",{seg:e,pt:t})},statusRemove:function(e){return n("pop_seg",{seg:e})},segmentUpdate:function(e){return n("seg_update",{seg:e})},segmentNew:function(e,t){return n("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return n("rem_seg",{seg:e})},tempStatus:function(e,t,r){return n("temp_status",{seg:e,above:t,below:r})},rewind:function(e){return n("rewind",{seg:e})},status:function(e,t,r){return n("status",{seg:e,above:t,below:r})},vert:function(t){return t===r?e:(r=t,n("vert",{x:t}))},log:function(e){return"string"!=typeof e&&(e=JSON.stringify(e,!1," ")),n("log",{txt:e})},reset:function(){return n("reset")},selected:function(e){return n("selected",{segs:e})},chainStart:function(e){return n("chain_start",{seg:e})},chainRemoveHead:function(e,t){return n("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return n("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return n("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return n("chain_match",{index:e})},chainClose:function(e){return n("chain_close",{index:e})},chainAddHead:function(e,t){return n("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return n("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return n("chain_con",{index1:e,index2:t})},chainReverse:function(e){return n("chain_rev",{index:e})},chainJoin:function(e,t){return n("chain_join",{index1:e,index2:t})},done:function(){return n("done")}}}},28648:function(e){e.exports=function(e){"number"!=typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"==typeof t&&(e=t),e},pointAboveOrOnLine:function(t,r,n){var a=r[0],i=r[1],o=n[0],l=n[1],s=t[0];return(o-a)*(t[1]-i)-(l-i)*(s-a)>=-e},pointBetween:function(t,r,n){var a=t[1]-r[1],i=n[0]-r[0],o=t[0]-r[0],l=n[1]-r[1],s=o*i+a*l;return!(s<e||s-(i*i+l*l)>-e)},pointsSameX:function(t,r){return Math.abs(t[0]-r[0])<e},pointsSameY:function(t,r){return Math.abs(t[1]-r[1])<e},pointsSame:function(e,r){return t.pointsSameX(e,r)&&t.pointsSameY(e,r)},pointsCompare:function(e,r){return t.pointsSameX(e,r)?t.pointsSameY(e,r)?0:e[1]<r[1]?-1:1:e[0]<r[0]?-1:1},pointsCollinear:function(t,r,n){var a=t[0]-r[0],i=t[1]-r[1],o=r[0]-n[0],l=r[1]-n[1];return Math.abs(a*l-o*i)<e},linesIntersect:function(t,r,n,a){var i=r[0]-t[0],o=r[1]-t[1],l=a[0]-n[0],s=a[1]-n[1],c=i*s-o*l;if(Math.abs(c)<e)return!1;var u=t[0]-n[0],f=t[1]-n[1],d=(l*f-s*u)/c,h=(i*f-o*u)/c,p={alongA:0,alongB:0,pt:[t[0]+d*i,t[1]+d*o]};return p.alongA=d<=-e?-2:d<e?-1:d-1<=-e?0:d-1<e?1:2,p.alongB=h<=-e?-2:h<e?-1:h-1<=-e?0:h-1<e?1:2,p},pointInsideRegion:function(t,r){for(var n=t[0],a=t[1],i=r[r.length-1][0],o=r[r.length-1][1],l=!1,s=0;s<r.length;s++){var c=r[s][0],u=r[s][1];u-a>e!=o-a>e&&(i-c)*(a-u)/(o-u)+c-n>e&&(l=!l),i=c,o=u}return l}};return t}},17792:function(e){var t={toPolygon:function(e,t){function r(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function r(t){var r=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[r]})}for(var n=r(t[0]),a=1;a<t.length;a++)n=e.selectDifference(e.combine(n,r(t[a])));return n}if("Polygon"===t.type)return e.polygon(r(t.coordinates));if("MultiPolygon"===t.type){for(var n=e.segments({inverted:!1,regions:[]}),a=0;a<t.coordinates.length;a++)n=e.selectUnion(e.combine(n,r(t.coordinates[a])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){function n(e,r){return t.pointInsideRegion([.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1])],r)}function a(e){return{region:e,children:[]}}r=e.polygon(e.segments(r));var i=a(null);function o(e,t){for(var r=0;r<e.children.length;r++){if(n(t,(l=e.children[r]).region))return void o(l,t)}var i=a(t);for(r=0;r<e.children.length;r++){var l;n((l=e.children[r]).region,t)&&(i.children.push(l),e.children.splice(r,1),r--)}e.children.push(i)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(i,s)}function c(e,t){for(var r=0,n=e[e.length-1][0],a=e[e.length-1][1],i=[],o=0;o<e.length;o++){var l=e[o][0],s=e[o][1];i.push([l,s]),r+=s*n-l*a,n=l,a=s}return r<0!==t&&i.reverse(),i.push([i[0][0],i[0][1]]),i}var u=[];function f(e){var t=[c(e.region,!1)];u.push(t);for(var r=0;r<e.children.length;r++)t.push(d(e.children[r]))}function d(e){for(var t=0;t<e.children.length;t++)f(e.children[t]);return c(e.region,!0)}for(l=0;l<i.children.length;l++)f(i.children[l]);return u.length<=0?{type:"Polygon",coordinates:[]}:1==u.length?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}};e.exports=t},72200:function(e,t,r){var n=r(48088);e.exports=function(e,t,r){function a(e,t,n){return{id:r?r.segmentId():-1,start:e,end:t,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var i=n.create();function o(e,r){i.insertBefore(e,function(n){return function(e,r,n,a,i,o){var l=t.pointsCompare(r,i);return 0!==l?l:t.pointsSame(n,o)?0:e!==a?e?1:-1:t.pointAboveOrOnLine(n,a?i:o,a?o:i)?1:-1}(e.isStart,e.pt,r,n.isStart,n.pt,n.other.pt)<0})}function l(e,t){var r=function(e,t){var r=n.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return o(r,e.end),r}(e,t);return function(e,t,r){var a=n.node({isStart:!1,pt:t.end,seg:t,primary:r,other:e,status:null});e.other=a,o(a,e.pt)}(r,e,t),r}function s(e,t){var n=a(t,e.seg.end,e.seg);return function(e,t){r&&r.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,o(e.other,e.pt)}(e,t),l(n,e.primary)}function c(a,o){var l=n.create();function c(e){return l.findTransition(function(r){var n,a,i,o,l,s;return n=e,a=r.ev,i=n.seg.start,o=n.seg.end,l=a.seg.start,s=a.seg.end,(t.pointsCollinear(i,l,s)?t.pointsCollinear(o,l,s)?1:t.pointAboveOrOnLine(o,l,s)?1:-1:t.pointAboveOrOnLine(i,l,s)?1:-1)>0})}function u(e,n){var a=e.seg,i=n.seg,o=a.start,l=a.end,c=i.start,u=i.end;r&&r.checkIntersection(a,i);var f=t.linesIntersect(o,l,c,u);if(!1===f){if(!t.pointsCollinear(o,l,c))return!1;if(t.pointsSame(o,u)||t.pointsSame(l,c))return!1;var d=t.pointsSame(o,c),h=t.pointsSame(l,u);if(d&&h)return n;var p=!d&&t.pointBetween(o,c,u),y=!h&&t.pointBetween(l,c,u);if(d)return y?s(n,l):s(e,u),n;p&&(h||(y?s(n,l):s(e,u)),s(n,o))}else 0===f.alongA&&(-1===f.alongB?s(e,c):0===f.alongB?s(e,f.pt):1===f.alongB&&s(e,u)),0===f.alongB&&(-1===f.alongA?s(n,o):0===f.alongA?s(n,f.pt):1===f.alongA&&s(n,l));return!1}for(var f=[];!i.isEmpty();){var d=i.getHead();if(r&&r.vert(d.pt[0]),d.isStart){r&&r.segmentNew(d.seg,d.primary);var h=c(d),p=h.before?h.before.ev:null,y=h.after?h.after.ev:null;function v(){if(p){var e=u(d,p);if(e)return e}return!!y&&u(d,y)}r&&r.tempStatus(d.seg,!!p&&p.seg,!!y&&y.seg);var g,m,x=v();if(x)e?(m=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below)&&(x.seg.myFill.above=!x.seg.myFill.above):x.seg.otherFill=d.seg.myFill,r&&r.segmentUpdate(x.seg),d.other.remove(),d.remove();if(i.getHead()!==d){r&&r.rewind(d.seg);continue}e?(m=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below,d.seg.myFill.below=y?y.seg.myFill.above:a,d.seg.myFill.above=m?!d.seg.myFill.below:d.seg.myFill.below):null===d.seg.otherFill&&(g=y?d.primary===y.primary?y.seg.otherFill.above:y.seg.myFill.above:d.primary?o:a,d.seg.otherFill={above:g,below:g}),r&&r.status(d.seg,!!p&&p.seg,!!y&&y.seg),d.other.status=h.insert(n.node({ev:d}))}else{var b=d.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(b.prev)&&l.exists(b.next)&&u(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!d.primary){var _=d.seg.myFill;d.seg.myFill=d.seg.otherFill,d.seg.otherFill=_}f.push(d.seg)}i.getHead().remove()}return r&&r.done(),f}return e?{addRegion:function(e){for(var n,a,i,o=e[e.length-1],s=0;s<e.length;s++){n=o,o=e[s];var c=t.pointsCompare(n,o);0!==c&&l((a=c<0?n:o,i=c<0?o:n,{id:r?r.segmentId():-1,start:a,end:i,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(e){return c(e,!1)}}:{calculate:function(e,t,r,n){return e.forEach(function(e){l(a(e.start,e.end,e),!0)}),r.forEach(function(e){l(a(e.start,e.end,e),!1)}),c(t,n)}}}},48088:function(e){e.exports={create:function(){var e={root:{root:!0,next:null},exists:function(t){return null!==t&&t!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,a=e.root.next;null!==a;){if(r(a))return t.prev=a.prev,t.next=a,a.prev.next=t,void(a.prev=t);n=a,a=a.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;null!==n&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(e){return e.prev=r,e.next=n,r.next=e,null!==n&&(n.prev=e),e}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}}},11403:function(e){e.exports=function(e,t,r){var n=[],a=[];return e.forEach(function(e){var i=e.start,o=e.end;if(t.pointsSame(i,o))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{r&&r.chainStart(e);for(var l={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},c=l,u=0;u<n.length;u++){var f=(v=n[u])[0],d=(v[1],v[v.length-1]);if(v[v.length-2],t.pointsSame(f,i)){if(T(u,!0,!0))break}else if(t.pointsSame(f,o)){if(T(u,!0,!1))break}else if(t.pointsSame(d,i)){if(T(u,!1,!0))break}else if(t.pointsSame(d,o)&&T(u,!1,!1))break}if(c===l)return n.push([i,o]),void(r&&r.chainNew(i,o));if(c===s){r&&r.chainMatch(l.index);var h=l.index,p=l.matches_pt1?o:i,y=l.matches_head,v=n[h],g=y?v[0]:v[v.length-1],m=y?v[1]:v[v.length-2],x=y?v[v.length-1]:v[0],b=y?v[v.length-2]:v[1];return t.pointsCollinear(m,g,p)&&(y?(r&&r.chainRemoveHead(l.index,p),v.shift()):(r&&r.chainRemoveTail(l.index,p),v.pop()),g=m),t.pointsSame(x,p)?(n.splice(h,1),t.pointsCollinear(b,x,g)&&(y?(r&&r.chainRemoveTail(l.index,g),v.pop()):(r&&r.chainRemoveHead(l.index,g),v.shift())),r&&r.chainClose(l.index),void a.push(v)):void(y?(r&&r.chainAddHead(l.index,p),v.unshift(p)):(r&&r.chainAddTail(l.index,p),v.push(p)))}var _=l.index,w=s.index;r&&r.chainConnect(_,w);var k=n[_].length<n[w].length;l.matches_head?s.matches_head?k?(M(_),A(_,w)):(M(w),A(w,_)):A(w,_):s.matches_head?A(_,w):k?(M(_),A(w,_)):(M(w),A(_,w))}function T(e,t,r){return c.index=e,c.matches_head=t,c.matches_pt1=r,c===l?(c=s,!1):(c=null,!0)}function M(e){r&&r.chainReverse(e),n[e].reverse()}function A(e,a){var i=n[e],o=n[a],l=i[i.length-1],s=i[i.length-2],c=o[0],u=o[1];t.pointsCollinear(s,l,c)&&(r&&r.chainRemoveTail(e,l),i.pop(),l=s),t.pointsCollinear(l,c,u)&&(r&&r.chainRemoveHead(a,c),o.shift()),r&&r.chainJoin(e,a),n[e]=i.concat(o),n.splice(a,1)}}),a}},82368:function(e){function t(e,t,r){var n=[];return e.forEach(function(e){var a=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[a]&&n.push({id:r?r.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[a],below:2===t[a]},otherFill:null})}),r&&r.selected(n),n}var r={union:function(e,r){return t(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return t(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return t(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return t(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return t(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};e.exports=r},9696:function(e,t,r){"use strict";var n=r(29936).Transform,a=r(55619);function i(){n.call(this,{readableObjectMode:!0})}function o(e,t,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name=this.constructor.name,this.message=e,t&&(this.code=t),r&&(this.statusCode=r)}i.prototype=Object.create(n.prototype),i.prototype.constructor=i,a(i.prototype),t.gS=function(e,t,r){for(var n=t,a=0;a<r.length;)if(e[n++]!==r[a++])return!1;return!0},t.wR=function(e,t){var r=[],n=0;if(t&&"hex"===t)for(;n<e.length;)r.push(parseInt(e.slice(n,n+2),16)),n+=2;else for(;n<e.length;n++)r.push(255&e.charCodeAt(n));return r},t.Bz=function(e,t){return e[t]|e[t+1]<<8},t.eW=function(e,t){return e[t+1]|e[t]<<8},t.st=function(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|16777216*e[t+3]},t.eI=function(e,t){return e[t+3]|e[t+2]<<8|e[t+1]<<16|16777216*e[t]},o.prototype=Object.create(Error.prototype),o.prototype.constructor=o},11688:function(e){"use strict";function t(e,t){var r=new Error(e);return r.code=t,r}function r(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function n(e,r,n){this.input=e.subarray(r,n),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if("II*\0"!==a&&"MM\0*"!==a)throw t("invalid TIFF signature","EBADDATA");this.big_endian="M"===a[0]}n.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}},n.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?256*r[e]+r[e+1]:r[e]+256*r[e+1]},n.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?16777216*r[e]+65536*r[e+1]+256*r[e+2]+r[e+3]:r[e]+256*r[e+1]+65536*r[e+2]+16777216*r[e+3]},n.prototype.is_subifd_link=function(e,t){return 0===e&&34665===t||0===e&&34853===t||34665===e&&40965===t},n.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},n.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t];case 6:return(r=this.input[t])|33554430*(128&r);case 3:return r=this.read_uint16(t);case 8:return(r=this.read_uint16(t))|131070*(32768&r);case 4:return r=this.read_uint32(t);case 9:return 0|(r=this.read_uint32(t));case 5:case 10:case 11:case 12:case 7:default:return null}},n.prototype.scan_ifd=function(e,n,a){var i=this.read_uint16(n);n+=2;for(var o=0;o<i;o++){var l=this.read_uint16(n),s=this.read_uint16(n+2),c=this.read_uint32(n+4),u=this.exif_format_length(s),f=c*u,d=f<=4?n+8:this.read_uint32(n+8),h=!1;if(d+f>this.input.length)throw t("unexpected EOF","EBADDATA");for(var p=[],y=d,v=0;v<c;v++,y+=u){var g=this.exif_format_read(s,y);if(null===g){p=null;break}p.push(g)}if(Array.isArray(p)&&2===s&&(p=r(String.fromCharCode.apply(null,p)))&&"\0"===p[p.length-1]&&(p=p.slice(0,-1)),this.is_subifd_link(e,l)&&Array.isArray(p)&&Number.isInteger(p[0])&&p[0]>0&&(this.ifds_to_read.push({id:l,offset:p[0]}),h=!0),!1===a({is_big_endian:this.big_endian,ifd:e,tag:l,format:s,count:c,entry_offset:n+this.start,data_length:f,data_offset:d+this.start,value:p,is_subifd_link:h}))return void(this.aborted=!0);n+=12}0===e&&this.ifds_to_read.push({id:1,offset:this.read_uint32(n)})},e.exports.ExifParser=n,e.exports.get_orientation=function(e){var t=0;try{return new n(e,0,e.length).each(function(e){if(0===e.ifd&&274===e.tag&&Array.isArray(e.value))return t=e.value[0],!1}),t}catch(e){return-1}}},44600:function(e,t,r){"use strict";var n=r(9696).eW,a=r(9696).eI;function i(e,t){if(e.length<4+t)return null;var r=a(e,t);return e.length<r+t||r<8?null:{boxtype:String.fromCharCode.apply(null,e.slice(t+4,t+8)),data:e.slice(t+8,t+r),end:t+r}}function o(e,t){for(var r=0;;){var n=i(e,r);if(!n)break;switch(n.boxtype){case"ispe":t.sizes.push({width:a(n.data,4),height:a(n.data,8)});break;case"irot":t.transforms.push({type:"irot",value:3&n.data[0]});break;case"imir":t.transforms.push({type:"imir",value:1&n.data[0]})}r=n.end}}function l(e,t,r){for(var n=0,a=0;a<r;a++)n=256*n+(e[t+a]||0);return n}function s(e,t){for(var r=e[4]>>4&15,a=15&e[4],i=e[5]>>4&15,o=n(e,6),s=8,c=0;c<o;c++){var u=n(e,s),f=n(e,s+=2),d=l(e,s+=2,i),h=n(e,s+=i);if(s+=2,0===f&&1===h){var p=l(e,s,r),y=l(e,s+r,a);t.item_loc[u]={length:y,offset:p+d}}s+=h*(r+a)}}function c(e,t){for(var r=n(e,4),a=6,o=0;o<r;o++){var l=i(e,a);if(!l)break;if("infe"===l.boxtype){for(var s=n(l.data,4),c="",u=8;u<l.data.length&&l.data[u];u++)c+=String.fromCharCode(l.data[u]);t.item_inf[c]=s}a=l.end}}function u(e,t){for(var r=0;;){var n=i(e,r);if(!n)break;"ipco"===n.boxtype&&o(n.data,t),r=n.end}}e.exports.unbox=i,e.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(function(e,t){for(var r=4;;){var n=i(e,r);if(!n)break;"iprp"===n.boxtype&&u(n.data,t),"iloc"===n.boxtype&&s(n.data,t),"iinf"===n.boxtype&&c(n.data,t),r=n.end}}(e,t),t.sizes.length){var r,n,a,o=(r=t.sizes,n=r.reduce(function(e,t){return e.width>t.width||e.width===t.width&&e.height>t.height?e:t}),a=r.reduce(function(e,t){return e.height>t.height||e.height===t.height&&e.width>t.width?e:t}),n.width>a.height||n.width===a.height&&n.height>a.width?n:a),l=1;t.transforms.forEach(function(e){var t={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},r={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if("imir"===e.type&&(l=0===e.value?r[l]:t[l=t[l=r[l]]]),"irot"===e.type)for(var n=0;n<e.value;n++)l=t[l]});var f=null;return t.item_inf.Exif&&(f=t.item_loc[t.item_inf.Exif]),{width:o.width,height:o.height,orientation:t.transforms.length?l:null,variants:t.sizes,exif_location:f}}},e.exports.getMimeType=function(e){var t=String.fromCharCode.apply(null,e.slice(0,4)),r={};r[t]=!0;for(var n=8;n<e.length;n+=4)r[String.fromCharCode.apply(null,e.slice(n,n+4))]=!0;if(r.mif1||r.msf1||r.miaf)return"avif"===t||"avis"===t||"avio"===t?{type:"avif",mime:"image/avif"}:"heic"===t||"heix"===t?{type:"heic",mime:"image/heic"}:"hevc"===t||"hevx"===t?{type:"heic",mime:"image/heic-sequence"}:r.avif||r.avis?{type:"avif",mime:"image/avif"}:r.heic||r.heix||r.hevc||r.hevx||r.heis?r.msf1?{type:"heif",mime:"image/heif-sequence"}:{type:"heif",mime:"image/heif"}:{type:"avif",mime:"image/avif"}}},40528:function(e,t,r){"use strict";var n=r(9696).wR,a=r(9696).gS,i=r(9696).eI,o=r(44600),l=r(11688),s=n("ftyp");e.exports=function(e){if(a(e,4,s)){var t=o.unbox(e,0);if(t){var r=o.getMimeType(t.data);if(r){for(var n,c=t.end;;){var u=o.unbox(e,c);if(!u)break;if(c=u.end,"mdat"===u.boxtype)return;if("meta"===u.boxtype){n=u.data;break}}if(n){var f=o.readSizeFromMeta(n);if(f){var d={width:f.width,height:f.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(f.variants.length>1&&(d.variants=f.variants),f.orientation&&(d.orientation=f.orientation),f.exif_location&&f.exif_location.offset+f.exif_location.length<=e.length){var h=i(e,f.exif_location.offset),p=e.slice(f.exif_location.offset+h+4,f.exif_location.offset+f.exif_location.length),y=l.get_orientation(p);y>0&&(d.orientation=y)}return d}}}}}}},38728:function(e,t,r){"use strict";var n=r(9696).wR,a=r(9696).gS,i=r(9696).Bz,o=n("BM");e.exports=function(e){if(!(e.length<26)&&a(e,0,o))return{width:i(e,18),height:i(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},5588:function(e,t,r){"use strict";var n=r(9696).wR,a=r(9696).gS,i=r(9696).Bz,o=n("GIF87a"),l=n("GIF89a");e.exports=function(e){if(!(e.length<10)&&(a(e,0,o)||a(e,0,l)))return{width:i(e,6),height:i(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},41924:function(e,t,r){"use strict";var n=r(9696).Bz;e.exports=function(e){var t=n(e,0),r=n(e,2),a=n(e,4);if(0===t&&1===r&&a){for(var i=[],o={width:0,height:0},l=0;l<a;l++){var s=e[6+16*l]||256,c=e[6+16*l+1]||256,u={width:s,height:c};i.push(u),(s>o.width||c>o.height)&&(o=u)}return{width:o.width,height:o.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},87968:function(e,t,r){"use strict";var n=r(9696).eW,a=r(9696).wR,i=r(9696).gS,o=r(11688),l=a("Exif\0\0");e.exports=function(e){if(!(e.length<2)&&255===e[0]&&216===e[1]&&255===e[2])for(var t=2;;){for(;;){if(e.length-t<2)return;if(255===e[t++])break}for(var r,a,s=e[t++];255===s;)s=e[t++];if(208<=s&&s<=217||1===s)r=0;else{if(!(192<=s&&s<=254))return;if(e.length-t<2)return;r=n(e,t)-2,t+=2}if(217===s||218===s)return;if(225===s&&r>=10&&i(e,t,l)&&(a=o.get_orientation(e.slice(t+6,t+r))),r>=5&&192<=s&&s<=207&&196!==s&&200!==s&&204!==s){if(e.length-t<r)return;var c={width:n(e,t+3),height:n(e,t+1),type:"jpg",mime:"image/jpeg",wUnits:"px",hUnits:"px"};return a>0&&(c.orientation=a),c}t+=r}}},37276:function(e,t,r){"use strict";var n=r(9696).wR,a=r(9696).gS,i=r(9696).eI,o=n("PNG\r\n\n"),l=n("IHDR");e.exports=function(e){if(!(e.length<24)&&a(e,0,o)&&a(e,12,l))return{width:i(e,16),height:i(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},90328:function(e,t,r){"use strict";var n=r(9696).wR,a=r(9696).gS,i=r(9696).eI,o=n("8BPS\0");e.exports=function(e){if(!(e.length<22)&&a(e,0,o))return{width:i(e,18),height:i(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},16024:function(e){"use strict";function t(e){return"number"==typeof e&&isFinite(e)&&e>0}var r=/<[-_.:a-zA-Z0-9][^>]*>/,n=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,a=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,i=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,o=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,l=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function s(e){return l.test(e)?e.match(l)[0]:"px"}e.exports=function(e){if(function(e){var t,r=0,n=e.length;for(239===e[0]&&187===e[1]&&191===e[2]&&(r=3);r<n&&(32===(t=e[r])||9===t||13===t||10===t);)r++;return r!==n&&60===e[r]}(e)){for(var l="",c=0;c<e.length;c++)l+=String.fromCharCode(e[c]);var u=(l.match(r)||[""])[0];if(n.test(u)){var f=function(e){var t=e.match(a),r=e.match(i),n=e.match(o);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}(u),d=parseFloat(f.width),h=parseFloat(f.height);if(f.width&&f.height){if(!t(d)||!t(h))return;return{width:d,height:h,type:"svg",mime:"image/svg+xml",wUnits:s(f.width),hUnits:s(f.height)}}var p=(f.viewbox||"").split(" "),y={width:p[2],height:p[3]},v=parseFloat(y.width),g=parseFloat(y.height);if(t(v)&&t(g)&&s(y.width)===s(y.height)){var m=v/g;if(f.width){if(!t(d))return;return{width:d,height:d/m,type:"svg",mime:"image/svg+xml",wUnits:s(f.width),hUnits:s(f.width)}}if(f.height){if(!t(h))return;return{width:h*m,height:h,type:"svg",mime:"image/svg+xml",wUnits:s(f.height),hUnits:s(f.height)}}return{width:v,height:g,type:"svg",mime:"image/svg+xml",wUnits:s(y.width),hUnits:s(y.height)}}}}}},98792:function(e,t,r){"use strict";var n=r(9696).wR,a=r(9696).gS,i=r(9696).Bz,o=r(9696).eW,l=r(9696).st,s=r(9696).eI,c=n("II*\0"),u=n("MM\0*");function f(e,t,r){return r?o(e,t):i(e,t)}function d(e,t,r){return r?s(e,t):l(e,t)}function h(e,t,r){var n=f(e,t+2,r);return 1!==d(e,t+4,r)||3!==n&&4!==n?null:3===n?f(e,t+8,r):d(e,t+8,r)}e.exports=function(e){if(!(e.length<8)&&(a(e,0,c)||a(e,0,u))){var t=77===e[0],r=d(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=12*f(e,n+0,t);if(!(i<=0||(n+=2,e.length-n<i))){var o,l,s,p;for(o=0;o<i;o+=12)256===(p=f(e,n+o,t))?l=h(e,n+o,t):257===p&&(s=h(e,n+o,t));return l&&s?{width:l,height:s,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}:void 0}}}}}},20704:function(e,t,r){"use strict";var n=r(9696).wR,a=r(9696).gS,i=r(9696).Bz,o=r(9696).st,l=r(11688),s=n("RIFF"),c=n("WEBP");function u(e,t){if(157===e[t+3]&&1===e[t+4]&&42===e[t+5])return{width:16383&i(e,t+6),height:16383&i(e,t+8),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function f(e,t){if(47===e[t]){var r=o(e,t+1);return{width:1+(16383&r),height:1+(r>>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function d(e,t){return{width:1+(e[t+6]<<16|e[t+5]<<8|e[t+4]),height:1+(e[t+9]<<t|e[t+8]<<8|e[t+7]),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}e.exports=function(e){if(!(e.length<16)&&(a(e,0,s)||a(e,8,c))){var t=12,r=null,n=0,i=o(e,4)+8;if(!(i>e.length)){for(;t+8<i;)if(0!==e[t]){var h=String.fromCharCode.apply(null,e.slice(t,t+4)),p=o(e,t+4);"VP8 "===h&&p>=10?r=r||u(e,t+8):"VP8L"===h&&p>=9?r=r||f(e,t+8):"VP8X"===h&&p>=10?r=r||d(e,t+8):"EXIF"===h&&(n=l.get_orientation(e.slice(t+8,t+8+p)),t=1/0),t+=8+p}else t++;if(r)return n>0&&(r.orientation=n),r}}}},87480:function(e,t,r){"use strict";e.exports={avif:r(40528),bmp:r(38728),gif:r(5588),ico:r(41924),jpeg:r(87968),png:r(37276),psd:r(90328),svg:r(16024),tiff:r(98792),webp:r(20704)}},19480:function(e,t,r){"use strict";var n=r(87480);e.exports=function(e){return function(e){for(var t=Object.keys(n),r=0;r<t.length;r++){var a=n[t[r]](e);if(a)return a}return null}(e)},e.exports.parsers=n},4168:function(e){var t,r,n=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,s=[],c=!1,u=-1;function f(){c&&l&&(c=!1,l.length?s=l.concat(s):u=-1,s.length&&d())}function d(){if(!c){var e=o(f);c=!0;for(var t=s.length;t;){for(l=s,s=[];++u<t;)l&&l[u].run();u=-1,t=s.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new h(e,t)),1!==s.length||c||o(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},30456:function(e,t,r){var n=r(33576),a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(a.prototype),i(a,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},14500:function(e,t,r){"use strict";var n=r(53664),a=r(64348),i=r(39640)(),o=r(2304),l=n("%TypeError%"),s=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||s(t)!==t)throw new l("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&o){var u=o(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(i?a(e,"length",t,!0,!0):a(e,"length",t)),e}},29936:function(e,t,r){e.exports=a;var n=r(61252).EventEmitter;function a(){n.call(this)}r(6768)(a,n),a.Readable=r(12348),a.Writable=r(11288),a.Duplex=r(15316),a.Transform=r(22477),a.PassThrough=r(27136),a.finished=r(15932),a.pipeline=r(38180),a.Stream=a,a.prototype.pipe=function(e,t){var r=this;function a(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",a),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",l),r.on("close",s));var o=!1;function l(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",a),e.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",s),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},92784:function(e){"use strict";var t={};function r(e,r,n){n||(n=Error);var a=function(e){var t,n;function a(t,n,a){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,a))||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a}(n);a.prototype.name=n.name,a.prototype.code=e,t[e]=a}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var a,i,o,l;if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))l="The ".concat(e," ").concat(a," ").concat(n(t,"type"));else{var s=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(s," ").concat(a," ").concat(n(t,"type"))}return l+=". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.i=t},15316:function(e,t,r){"use strict";var n=r(4168),a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(12348),o=r(11288);r(6768)(u,i);for(var l=a(o.prototype),s=0;s<l.length;s++){var c=l[s];u.prototype[c]||(u.prototype[c]=o.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},27136:function(e,t,r){"use strict";e.exports=a;var n=r(22477);function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}r(6768)(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},12348:function(e,t,r){"use strict";var n,a=r(4168);e.exports=M,M.ReadableState=T;r(61252).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=r(4776),l=r(33576).Buffer,s=r.g.Uint8Array||function(){};var c,u=r(19768);c=u&&u.debuglog?u.debuglog("stream"):function(){};var f,d,h,p=r(47264),y=r(55324),v=r(24888).getHighWaterMark,g=r(92784).i,m=g.ERR_INVALID_ARG_TYPE,x=g.ERR_STREAM_PUSH_AFTER_EOF,b=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6768)(M,o);var w=y.errorOrDestroy,k=["error","close","destroy","pause","resume"];function T(e,t,a){n=n||r(15316),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",a),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(86032).o),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function M(e){if(n=n||r(15316),!(this instanceof M))return new M(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function A(e,t,r,n,a){c("readableAddChunk",t);var i,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}(e,o);else if(a||(i=function(e,t){var r;n=t,l.isBuffer(n)||n instanceof s||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(o,t)),i)w(e,i);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)o.endEmitted?w(e,new _):S(e,o,t,!0);else if(o.ended)w(e,new x);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?S(e,o,t,!1):P(e,o)):S(e,o,t,!1)}else n||(o.reading=!1,P(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function S(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&C(e)),P(e,t)}Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),M.prototype.destroy=y.destroy,M.prototype._undestroy=y.undestroy,M.prototype._destroy=function(e,t){t(e)},M.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},M.prototype.unshift=function(e){return A(this,e,null,!0,!1)},M.prototype.isPaused=function(){return!1===this._readableState.flowing},M.prototype.setEncoding=function(e){f||(f=r(86032).o);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,a="";null!==n;)a+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==a&&this._readableState.buffer.push(a),this._readableState.length=a.length,this};var L=1073741824;function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=L?e=L:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,a.nextTick(D,e))}function D(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function P(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(E,e,t))}function E(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(c("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function R(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){c("readable nexttick read 0"),e.read(0)}function z(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function j(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,a.nextTick(B,t,e))}function B(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}M.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):C(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,a=t.needReadable;return c("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",a=!0),t.ended||t.reading?c("reading or ended",a=!1):a&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=O(r,t))),null===(n=e>0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},M.prototype._read=function(e){w(this,new b("_read()"))},M.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||!1!==t.end)&&e!==a.stdout&&e!==a.stderr?s:v;function l(t,a){c("onunpipe"),t===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,c("cleanup"),e.removeListener("close",p),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",l),r.removeListener("end",s),r.removeListener("end",v),r.removeListener("data",d),f=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function s(){c("onend"),e.end()}n.endEmitted?a.nextTick(o):r.once("end",o),e.on("unpipe",l);var u=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,N(e))}}(r);e.on("drain",u);var f=!1;function d(t){c("ondata");var a=e.write(t);c("dest.write",a),!1===a&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==H(n.pipes,e))&&!f&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){c("onerror",t),v(),e.removeListener("error",h),0===i(e,"error")&&w(e,t)}function p(){e.removeListener("finish",y),v()}function y(){c("onfinish"),e.removeListener("close",p),v()}function v(){c("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",y),e.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),e},M.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=H(t.pipes,e);return-1===o?this:(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)},M.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?C(this):n.reading||a.nextTick(I,this))),r},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&a.nextTick(R,this),r},M.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||a.nextTick(R,this),t},M.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(z,e,t))}(this,e)),e.paused=!1,this},M.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},M.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){(c("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i<k.length;i++)e.on(k[i],this.emit.bind(this,k[i]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(M.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(60328)),d(this)}),Object.defineProperty(M.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(M.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(M.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),M._fromList=F,Object.defineProperty(M.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(M.from=function(e,t){return void 0===h&&(h=r(90555)),h(M,e,t)})},22477:function(e,t,r){"use strict";e.exports=u;var n=r(92784).i,a=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=n.ERR_TRANSFORM_WITH_LENGTH_0,s=r(15316);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);s.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new l;if(e._transformState.transforming)throw new o;return e.push(null)}r(6768)(u,s),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new a("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})}},11288:function(e,t,r){"use strict";var n,a=r(4168);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=M,M.WritableState=T;var o={deprecate:r(96656)},l=r(4776),s=r(33576).Buffer,c=r.g.Uint8Array||function(){};var u,f=r(55324),d=r(24888).getHighWaterMark,h=r(92784).i,p=h.ERR_INVALID_ARG_TYPE,y=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,x=h.ERR_STREAM_NULL_VALUES,b=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,w=f.errorOrDestroy;function k(){}function T(e,t,o){n=n||r(15316),e=e||{},"boolean"!=typeof o&&(o=t instanceof n),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new v;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(a.nextTick(i,n),a.nextTick(D,e,t),e._writableState.errorEmitted=!0,w(e,n)):(i(n),e._writableState.errorEmitted=!0,w(e,n),D(e,t))}(e,r,n,t,i);else{var o=O(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||L(e,r),n?a.nextTick(S,e,r,o,i):S(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function M(e){var t=this instanceof(n=n||r(15316));if(!t&&!u.call(M,this))return new M(e);this._writableState=new T(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function A(e,t,r,n,a,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function S(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),D(e,t)}function L(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var l=0,s=!0;r;)a[l]=r,r.isBuf||(s=!1),r=r.next,l+=1;a.allBuffers=s,A(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,f=r.callback;if(A(e,t,!1,t.objectMode?1:c.length,c,u,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final(function(r){t.pendingcb--,r&&w(e,r),t.prefinished=!0,e.emit("prefinish"),D(e,t)})}function D(e,t){var r=O(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,a.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(6768)(M,l),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===M&&(e&&e._writableState instanceof T)}})):u=function(e){return e instanceof this},M.prototype.pipe=function(){w(this,new g)},M.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,l=!i.objectMode&&(n=e,s.isBuffer(n)||n instanceof c);return l&&!s.isBuffer(e)&&(e=function(e){return s.from(e)}(e)),"function"==typeof t&&(r=t,t=null),l?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=k),i.ending?function(e,t){var r=new b;w(e,r),a.nextTick(t,r)}(this,r):(l||function(e,t,r,n){var i;return null===r?i=new x:"string"==typeof r||t.objectMode||(i=new p("chunk",["string","Buffer"],r)),!i||(w(e,i),a.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,a,i){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,r));return t}(t,n,a);n!==o&&(r=!0,a="buffer",n=o)}var l=t.objectMode?1:n.length;t.length+=l;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:i,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,l,n,a,i);return c}(this,i,l,e,t,r)),o},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||L(this,e))},M.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(e,t,r){r(new y("_write()"))},M.prototype._writev=null,M.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,D(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),M.prototype.destroy=f.destroy,M.prototype._undestroy=f.undestroy,M.prototype._destroy=function(e,t){t(e)}},60328:function(e,t,r){"use strict";var n,a=r(4168);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(15932),l=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function y(e){var t=e[l];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[l]=null,e[s]=null,t(p(r,!1)))}}var v=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(t,r){a.nextTick(function(){e[c]?r(e[c]):t(p(void 0,!0))})});var r,n=this[f];if(n)r=new Promise(function(e,t){return function(r,n){e.then(function(){t[u]?r(p(void 0,!0)):t[d](r,n)},n)}}(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));r=new Promise(this[d])}return this[f]=r,r}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(p(void 0,!0))})})}),n),v);e.exports=function(e){var t,r=Object.create(g,(i(t={},h,{value:e,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[l]=null,r[s]=null,e(p(n,!1))):(r[l]=e,r[s]=t)},writable:!0}),t));return r[f]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[f]=null,r[l]=null,r[s]=null,t(e)),void(r[c]=e)}var n=r[l];null!==n&&(r[f]=null,r[l]=null,r[s]=null,n(p(void 0,!0))),r[u]=!0}),e.on("readable",function(e){a.nextTick(y,e)}.bind(null,r)),r}},47264:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(33576).Buffer,l=r(21576).inspect,s=l&&l.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,c;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n,a=o.allocUnsafe(e>>>0),i=this.head,l=0;i;)t=i.data,r=a,n=l,o.prototype.copy.call(t,r,n),l+=i.data.length,i=i.next;return a}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var a=t.data,i=e>a.length?a.length:e;if(i===a.length?n+=a:n+=a.slice(0,e),0===(e-=i)){i===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var a=r.data,i=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,i),0===(e-=i)){i===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(i));break}++n}return this.length-=n,t}},{key:s,value:function(e,t){return l(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{depth:0,customInspect:!1}))}}])&&i(t.prototype,r),c&&i(t,c),e}()},55324:function(e,t,r){"use strict";var n=r(4168);function a(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,e)):n.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(i,r):(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t?(n.nextTick(i,r),t(e)):n.nextTick(i,r)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},15932:function(e,t,r){"use strict";var n=r(92784).i.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];e.apply(this,n)}}}(i||a);var o=r.readable||!1!==r.readable&&t.readable,l=r.writable||!1!==r.writable&&t.writable,s=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){l=!1,c=!0,o||i.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,f=!0,l||i.call(t)},h=function(e){i.call(t,e)},p=function(){var e;return o&&!f?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):l&&!c?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},y=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",p),t.req?y():t.on("request",y)):l&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",d),t.on("finish",u),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",y),t.req&&t.req.removeListener("finish",u),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",u),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}},90555:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},38180:function(e,t,r){"use strict";var n;var a=r(92784).i,i=a.ERR_MISSING_ARGS,o=a.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function s(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var u,f=function(e){return e.length?"function"!=typeof e[e.length-1]?l:e.pop():l}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i("streams");var d=t.map(function(e,a){var i=a<t.length-1;return function(e,t,a,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var l=!1;e.on("close",function(){l=!0}),void 0===n&&(n=r(15932)),n(e,{readable:t,writable:a},function(e){if(e)return i(e);l=!0,i()});var s=!1;return function(t){if(!l&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void i(t||new o("pipe"))}}(e,i,a>0,function(e){u||(u=e),e&&d.forEach(s),i||(d.forEach(s),f(u))})});return t.reduce(c)}},24888:function(e,t,r){"use strict";var n=r(92784).i.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,a){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,a,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(a?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},4776:function(e,t,r){e.exports=r(61252).EventEmitter},86032:function(e,t,r){"use strict";var n=r(30456).Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.o=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var a=o(t[n]);if(a>=0)return a>0&&(e.lastNeed=a-1),a;if(--n<r||-2===a)return 0;if((a=o(t[n]))>=0)return a>0&&(e.lastNeed=a-2),a;if(--n<r||-2===a)return 0;if((a=o(t[n]))>=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},55619:function(e,t,r){var n=r(45408),a=r(86844)("stream-parser");e.exports=function(e){var t=e&&"function"==typeof e._transform,r=e&&"function"==typeof e._write;if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");a("extending Parser into stream"),e._bytes=u,e._skipBytes=f,t&&(e._passthrough=d);t?e._transform=p:e._write=h};var i=-1,o=0,l=1,s=2;function c(e){a("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=i,e._parserCallback=null,"function"==typeof e.push&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function u(e,t){n(!this._parserCallback,'there is already a "callback" set!'),n(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||c(this),a("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=o}function f(e,t){n(!this._parserCallback,'there is already a "callback" set!'),n(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||c(this),a("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=l}function d(e,t){n(!this._parserCallback,'There is already a "callback" set!'),n(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||c(this),a("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=s}function h(e,t,r){this._parserInit||c(this),a("write(%o bytes)",e.length),"function"==typeof t&&(r=t),v(this,e,null,r)}function p(e,t,r){this._parserInit||c(this),a("transform(%o bytes)",e.length),"function"!=typeof t&&(t=this._parserOutput),v(this,e,t,r)}function y(e,t,r,n){if(e._parserBytesLeft-=t.length,a("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===o?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===s&&r(t),0!==e._parserBytesLeft)return n;var l=e._parserCallback;if(l&&e._parserState===o&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==o&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=i,e._parserBuffers.splice(0),l){var c=[];t&&c.push(t),r&&c.push(r);var u=l.length>c.length;u&&c.push(g(n));var f=l.apply(e,c);if(!u||n===f)return n}}var v=g(function e(t,r,n,a){return t._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=t._parserBytesLeft?function(){return y(t,r,n,a)}:function(){var i=r.slice(0,t._parserBytesLeft);return y(t,i,n,function(o){return o?a(o):r.length>i.length?function(){return e(t,r.slice(i.length),n,a)}:void 0})}});function g(e){return function(){for(var t=e.apply(this,arguments);"function"==typeof t;)t=t();return t}}},86844:function(e,t,r){var n=r(4168);function a(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}(t=e.exports=r(89416)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))}),e.splice(i,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=a,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(a())},89416:function(e,t,r){var n;function a(e){function r(){if(r.enabled){var e=r,a=+new Date,i=a-(n||a);e.diff=i,e.prev=n,e.curr=a,n=a;for(var o=new Array(arguments.length),l=0;l<o.length;l++)o[l]=arguments[l];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var s=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(r,n){if("%%"===r)return r;s++;var a=t.formatters[n];if("function"==typeof a){var i=o[s];r=a.call(e,i),o.splice(s,1),s--}return r}),t.formatArgs.call(e,o),(r.log||t.log||console.log.bind(console)).apply(e,o)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(r),r}(t=e.exports=a.debug=a.default=a).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,a=0;a<n;a++)r[a]&&("-"===(e=r[a].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(93744),t.names=[],t.skips=[],t.formatters={}},93744:function(e){var t=1e3,r=60*t,n=60*r,a=24*n,i=365.25*a;function o(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}e.exports=function(e,l){l=l||{};var s,c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o)return;var l=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*i;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&!1===isNaN(e))return l.long?o(s=e,a,"day")||o(s,n,"hour")||o(s,r,"minute")||o(s,t,"second")||s+" ms":function(e){if(e>=a)return Math.round(e/a)+"d";if(e>=n)return Math.round(e/n)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},49760:function(e,t,r){var n;!function(a){var i=/^\s+/,o=/\s+$/,l=0,s=a.round,c=a.min,u=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,l=null,s=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,r=!1;if(C[e])e=C[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=q.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=q.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=q.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=q.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=q.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=q.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=q.hex8.exec(e))return{r:I(t[1]),g:I(t[2]),b:I(t[3]),a:j(t[4]),format:r?"name":"hex8"};if(t=q.hex6.exec(e))return{r:I(t[1]),g:I(t[2]),b:I(t[3]),format:r?"name":"hex"};if(t=q.hex4.exec(e))return{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),a:j(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=q.hex3.exec(e))return{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(Y(e.r)&&Y(e.g)&&Y(e.b)?(h=e.r,p=e.g,y=e.b,t={r:255*E(h,255),g:255*E(p,255),b:255*E(y,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):Y(e.h)&&Y(e.s)&&Y(e.v)?(n=N(e.s),l=N(e.v),t=function(e,t,r){e=6*E(e,360),t=E(t,100),r=E(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),l=r*(1-i*t),s=r*(1-(1-i)*t),c=n%6;return{r:255*[r,l,o,o,s,r][c],g:255*[s,r,r,l,o,o][c],b:255*[o,o,s,r,r,l][c]}}(e.h,n,l),f=!0,d="hsv"):Y(e.h)&&Y(e.s)&&Y(e.l)&&(n=N(e.s),s=N(e.l),t=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=E(e,360),t=E(t,100),r=E(r,100),0===t)n=a=i=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=o(s,l,e+1/3),a=o(s,l,e),i=o(s,l,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,n,s),f=!0,d="hsl"),e.hasOwnProperty("a")&&(r=e.a));var h,p,y;return r=P(r),{ok:f,format:e.format||d,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=s(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=r.ok,this._tc_id=l++}function h(e,t,r){e=E(e,255),t=E(t,255),r=E(r,255);var n,a,i=u(e,t,r),o=c(e,t,r),l=(i+o)/2;if(i==o)n=a=0;else{var s=i-o;switch(a=l>.5?s/(2-i-o):s/(i+o),i){case e:n=(t-r)/s+(t<r?6:0);break;case t:n=(r-e)/s+2;break;case r:n=(e-t)/s+4}n/=6}return{h:n,s:a,l:l}}function p(e,t,r){e=E(e,255),t=E(t,255),r=E(r,255);var n,a,i=u(e,t,r),o=c(e,t,r),l=i,s=i-o;if(a=0===i?0:s/i,i==o)n=0;else{switch(i){case e:n=(t-r)/s+(t<r?6:0);break;case t:n=(r-e)/s+2;break;case r:n=(e-t)/s+4}n/=6}return{h:n,s:a,v:l}}function y(e,t,r,n){var a=[z(s(e).toString(16)),z(s(t).toString(16)),z(s(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function v(e,t,r,n){return[z(F(n)),z(s(e).toString(16)),z(s(t).toString(16)),z(s(r).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.s-=t/100,r.s=R(r.s),d(r)}function m(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.s+=t/100,r.s=R(r.s),d(r)}function x(e){return d(e).desaturate(100)}function b(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.l+=t/100,r.l=R(r.l),d(r)}function _(e,t){t=0===t?0:t||10;var r=d(e).toRgb();return r.r=u(0,c(255,r.r-s(-t/100*255))),r.g=u(0,c(255,r.g-s(-t/100*255))),r.b=u(0,c(255,r.b-s(-t/100*255))),d(r)}function w(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.l-=t/100,r.l=R(r.l),d(r)}function k(e,t){var r=d(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,d(r)}function T(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function M(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+120)%360,s:t.s,l:t.l}),d({h:(r+240)%360,s:t.s,l:t.l})]}function A(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+90)%360,s:t.s,l:t.l}),d({h:(r+180)%360,s:t.s,l:t.l}),d({h:(r+270)%360,s:t.s,l:t.l})]}function S(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+72)%360,s:t.s,l:t.l}),d({h:(r+216)%360,s:t.s,l:t.l})]}function L(e,t,r){t=t||6,r=r||30;var n=d(e).toHsl(),a=360/r,i=[d(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(d(n));return i}function O(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],l=1/t;t--;)o.push(d({h:n,s:a,v:i})),i=(i+l)%1;return o}d.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 e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),r=s(100*e.s),n=s(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),r=s(100*e.s),n=s(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return y(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[z(s(e).toString(16)),z(s(t).toString(16)),z(s(r).toString(16)),z(F(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*E(this._r,255))+"%",g:s(100*E(this._g,255))+"%",b:s(100*E(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*E(this._r,255))+"%, "+s(100*E(this._g,255))+"%, "+s(100*E(this._b,255))+"%)":"rgba("+s(100*E(this._r,255))+"%, "+s(100*E(this._g,255))+"%, "+s(100*E(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(D[y(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+v(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(M,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:N(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),i=r/100;return d({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,i=d.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},d.mostReadable=function(e,t,r){var n,a,i,o,l=null,s=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var c=0;c<t.length;c++)(n=d.readability(e,t[c]))>s&&(s=n,l=d(t[c]));return d.isReadable(e,l,{level:i,size:o})||!a?l:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var C=d.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"},D=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(C);function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function E(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return c(1,u(0,e))}function I(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function N(e){return e<=1&&(e=100*e+"%"),e}function F(e){return a.round(255*parseFloat(e)).toString(16)}function j(e){return I(e)/255}var B,H,U,q=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",U="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+U),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 Y(e){return!!q.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},96656:function(e,t,r){function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},75272:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},41088:function(e,t,r){"use strict";var n=r(91148),a=r(84420),i=r(96632),o=r(7728);function l(e){return e.call.bind(e)}var s="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=l(Object.prototype.toString),f=l(Number.prototype.valueOf),d=l(String.prototype.valueOf),h=l(Boolean.prototype.valueOf);if(s)var p=l(BigInt.prototype.valueOf);if(c)var y=l(Symbol.prototype.valueOf);function v(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===u(e)}function m(e){return"[object Set]"===u(e)}function x(e){return"[object WeakMap]"===u(e)}function b(e){return"[object WeakSet]"===u(e)}function _(e){return"[object ArrayBuffer]"===u(e)}function w(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===u(e)}function T(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=a,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||T(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(m.working?m(e):e instanceof Set)},x.working="undefined"!=typeof WeakMap&&x(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(x.working?x(e):e instanceof WeakMap)},b.working="undefined"!=typeof WeakSet&&b(new WeakSet),t.isWeakSet=function(e){return b(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=w,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=T;var M="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===u(e)}function S(e){return void 0!==M&&(void 0===A.working&&(A.working=A(new M)),A.working?A(e):e instanceof M)}function L(e){return v(e,f)}function O(e){return v(e,d)}function C(e){return v(e,h)}function D(e){return s&&v(e,p)}function P(e){return c&&v(e,y)}t.isSharedArrayBuffer=S,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=L,t.isStringObject=O,t.isBooleanObject=C,t.isBigIntObject=D,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return L(e)||O(e)||C(e)||D(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(w(e)||S(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},35840:function(e,t,r){var n=r(4168),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,a=n.length,o=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),l=n[r];r<a;l=n[++r])g(l)||!w(l)?o+=" "+l:o+=" "+c(l);return o},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var a=!1;return function(){if(!a){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),a=!0}return e.apply(this,arguments)}};var o={},l=/^$/;if(n.env.NODE_DEBUG){var s=n.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+s+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),d(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function f(e,t){return e}function d(e,r,n){if(e.customInspect&&r&&M(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var a=r.inspect(n,e);return x(a)||(a=d(e,a,n)),a}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(v(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,r);if(i)return i;var o=Object.keys(r),l=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),T(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(r);if(0===o.length){if(M(r)){var s=r.name?": "+r.name:"";return e.stylize("[Function"+s+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(T(r))return h(r)}var c,u="",f=!1,w=["{","}"];(y(r)&&(f=!0,w=["[","]"]),M(r))&&(u=" [Function"+(r.name?": "+r.name:"")+"]");return _(r)&&(u=" "+RegExp.prototype.toString.call(r)),k(r)&&(u=" "+Date.prototype.toUTCString.call(r)),T(r)&&(u=" "+h(r)),0!==o.length||f&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=f?function(e,t,r,n,a){for(var i=[],o=0,l=t.length;o<l;++o)O(t,String(o))?i.push(p(e,t,r,n,String(o),!0)):i.push("");return a.forEach(function(a){a.match(/^\d+$/)||i.push(p(e,t,r,n,a,!0))}),i}(e,r,n,l,o):o.map(function(t){return p(e,r,n,l,t,f)}),e.seen.pop(),function(e,t,r){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,w)):w[0]+u+w[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,a,i){var o,l,s;if((s=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?l=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),O(n,a)||(o="["+a+"]"),l||(e.seen.indexOf(s.value)<0?(l=g(r)?d(e,s.value,null):d(e,s.value,r-1)).indexOf("\n")>-1&&(l=i?l.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+l.split("\n").map(function(e){return" "+e}).join("\n")):l=e.stylize("[Circular]","special")),b(o)){if(i&&a.match(/^\d+$/))return l;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function y(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function g(e){return null===e}function m(e){return"number"==typeof e}function x(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return w(e)&&"[object RegExp]"===A(e)}function w(e){return"object"==typeof e&&null!==e}function k(e){return w(e)&&"[object Date]"===A(e)}function T(e){return w(e)&&("[object Error]"===A(e)||e instanceof Error)}function M(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(l.test(e)){var r=n.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(41088),t.isArray=y,t.isBoolean=v,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=x,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.types.isRegExp=_,t.isObject=w,t.isDate=k,t.types.isDate=k,t.isError=T,t.types.isNativeError=T,t.isFunction=M,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(75272);var L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":"),[e.getDate(),L[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(6768),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t;if("function"!=typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),a=[],i=0;i<arguments.length;i++)a.push(arguments[i]);a.push(function(e,n){e?r(e):t(n)});try{e.apply(this,a)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),C&&Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=C,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var a=t.pop();if("function"!=typeof a)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return a.apply(i,arguments)};e.apply(this,t).then(function(e){n.nextTick(o.bind(null,null,e))},function(e){n.nextTick(function(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}.bind(null,e,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}},96632:function(e,t,r){"use strict";var n=r(46492),a=r(63436),i=r(57916),o=r(99676),l=r(2304),s=o("Object.prototype.toString"),c=r(46672)(),u="undefined"==typeof globalThis?r.g:globalThis,f=a(),d=o("String.prototype.slice"),h=Object.getPrototypeOf,p=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},y={__proto__:null};n(f,c&&l&&h?function(e){var t=new u[e];if(Symbol.toStringTag in t){var r=h(t),n=l(r,Symbol.toStringTag);if(!n){var a=h(r);n=l(a,Symbol.toStringTag)}y["$"+e]=i(n.get)}}:function(e){var t=new u[e],r=t.slice||t.set;r&&(y["$"+e]=i(r))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=d(s(e),8,-1);return p(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(y,function(r,n){if(!t)try{r(e),t=d(n,1)}catch(e){}}),t}(e)}return l?function(e){var t=!1;return n(y,function(r,n){if(!t)try{"$"+r(e)===n&&(t=d(n,1))}catch(e){}}),t}(e):null}},67020:function(e,t,r){var n=r(38700),a=r(50896),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Chinese",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if("string"==typeof e){var r=e.match(s);return r?r[0]:""}var n=this._validateYear(e),a=e.month(),i=""+this.toChineseMonth(n,a);return t&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(n,a)&&(i+="i"),i},monthNames:function(e){if("string"==typeof e){var t=e.match(c);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),a=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(a="闰"+a),a},monthNamesShort:function(e){if("string"==typeof e){var t=e.match(u);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),a=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(a="闰"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r,n=parseInt(t);if(isNaN(n))"闰"===t[0]&&(r=!0,t=t.substring(1)),"月"===t[t.length-1]&&(t=t.substring(0,t.length-1)),n=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(t);else{var a=t[t.length-1];r="i"===a||"I"===a}return this.toMonthIndex(e,n,r)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),"number"!=typeof e||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var a=this.intercalaryMonth(e);if(r&&t!==a||t<1||t>12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return a?!r&&t<=a?t-1:t:t-1},toChineseMonth:function(e,t){e.year&&(t=(e=e.year()).month());var r=this.intercalaryMonth(e);if(t<0||t>(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?t<r?t+1:t:t+1},intercalaryMonth:function(e){return e=this._validateYear(e),f[e-f[0]]>>13},isIntercalaryMonth:function(e,t){e.year&&(t=(e=e.year()).month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return 0!==this.intercalaryMonth(e)},weekOfYear:function(e,t,r){var a,o=this._validateYear(e,n.local.invalidyear),l=d[o-d[0]],s=l>>9&4095,c=l>>5&15,u=31&l;(a=i.newDate(s,c,u)).add(4-(a.dayOfWeek()||7),"d");var f=this.toJD(e,t,r)-a.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=f[e-f[0]];if(t>(r>>13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&1<<12-t?30:29},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,l,r,n.local.invalidDate);e=this._validateYear(a.year()),t=a.month(),r=a.day();var o=this.isIntercalaryMonth(e,t),l=this.toChineseMonth(e,t),s=function(e,t,r,n,a){var i,o,l;if("object"==typeof e)o=e,i=t||{};else{var s="number"==typeof e&&e>=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var c="number"==typeof t&&t>=1&&t<=12;if(!c)throw new Error("Lunar month outside range 1 - 12");var u,h="number"==typeof r&&r>=1&&r<=30;if(!h)throw new Error("Lunar day outside range 1 - 30");"object"==typeof n?(u=!1,i=n):(u=!!n,i=a||{}),o={year:e,month:t,day:r,isIntercalary:u}}l=o.day-1;var p,y=f[o.year-f[0]],v=y>>13;p=v?o.month>v?o.month:o.isIntercalary?o.month:o.month-1:o.month-1;for(var g=0;g<p;g++){var m=y&1<<12-g?30:29;l+=m}var x=d[o.year-d[0]],b=new Date(x>>9&4095,(x>>5&15)-1,(31&x)+l);return i.year=b.getFullYear(),i.month=1+b.getMonth(),i.day=b.getDate(),i}(e,l,r,o);return i.toJD(s.year,s.month,s.day)},fromJD:function(e){var t=i.fromJD(e),r=function(e,t,r,n){var a,i;if("object"==typeof e)a=e,i=t||{};else{var o="number"==typeof e&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l="number"==typeof t&&t>=1&&t<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s="number"==typeof r&&r>=1&&r<=31;if(!s)throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},i=n||{}}var c=d[a.year-d[0]],u=a.year<<9|a.month<<5|a.day;i.year=u>=c?a.year:a.year-1,c=d[i.year-d[0]];var h,p=new Date(c>>9&4095,(c>>5&15)-1,31&c),y=new Date(a.year,a.month-1,a.day);h=Math.round((y-p)/864e5);var v,g=f[i.year-f[0]];for(v=0;v<13;v++){var m=g&1<<12-v?30:29;if(h<m)break;h-=m}var x=g>>13;!x||v<x?(i.isIntercalary=!1,i.month=1+v):v===x?(i.isIntercalary=!0,i.month=v):(i.isIntercalary=!1,i.month=v);return i.day=1+h,i}(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(l),r=this._validateYear(+t[1]),n=+t[2],a=!!t[3],i=this.toMonthIndex(r,n,a),o=+t[4];return this.newDate(r,i,o)},add:function(e,t,r){var n=e.year(),a=e.month(),i=this.isIntercalaryMonth(n,a),l=this.toChineseMonth(n,a),s=Object.getPrototypeOf(o.prototype).add.call(this,e,t,r);if("y"===r){var c=s.year(),u=s.month(),f=this.isIntercalaryMonth(c,l),d=i&&f?this.toMonthIndex(c,l,!0):this.toMonthIndex(c,l,!1);d!==u&&s.month(d)}return s}});var l=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,s=/^\d?\d[iI]?/m,c=/^闰?十?[一二三四五六七八九]?月/m,u=/^闰?十?[一二三四五六七八九]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],d=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},89792:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Coptic",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==3||e%4==-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return(e=a.year())<0&&e++,a.day()+30*(a.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,a=t-30*(n-1)+1;return this.newDate(r,n,a)}}),n.calendars.coptic=i},55668:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){return(this._validate(e,t,r,n.local.invalidDate).day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return{century:o[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year()+(a.year()<0?1:0),t=a.month(),(r=a.day())+(t>1?16:0)+(t>2?32*(t-2):0)+400*(e-1)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=400*(t-1),e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-32*(r-1)+1;return this.newDate(t<=0?t-1:t,r,n)}});var o={20:"Fruitbat",21:"Anchovy"};n.calendars.discworld=i},65168:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==3||e%4==-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return(e=a.year())<0&&e++,a.day()+30*(a.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,a=t-30*(n-1)+1;return this.newDate(r,n,a)}}),n.calendars.ethiopian=i},2084:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return o(7*(e=e<0?e+1:e)+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===e?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,n.local.invalidMonth),12===t&&this.leapYear(e)?30:8===t&&5===o(this.daysInYear(e),10)?30:9===t&&3===o(this.daysInYear(e),10)?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return 6!==this.dayOfWeek(e,t,r)},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=e<=0?e+1:e,o=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)o+=this.daysInMonth(e,l);for(l=1;l<t;l++)o+=this.daysInMonth(e,l)}else for(l=7;l<t;l++)o+=this.daysInMonth(e,l);return o},_delay1:function(e){var t=Math.floor((235*e-234)/19),r=12084+13753*t,n=29*t+Math.floor(r/25920);return o(3*(n+1),7)<3&&n++,n},_delay2:function(e){var t=this._delay1(e-1),r=this._delay1(e);return this._delay1(e+1)-r==356?2:r-t==382?1:0},fromJD:function(e){e=Math.floor(e)+.5;for(var t=Math.floor(98496*(e-this.jdEpoch)/35975351)-1;e>=this.toJD(-1===t?1:t+1,7,1);)t++;for(var r=e<this.toJD(t,1,1)?7:1;e>this.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}}),n.calendars.hebrew=i},26368:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){return(11*this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year(),t=a.month(),e=e<=0?e+1:e,(r=a.day())+Math.ceil(29.5*(t-1))+354*(e-1)+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}}),n.calendars.islamic=i},24747:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Julian",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()<0?t.year()+1:t.year())%4==0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year(),t=a.month(),r=a.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5)+1524,r=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*r),a=Math.floor((t-n)/30.6001),i=a-Math.floor(a<14?1:13),o=r-Math.floor(i>2?4716:4715),l=t-n-Math.floor(30.6001*a);return o<=0&&o--,this.newDate(o,i,l)}}),n.calendars.julian=i},65616:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}function l(e,t){return o(e-1,t)+1}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(e){e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year();var t=Math.floor(e/400);return e%=400,e+=e<0?400:0,t+"."+Math.floor(e/20)+"."+e%20},forYear:function(e){if((e=e.split(".")).length<3)throw"Invalid Mayan year";for(var t=0,r=0;r<e.length;r++){var n=parseInt(e[r],10);if(Math.abs(n)>19||r>0&&n<0)throw"Invalid Mayan year";t=20*t+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate).day()},weekDay:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate),!0},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate).toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){var t=o((e-=this.jdEpoch)+8+340,365);return[Math.floor(t/20)+1,o(t,20)]},_toTzolkin:function(e){return[l((e-=this.jdEpoch)+20,20),l(e+4,13)]},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return a.day()+20*a.month()+360*a.year()+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e%=360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}}),n.calendars.mayan=i},30632:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar;var o=n.instance("gregorian");a(i.prototype,{name:"Nanakshahi",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear);return o.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidMonth);(e=a.year())<0&&e++;for(var i=a.day(),l=1;l<a.month();l++)i+=this.daysPerMonth[l-1];return i+o.toJD(e+1468,3,13)},fromJD:function(e){e=Math.floor(e+.5);for(var t=Math.floor((e-(this.jdEpoch-1))/366);e>=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}}),n.calendars.nanakshahi=i},73040:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){if(e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[e])return this.daysPerYear;for(var t=0,r=this.minMonth;r<=12;r++)t+=this.NEPALI_CALENDAR_DATA[e][r];return t},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,n.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[e]?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return 6!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=n.instance(),o=0,l=t,s=e;this._createMissingCalendarData(e);var c=e-(l>9||9===l&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(9!==t&&(o=r,l--);9!==l;)l<=0&&(l=12,s--),o+=this.NEPALI_CALENDAR_DATA[s][l],l--;return 9===t?(o+=r-this.NEPALI_CALENDAR_DATA[s][0])<0&&(o+=i.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(c,1,1).add(o,"d").toJD()},fromJD:function(e){var t=n.instance().fromJD(e),r=t.year(),a=t.dayOfYear(),i=r+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;a>s;)++o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var c=this.NEPALI_CALENDAR_DATA[i][o]-(s-a);return this.newDate(i,o,c)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r<e+2;r++)void 0===this.NEPALI_CALENDAR_DATA[r]&&(this.NEPALI_CALENDAR_DATA[r]=t)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2000:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=i},1104:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Persian",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return 682*((t.year()-(t.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-(n.dayOfWeek()+1)%7,"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=e-(e>=0?474:473),l=474+o(i,2820);return r+(t<=7?31*(t-1):30*(t-1)+6)+Math.floor((682*l-110)/2816)+365*(l-1)+1029983*Math.floor(i/2820)+this.jdEpoch-1},fromJD:function(e){var t=(e=Math.floor(e)+.5)-this.toJD(475,1,1),r=Math.floor(t/1029983),n=o(t,1029983),a=2820;if(1029982!==n){var i=Math.floor(n/366),l=o(n,366);a=Math.floor((2134*i+2816*l+2815)/1028522)+i+1}var s=a+2820*r+474;s=s<=0?s-1:s;var c=e-this.toJD(s,1,1)+1,u=c<=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=e-this.toJD(s,u,1)+1;return this.newDate(s,u,f)}}),n.calendars.persian=i,n.calendars.jalali=i},51456:function(e,t,r){var n=r(38700),a=r(50896),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Taiwan",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);e=this._t2gYear(t.year());return i.leapYear(e)},weekOfYear:function(e,t,r){var a=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);e=this._t2gYear(a.year());return i.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=this._t2gYear(a.year());return i.toJD(e,a.month(),a.day())},fromJD:function(e){var t=i.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},4592:function(e,t,r){var n=r(38700),a=r(50896),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Thai",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);e=this._t2gYear(t.year());return i.leapYear(e)},weekOfYear:function(e,t,r){var a=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);e=this._t2gYear(a.year());return i.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=this._t2gYear(a.year());return i.toJD(e,a.month(),a.day())},fromJD:function(e){var t=i.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}}),n.calendars.thai=o},45348:function(e,t,r){var n=r(38700),a=r(50896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,a=0,i=0;i<o.length;i++){if(o[i]>r)return o[a]-o[a-1];a++}return 30},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate),i=12*(a.year()-1)+a.month()-15292;return a.day()+o[i-1]-1+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;n<o.length&&!(o[n]>t);n++)r++;var a=r+15292,i=Math.floor((a-1)/12),l=i+1,s=a-12*i,c=t-o[r-1]+1;return this.newDate(l,s,c)},isValid:function(e,t,r){var a=n.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(e=null!=e.year?e.year:e)>=1276&&e<=1500),a},_validate:function(e,t,r,a){var i=n.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw a.replace(/\{0\}/,this.local.name);return i}}),n.calendars.ummalqura=i;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(e,t,r){var n=r(50896);function a(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(e,t){return"000000".substring(0,t-(e=""+e).length)+e}function l(){this.shortYearCutoff="+10"}function s(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}n(a.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,a){return(n=(null!=e&&e.year?e.calendar():"string"==typeof n?this.instance(n,a):n)||this.instance()).newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",a=0;r>0;){var i=r%10;n=(0===i?"":e[i]+t[a])+n,a++,r=Math.floor(r/10)}return 0===n.indexOf(e[1]+t[1])&&(n=n.substr(1)),n||e[0]}}}),n(i.prototype,{newDate:function(e,t,r){return this._calendar.newDate(null==e?this:e,t,r)},year:function(e){return 0===arguments.length?this._year:this.set(e,"y")},month:function(e){return 0===arguments.length?this._month:this.set(e,"m")},day:function(e){return 0===arguments.length?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return 0===t?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+o(Math.abs(this.year()),4)+"-"+o(this.month(),2)+"-"+o(this.day(),2)}}),n(l.prototype,{_validateLevel:0,newDate:function(e,t,r){return null==e?this.today():(e.year&&(this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new i(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){return this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+o(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,"d"===r||"w"===r){var n=e.toJD()+t*("w"===r?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+("y"===r?t:0),o=e.monthOfYear()+("m"===r?t:0);a=e.day();"y"===r?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):"m"===r&&(!function(e){for(;o<e.minMonth;)i--,o+=e.monthsInYear(i);for(var t=e.monthsInYear(i);o>t-1+e.minMonth;)i++,o-=t,t=e.monthsInYear(i)}(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var l=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,l}catch(e){throw this._validateLevel--,e}},_correctAdd:function(e,t,r,n){if(!(this.hasYearZero||"y"!==n&&"m"!==n||0!==t[0]&&e.year()>0==t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],i=r<0?-1:1;t=this._add(e,r*a[0]+i*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate);var n="y"===r?t:e.year(),a="m"===r?t:e.month(),i="d"===r?t:e.day();return"y"!==r&&"m"!==r||(i=Math.min(i,this.daysInMonth(n,a))),e.date(n,a,i)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||0!==e;if(n){var a=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth<this.monthsInYear(a)&&r>=this.minDay&&r-this.minDay<this.daysInMonth(a)}return this._validateLevel--,n},toJSDate:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(e){return this.fromJD(c.instance().fromJSDate(e).toJD())},_validate:function(e,t,r,n){if(e.year){if(0===this._validateLevel&&this.name!==e.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,e.calendar().local.name);return e}try{if(this._validateLevel++,1===this._validateLevel&&!this.isValid(e,t,r))throw n.replace(/\{0\}/,this.local.name);var a=this.newDate(e,t,r);return this._validateLevel--,a}catch(e){throw this._validateLevel--,e}}}),s.prototype=new l,n(s.prototype,{name:"Gregorian",jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==0&&(e%100!=0||e%400==0)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<3&&(t+=12,e--);var a=Math.floor(e/100),i=2-a+Math.floor(a/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r+i-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=Math.floor((t-1867216.25)/36524.25),n=(r=t+1+r-Math.floor(r/4))+1524,a=Math.floor((n-122.1)/365.25),i=Math.floor(365.25*a),o=Math.floor((n-i)/30.6001),l=n-i-Math.floor(30.6001*o),s=o-(o>13.5?13:1),c=a-(s>2.5?4716:4715);return c<=0&&c--,this.newDate(c,s,l)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var c=e.exports=new a;c.cdate=i,c.baseCalendar=l,c.calendars.gregorian=s},15168:function(e,t,r){var n=r(50896),a=r(38700);n(a.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),a.local=a.regionalOptions[""],n(a.cdate.prototype,{formatDate:function(e,t){return"string"!=typeof e&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}}),n(a.baseCalendar.prototype,{UNIX_EPOCH:a.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:a.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if("string"!=typeof e&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw a.local.invalidFormat||a.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat;for(var n,i,o,l,s=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,d=r.monthNames||this.local.monthNames,h=(r.calculateWeek||this.local.calculateWeek,function(t,r){for(var n=1;w+n<e.length&&e.charAt(w+n)===t;)n++;return w+=n-1,Math.floor(n/(r||1))>1}),p=function(e,t,r,n){var a=""+t;if(h(e,n))for(;a.length<r;)a="0"+a;return a},y=this,v=function(e){return"function"==typeof u?u.call(y,e,h("m")):x(p("m",e.month(),2))},g=function(e,t){return t?"function"==typeof d?d.call(y,e):d[e.month()-y.minMonth]:"function"==typeof f?f.call(y,e):f[e.month()-y.minMonth]},m=this.local.digits,x=function(e){return r.localNumbers&&m?m(e):e},b="",_=!1,w=0;w<e.length;w++)if(_)"'"!==e.charAt(w)||h("'")?b+=e.charAt(w):_=!1;else switch(e.charAt(w)){case"d":b+=x(p("d",t.day(),2));break;case"D":b+=(n="D",i=t.dayOfWeek(),o=s,l=c,h(n)?l[i]:o[i]);break;case"o":b+=p("o",t.dayOfYear(),3);break;case"w":b+=p("w",t.weekOfYear(),2);break;case"m":b+=v(t);break;case"M":b+=g(t,h("M"));break;case"y":b+=h("y",2)?t.year():(t.year()%100<10?"0":"")+t.year()%100;break;case"Y":h("Y",2),b+=t.formatYear();break;case"J":b+=t.toJD();break;case"@":b+=(t.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":b+=(t.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":h("'")?b+="'":_=!0;break;default:b+=e.charAt(w)}return b},parseDate:function(e,t,r){if(null==t)throw a.local.invalidArguments||a.regionalOptions[""].invalidArguments;if(""===(t="object"==typeof t?t.toString():t+""))return null;e=e||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n="string"!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var i=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,l=r.parseMonth||this.local.parseMonth,s=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,d=-1,h=-1,p=-1,y=-1,v=!1,g=!1,m=function(t,r){for(var n=1;A+n<e.length&&e.charAt(A+n)===t;)n++;return A+=n-1,Math.floor(n/(r||1))>1},x=function(e,r){var n=m(e,r),i=[2,3,n?4:2,n?4:2,10,11,20]["oyYJ@!".indexOf(e)+1],o=new RegExp("^-?\\d{1,"+i+"}"),l=t.substring(M).match(o);if(!l)throw(a.local.missingNumberAt||a.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=l[0].length,parseInt(l[0],10)},b=this,_=function(){if("function"==typeof s){m("m");var e=s.call(b,t.substring(M));return M+=e.length,e}return x("m")},w=function(e,r,n,i){for(var o=m(e,i)?n:r,l=0;l<o.length;l++)if(t.substr(M,o[l].length).toLowerCase()===o[l].toLowerCase())return M+=o[l].length,l+b.minMonth;throw(a.local.unknownNameAt||a.regionalOptions[""].unknownNameAt).replace(/\{0\}/,M)},k=function(){if("function"==typeof u){var e=m("M")?u.call(b,t.substring(M)):c.call(b,t.substring(M));return M+=e.length,e}return w("M",c,u)},T=function(){if(t.charAt(M)!==e.charAt(A))throw(a.local.unexpectedLiteralAt||a.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,M);M++},M=0,A=0;A<e.length;A++)if(g)"'"!==e.charAt(A)||m("'")?T():g=!1;else switch(e.charAt(A)){case"d":p=x("d");break;case"D":w("D",i,o);break;case"o":y=x("o");break;case"w":x("w");break;case"m":h=_();break;case"M":h=k();break;case"y":var S=A;v=!m("y",2),A=S,d=x("y",2);break;case"Y":d=x("Y",2);break;case"J":f=x("J")+.5,"."===t.charAt(M)&&(M++,x("J"));break;case"@":f=x("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=x("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":M=t.length;break;case"'":m("'")?T():g=!0;break;default:T()}if(M<t.length)throw a.local.unexpectedText||a.regionalOptions[""].unexpectedText;if(-1===d?d=this.today().year():d<100&&v&&(d+=-1===n?1900:this.today().year()-this.today().year()%100-(d<=n?0:100)),"string"==typeof h&&(h=l.call(this,d,h)),y>-1){h=1,p=y;for(var L=this.daysInMonth(d,h);p>L;L=this.daysInMonth(d,h))h++,p-=L}return f>-1?this.fromJD(f):this.newDate(d,h,p)},determineDate:function(e,t,r,n,a){r&&"object"!=typeof r&&(a=n,n=r,r=null),"string"!=typeof n&&(a=n,n="");var i=this;return t=t?t.newDate():null,e=null==e?t:"string"==typeof e?function(e){try{return i.parseDate(n,e,a)}catch(e){}for(var t=((e=e.toLowerCase()).match(/^c/)&&r?r.newDate():null)||i.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,l=o.exec(e);l;)t.add(parseInt(l[1],10),l[2]||"d"),l=o.exec(e);return t}(e):"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?t:i.today().add(e,"d"):i.newDate(e)}})},21576:function(){},19768:function(){},63436:function(e,t,r){"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof a[n[t]]&&(e[e.length]=n[t]);return e}}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(2024)}()});var locale={moduleType:"locale",name:"ca",dictionary:{},format:{days:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"],shortDays:["Dug","Dln","Dmt","Dmc","Djs","Dvn","Dsb"],months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],shortMonths:["Gen","Feb","Mar","Abr","Mai","Jun","Jul","Ago","Set","Oct","Nov","Des"],date:"%d/%m/%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"cs",dictionary:{Autoscale:"Auto rozsah","Box Select":"Obdélníkový výběr","Click to enter Colorscale title":"Klikněte pro zadání názvu barevné škály","Click to enter Component A title":"Klikněte pro zadání názvu komponenty A","Click to enter Component B title":"Klikněte pro zadání názvu komponenty B","Click to enter Component C title":"Klikněte pro zadání názvu komponenty C","Click to enter Plot title":"Klikněte pro zadání názvu grafu","Click to enter X axis title":"Klikněte pro zadání názvu osy X","Click to enter Y axis title":"Klikněte pro zadání názvu osy Y","Click to enter radial axis title":"Klikněte pro zadání názvu radiální osy","Compare data on hover":"Porovnat hodnoty při najetí myší","Double-click on legend to isolate one trace":"Dvojklikem na legendu izolujete jedinou datovou sadu","Double-click to zoom back out":"Dvojklikem vrátíte zvětšení","Download plot as a png":"Uložit jako PNG","Download plot":"Uložit","Edit in Chart Studio":"Editovat v Chart Studio","IE only supports svg. Changing format to svg.":"IE podporuje pouze SVG formát. Změněno na SVG.","Lasso Select":"Vyběr lasem","Orbital rotation":"Rotace (orbitální)",Pan:"Posunovat","Produced with Plotly.js":"Vytvořeno pomocí Plotly.js",Reset:"Obnovit nastavení","Reset axes":"Obnovit nastavení os","Reset camera to default":"Obnovit nastavení kamery na výchozí stav","Reset camera to last save":"Obnovit nastavení kamery na poslední uložený stav","Reset view":"Obnovit nastavení pohledu","Reset views":"Obnovit nastavení pohledů","Show closest data on hover":"Zobrazit najbližší hodnotu při najetí myší","Snapshot succeeded":"Snímek vytvořen","Sorry, there was a problem downloading your snapshot!":"Omlouváme se, ale došlo k chybě stahování snímku!","Taking snapshot - this may take a few seconds":"Vytváří se snímek - může zabrat pár vteřin",Zoom:"Zvětšení","Zoom in":"Zvětšit","Zoom out":"Zmenšit","close:":"zavřít:",trace:"datová sada","lat:":"Lat.:","lon:":"Lon.:","q1:":"q1:","q3:":"q3:","source:":"zdroj:","target:":"cíl:","lower fence:":"dolní limit:","upper fence:":"horní limit:","max:":"max.:","mean ± σ:":"průměr ± σ:","mean:":"průměr:","median:":"medián:","min:":"min.:","new text":"nový text","Turntable rotation":"Rotace (otočný stůl)","Toggle Spike Lines":"Přepnout zobrazení vodících čar","open:":"otevřít:","high:":"horní:","low:":"dolní:","Toggle show closest data on hover":"Přepnout zobrazování nejbližši hodnoty při najetí myší","incoming flow count:":"počet dat na vstupu:","outgoing flow count:":"počet dat na výstupu:","kde:":"kde:"},format:{days:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],shortDays:["ne","po","út","st","čt","pá","so"],months:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],shortMonths:["led","úno","bře","dub","kvě","čer","čvc","srp","zář","říj","lis","pro"],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"de",dictionary:{Autoscale:"Automatische Skalierung","Box Select":"Rechteckauswahl","Click to enter Colorscale title":"Klicken, um den Farbskalatitel einzugeben","Click to enter Component A title":"Klicken, um den Titel der Komponente A einzugeben","Click to enter Component B title":"Klicken, um den Titel der Komponente B einzugeben","Click to enter Component C title":"Klicken, um den Titel der Komponente C einzugeben","Click to enter Plot title":"Klicken, um den Titel des Graphen einzugeben","Click to enter X axis title":"Klicken, um den Titel der X-Achse einzugeben","Click to enter Y axis title":"Klicken, um den Titel der Y-Achse einzugeben","Compare data on hover":"Über die Daten fahren, um sie zu vergleichen","Double-click on legend to isolate one trace":"Daten isolieren durch Doppelklick in der Legende","Double-click to zoom back out":"Herauszoomen durch Doppelklick","Download plot as a png":"Graphen als PNG herunterladen","Download plot":"Graphen herunterladen","Edit in Chart Studio":"Im Chart Studio bearbeiten","IE only supports svg. Changing format to svg.":"IE unterstützt nur SVG-Dateien. Format wird zu SVG gewechselt.","Lasso Select":"Lassoauswahl","Orbital rotation":"Orbitalrotation",Pan:"Verschieben","Produced with Plotly.js":"Erstellt mit Plotly.js",Reset:"Zurücksetzen","Reset axes":"Achsen zurücksetzen","Reset camera to default":"Kamera auf Standard zurücksetzen","Reset camera to last save":"Kamera auf letzte Speicherung zurücksetzen","Reset view":"Ansicht zurücksetzen","Reset views":"Ansichten zurücksetzen","Show closest data on hover":"Zeige näheste Daten beim Überfahren","Snapshot succeeded":"Snapshot erfolgreich","Sorry, there was a problem downloading your snapshot!":"Es gab ein Problem beim Herunterladen des Snapshots","Taking snapshot - this may take a few seconds":"Erstelle einen Snapshot - dies kann einige Sekunden dauern",Zoom:"Zoom","Zoom in":"Hineinzoomen","Zoom out":"Herauszoomen","close:":"Schluss:",trace:"Datenspur","lat:":"Lat.:","lon:":"Lon.:","q1:":"q1:","q3:":"q3:","source:":"Quelle:","target:":"Ziel:","lower fence:":"Untere Schranke:","upper fence:":"Obere Schranke:","max:":"Max.:","mean ± σ:":"Mittelwert ± σ:","mean:":"Mittelwert:","median:":"Median:","min:":"Min.:","Turntable rotation":"Drehscheibenorbit","Toggle Spike Lines":"Bezugslinien an-/abschalten","open:":"Eröffnung:","high:":"Höchstkurs:","low:":"Tiefstkurs:","Toggle show closest data on hover":"Anzeige der nähesten Daten an-/abschalten","incoming flow count:":"Anzahl eingehender Verbindungen:","outgoing flow count:":"Anzahl ausgehender Verbindungen:","kde:":"Dichte:"},format:{days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],date:"%d.%m.%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"da",dictionary:{},format:{days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],shortDays:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],shortMonths:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],date:"%d-%m-%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"es",dictionary:{Autoscale:"Autoescalar","Box Select":"Seleccionar Caja","Click to enter Colorscale title":"Introducir el título de la Escala de Color","Click to enter Component A title":"Introducir el título del Componente A","Click to enter Component B title":"Introducir el título del Componente B","Click to enter Component C title":"Introducir el título del Componente C","Click to enter Plot title":"Introducir el título de la Gráfica","Click to enter X axis title":"Introducir el título del eje X","Click to enter Y axis title":"Introducir el título del eje Y","Click to enter radial axis title":"Introducir el título del eje radial","Compare data on hover":"Comparar datos al pasar por encima","Double-click on legend to isolate one trace":"Haga doble-clic en la leyenda para aislar una traza","Double-click to zoom back out":"Haga doble-clic para restaurar la escala","Download plot as a png":"Descargar gráfica como png","Download plot":"Descargar gráfica","Edit in Chart Studio":"Editar en Chart Studio","IE only supports svg. Changing format to svg.":"IE solo soporta svg. Cambiando formato a svg.","Lasso Select":"Seleccionar con lazo","Orbital rotation":"Rotación esférica",Pan:"Modo Panorámica","Produced with Plotly.js":"Hecho con Plotly.js",Reset:"Reiniciar","Reset axes":"Reiniciar ejes","Reset camera to default":"Restaurar cámara predeterminada","Reset camera to last save":"Restaurar anterior cámara","Reset view":"Restaurar vista","Reset views":"Restaurar vistas","Show closest data on hover":"Mostrar el dato más cercano al pasar por encima","Snapshot succeeded":"La captura de la instantánea finalizó correctamente","Sorry, there was a problem downloading your snapshot!":"¡La descarga de la instantánea falló!","Taking snapshot - this may take a few seconds":"Capturando una instantánea - podría tardar unos segundos","Toggle Spike Lines":"Mostrar/Ocultar Guías","Toggle show closest data on hover":"Activar/Desactivar mostrar el dato más cercano al pasar por encima","Turntable rotation":"Rotación plana",Zoom:"Modo Ampliar/Reducir","Zoom in":"Ampliar","Zoom out":"Reducir","close:":"cierre:","high:":"alza:","incoming flow count:":"flujo de entrada:","kde:":"edp:","lat:":"lat:","lon:":"lon:","low:":"baja:","lower fence:":"límite inferior:","max:":"máx:","mean ± σ:":"media ± σ:","mean:":"media:","median:":"mediana:","min:":"mín:","new text":"nuevo texto","open:":"apertura:","outgoing flow count:":"flujo de salida:","q1:":"q1:","q3:":"q3:","source:":"fuente:","target:":"destino:",trace:"traza","upper fence:":"límite superior:"},format:{days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],shortDays:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],shortMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],date:"%d/%m/%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"fi",dictionary:{Autoscale:"Autoskaalaa","Box Select":"Laatikkovalinta","Click to enter Colorscale title":"Klikkaa antaaksesi väriskaalan otsikko","Click to enter Component A title":"Klikkaa antaaksesi komponentin A otsikko","Click to enter Component B title":"Klikkaa antaaksesi komponentin B otsikko","Click to enter Component C title":"Klikkaa antaaksesi komponentin C otsikko","Click to enter Plot title":"Klikkaa antaaksesi kuvion otsikko","Click to enter X axis title":"Klikkaa antaaksesi x-akselin otsikko","Click to enter Y axis title":"Klikkaa antaaksesi y-akselin otsikko","Click to enter radial axis title":"Klikkaa antaaksesi radiaalisen akselin otsikko","Compare data on hover":"Vertaa dataa kursorilla","Double-click on legend to isolate one trace":"Kaksoisklikkaa selitettä eristääksesi yksi sarja","Double-click to zoom back out":"Kaksoisklikkaa zoomataksesi ulos","Download plot":"Lataa kuvio","Download plot as a png":"Lataa kuvio png-muodossa","Edit in Chart Studio":"Muokkaa Chart Studiossa","IE only supports svg. Changing format to svg.":"Formaatiksi vaihdetaan IE:n tukema svg.","Lasso Select":"Lassovalinta","Orbital rotation":"Orbitaalikierto",Pan:"Panorointi","Produced with Plotly.js":"Tuotettu Plotly.jsllä",Reset:"Palauta oletusasetukset","Reset axes":"Palauta akselien oletusasetukset","Reset camera to default":"Palauta kameran oletusasetukset","Reset camera to last save":"Palauta kameran viimeksi tallennetut asetukset","Reset view":"Palauta näkymän oletusasetukset","Reset views":"Palauta näkymien oletusasetukset","Show closest data on hover":"Näytä kursoria lähin data","Snapshot succeeded":"Tilannekuvan ottaminen onnistui","Sorry, there was a problem downloading your snapshot!":"Pahoittelut, tilannekuvan lataaminen epäonnistui!","Taking snapshot - this may take a few seconds":"Otetaan tilannekuvaa - odota hetki","Toggle Spike Lines":"Näytä huiput","Toggle show closest data on hover":"Näytä kursoria lähin data","Turntable rotation":"Tasokierto",Zoom:"Zoomaus","Zoom in":"Zoomaa sisään","Zoom out":"Zoomaa ulos","close:":"loppu:","high:":"korkein:","incoming flow count:":"saapuva virtaus:","kde:":"ydinestimointi:","lat:":"lat.:","lon:":"lon.:","low:":"matalin:","lower fence:":"alempi raja:","max:":"maks.:","mean ± σ:":"keskiarvo ± σ:","mean:":"keskiarvo:","median:":"mediaani:","min:":"min.:","new text":"uusi teksti","open:":"alku:","outgoing flow count:":"lähtevä virtaus:","q1:":"q1:","q3:":"q3:","source:":"lähde:","target:":"kohde:",trace:"sarja","upper fence:":"ylempi raja:"},format:{days:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],shortDays:["su","ma","ti","ke","to","pe","la"],months:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],shortMonths:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"fr",dictionary:{Autoscale:"Échelle automatique","Box Select":"Sélection rectangulaire","Click to enter Colorscale title":"Ajouter un titre à l'échelle de couleurs","Click to enter Component A title":"Ajouter un titre à la composante A","Click to enter Component B title":"Ajouter un titre à la composante B","Click to enter Component C title":"Ajouter un titre à la composante C","Click to enter Plot title":"Ajouter un titre au graphique","Click to enter X axis title":"Ajouter un titre à l'axe des x","Click to enter Y axis title":"Ajouter un titre à l'axe des y","Click to enter radial axis title":"Ajouter un titre à l'axe radial","Compare data on hover":"Comparaison entre données en survol","Double-click on legend to isolate one trace":"Double-cliquer sur la légende pour isoler une série","Double-click to zoom back out":"Double-cliquer pour dézoomer","Download plot as a png":"Télécharger le graphique en fichier PNG","Download plot":"Télécharger le graphique","Edit in Chart Studio":"Éditer le graphique sur Chart Studio","IE only supports svg. Changing format to svg.":"IE ne permet que les conversions en SVG. Conversion en SVG en cours.","Lasso Select":"Sélection lasso","Orbital rotation":"Rotation orbitale",Pan:"Translation","Produced with Plotly.js":"Généré avec Plotly.js",Reset:"Réinitialiser","Reset axes":"Réinitialiser les axes","Reset camera to default":"Régler la caméra à sa valeur défaut","Reset camera to last save":"Régler la caméra à sa valeur sauvegardée","Reset view":"Réinitialiser","Reset views":"Réinitialiser","Show closest data on hover":"Données les plus proches en survol","Snapshot succeeded":"Conversion réussie","Sorry, there was a problem downloading your snapshot!":"Désolé, un problème est survenu lors du téléchargement de votre graphique","Taking snapshot - this may take a few seconds":"Conversion en cours, ceci peut prendre quelques secondes",Zoom:"Zoom","Zoom in":"Zoom intérieur","Zoom out":"Zoom extérieur","close:":"fermeture :",trace:"série","lat:":"lat. :","lon:":"lon. :","q1:":"q1 :","q3:":"q3 :","source:":"source :","target:":"embouchure :","lower fence:":"clôture inférieure :","upper fence:":"clôture supérieure :","max:":"max. :","mean ± σ:":"moyenne ± σ :","mean:":"moyenne :","median:":"médiane :","min:":"min. :","new text":"nouveau texte","Turntable rotation":"Rotation planaire","Toggle Spike Lines":"Activer/désactiver les pics","open:":"ouverture :","high:":"haut :","low:":"bas :","Toggle show closest data on hover":"Activer/désactiver le survol","incoming flow count:":"flux entrant :","outgoing flow count:":"flux sortant :","kde:":"est. par noyau :"},format:{days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],shortDays:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],shortMonths:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],date:"%d/%m/%Y",decimal:",",thousands:" ",year:"%Y",month:"%b %Y",dayMonth:"%-d %b",dayMonthYear:"%-d %b %Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"he",dictionary:{},format:{days:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],shortDays:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],shortMonths:["1","2","3","4","5","6","7","8","9","10","11","12"],date:"%d/%m/%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"hu",dictionary:{},format:{days:["Vasárnap","Hétfö","Kedd","Szerda","Csütörtök","Péntek","Szombat"],shortDays:["Vas","Hét","Ked","Sze","Csü","Pén","Szo"],months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],shortMonths:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"it",dictionary:{Autoscale:"Scala automaticamente","Box Select":"Selezione box","Click to enter Colorscale title":"Clicca per inserire un titolo alla scala di colori","Click to enter Component A title":"Clicca per inserire un titolo al componente A","Click to enter Component B title":"Clicca per inserire un titolo al componente B","Click to enter Component C title":"Clicca per inserire un titolo al componente C","Click to enter Plot title":"Clicca per inserire un titolo al grafico","Click to enter X axis title":"Clicca per inserire un titolo all'asse X","Click to enter Y axis title":"Clicca per inserire un titolo all'asse Y","Click to enter radial axis title":"Clicca per inserire un titolo per l' asse radiale","Compare data on hover":"Paragona i dati al passaggio del mouse","Double-click on legend to isolate one trace":"Doppio click per isolare i dati di una traccia","Double-click to zoom back out":"Doppio click per tornare allo zoom iniziale","Download plot as a png":"Scarica il grafico come immagine png","Download plot":"Scarica il grafico","Edit in Chart Studio":"Modifica in Chart Studio","IE only supports svg. Changing format to svg.":"IE supporta solo svg. Modifica formato in svg.","Lasso Select":"Selezione lazo","Orbital rotation":"Rotazione orbitale",Pan:"Sposta","Produced with Plotly.js":"Creato con Plotly.js",Reset:"Reset","Reset axes":"Resetta gli assi","Reset camera to default":"Reimposta la camera ai valori predefiniti","Reset camera to last save":"Reimposta la camera all' ultimo salvataggio","Reset view":"Reimposta la vista","Reset views":"Reimposta le viste","Show closest data on hover":"Mostra i dati più vicini al passaggio del mouse","Snapshot succeeded":"Screenshot creato con successo","Sorry, there was a problem downloading your snapshot!":"Si è verificato un errore durante la creazione dello screenshot","Taking snapshot - this may take a few seconds":"Creazione screenshot - potrebbe richiedere qualche secondo",Zoom:"Zoom","Zoom in":"Ingrandisci","Zoom out":"Rimpicciolisci","close:":"chiudi:",trace:"traccia","lat:":"lat.:","lon:":"lon.:","q1:":"q1:","q3:":"q3:","source:":"sorgente:","target:":"target:","max:":"max.:","mean ± σ:":"media ± σ:","mean:":"media:","median:":"mediana:","min:":"min.:","new text:":"Nuovo testo:","upper fence:":"limite superiore:","lower fence:":"limite inferiore:","Turntable rotation":"Rotazione piattaforma","Toggle Spike Lines":"Abilita linee di identificazione","open:":"apri:","high:":"alto:","kde:":"kde:","low:":"basso:","incoming flow count:":"Flusso in entrata:","outgoing flow count:":"Flusso in uscita:","Toggle show closest data on hover":"Abilita mostra i dati più vicini al passaggio del mouse"},format:{days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],shortDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],date:"%d/%m/%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"no",dictionary:{Autoscale:"Autoskalere","Box Select":"Velg rektangel","Click to enter Colorscale title":"Klikk for å oppgi tittel på fargeskala","Click to enter Component A title":"Klikk for å oppgi tittel på komponent A","Click to enter Component B title":"Klikk for å oppgi tittel på komponent B","Click to enter Component C title":"Klikk for å oppgi tittel på komponent C","Click to enter Plot title":"Klikk for å oppgi tittel på plot","Click to enter X axis title":"Klikk for å oppgi tittel på x-akse","Click to enter Y axis title":"Klikk for å oppgi tittel på y-akse","Click to enter radial axis title":"Klikk for å oppgi tittel på radiell akse","Compare data on hover":"Sammenligne data når musepekeren holdes åver","Double-click on legend to isolate one trace":"Dobbelklikk på på forklaringen for å vise bare en serie","Double-click to zoom back out":"Dobbelklikk for å zoome ut igjen","Download plot":"Last ned plot","Download plot as a png":"Last ned plot som png","Edit in Chart Studio":"Editer i Chart Studio","IE only supports svg. Changing format to svg.":"IE støtter bare svg. Bytt format til svg.","Lasso Select":"Velg lasso","Orbital rotation":"Orbital rotasjon",Pan:"Panne","Produced with Plotly":"Laget med Plotly",Reset:"Nullstille","Reset akses":"Nullstille akser","Reset camera to default":"Nullstille kamera til standard","Reset camera to last save":"Nullstille kamera til siste lagret","Reset view":"Nullstille visning","Reset views":"Nullstille visninger","Show closest data on hover":"Vis nærmeste verdi når musepekeren holdes over","Snapshot succeeded":"Bilde Laget","Sorry, there was a problem downloading your snapshot!":"Beklager, noe gikk galt under nedlasting av bildet","Taking snapshot - this may take a few seconds":"Oppretter bilde - dette kan ta noen sekunder","Toggle Spike Lines":"Aktiver / deaktiver topplinjer","Toggle show closest data on hover":"Aktiver / deaktiver nærmeste verdi når musepekeren holdes over","Turntable rotation":"Flat rotation",Zoom:"Zoom","Zoom in":"Zoom inn","Zoom out":"Zoom ut","close:":"steng:","concentration:":"konsentrasjon:","high:":"høy:","incoming flow count:":"innkommende strømningssammendrag:","kde:":"kde:","lat:":"lat:","lon:":"lon:","low:":"lav:","lower fence:":"lavere grense","max:":"maks:","mean ± σ:":"gjennomsnitt ± σ:","mean:":"gjennomsnitt:","median:":"median:","min:":"min:","new text":"ny text","open:":"åpen:","outgoing flow count:":"utgående strømningssammendrag:","q1:":"q1:","q3:":"q3:","source:":"kilde:","target:":"mål:",trace:"serie","upper fence:":"øvre grense:"},format:{days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],shortDays:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],shortMonths:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"nl",dictionary:{Autoscale:"Automatische schaal","Click to enter Colorscale title":"Klik om kleurenschaal titel in te vullen","Click to enter Component A title":"Klik om Component A titel in te vullen","Click to enter Component B title":"Klik om Component B titel in te vullen","Click to enter Component C title":"Klik om Component C titel in te vullen","Click to enter Plot title":"Klik om Plot titel in te vullen","Click to enter X axis title":"Klik om x-as titel in te vullen","Click to enter Y axis title":"Klik om y-as titel in te vullen","Click to enter radial axis title":"Klik om radiaal-as titel in te vullen","Double-click to zoom back out":"Zoom uit door te dubbel klikken","Download plot as a png":"Dowload de plot als een png-bestand","Download plot":"Download de plot","Draw circle":"Teken cirkel","Draw closed freeform":"Teken gesloten vorm","Draw line":"Teken lijn","Draw open freeform":"Teken open vorm","Draw rectangle":"Teken rechthoek","Edit in Chart Studio":"In Chart Studio wijzigen","Erase active shape":"Wis huidige vorm","IE only supports svg. Changing format to svg.":"IE ondersteunt alleen svg bestanden. Formaat gewijzigd naar svg.","Lasso Select":"Lasso selectie","Produced with Plotly.js":"Gemaakt met Plotly.js",Zoom:"Inzoomen","max:":"maximum:","mean ± σ:":"gemiddelde ± σ:","mean:":"gemiddelde:","min:":"minimum:","new text":"nieuwe tekst","open:":"openen:","high:":"hoog:","low:":"laag:","source:":"bron:","target:":"doel:"},format:{days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zon","maa","din","woe","don","vri","zat"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","maa","apr","mei","jun","jul","aug","sep","okt","nov","dec"],date:"%d-%m-%Y",decimal:",",thousands:".",year:"%Y",month:"%b %Y",dayMonth:"%-d %b",dayMonthYear:"%-d %b %Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"pl",dictionary:{},format:{days:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],shortDays:["Nie","Pn","Wt","Śr","Czw","Pt","So"],months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],shortMonths:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"pt-BR",dictionary:{Autoscale:"Escala automática","Box Select":"Seleção retangular","Click to enter Colorscale title":"Clique para editar o título da escala de cor","Click to enter Component A title":"Clique para editar o título do Componente A","Click to enter Component B title":"Clique para editar o título do Componente B","Click to enter Component C title":"Clique para editar o título do Componente C","Click to enter Plot title":"Clique para editar o título do Gráfico","Click to enter X axis title":"Clique para editar o título do eixo X","Click to enter Y axis title":"Clique para editar o título do eixo Y","Click to enter radial axis title":"Clique para editar o título do eixo radial","Compare data on hover":"Comparar dados ao pairar","Double-click on legend to isolate one trace":"Duplo clique na legenda para isolar uma série","Double-click to zoom back out":"Duplo clique para reverter zoom","Download plot as a png":"Fazer download do gráfico como imagem (png)","Download plot":"Fazer download do gráfico","Edit in Chart Studio":"Editar no Chart Studio","IE only supports svg. Changing format to svg.":"IE suporta apenas svg. Alterando formato para svg","Lasso Select":"Seleção de laço","Orbital rotation":"Rotação orbital",Pan:"Mover","Produced with Plotly.js":"Criado com o Plotly.js",Reset:"Restaurar","Reset axes":"Restaurar eixos","Reset camera to default":"Restaurar câmera para padrão","Reset camera to last save":"Restaurar câmera para última salva","Reset view":"Restaurar visão","Reset views":"Restaurar visões","Show closest data on hover":"Exibir dado mais próximo ao pairar","Snapshot succeeded":"Captura instantânea completa","Sorry, there was a problem downloading your snapshot!":"Desculpe, houve um problema no download de sua captura instantânea!","Taking snapshot - this may take a few seconds":"Efetuando captura instantânea - isso pode levar alguns instantes","Toggle Spike Lines":"Habilitar/desabilitar triangulação de linhas","Toggle show closest data on hover":"Habilitar/desabilitar exibição de dado mais próximo ao pairar","Turntable rotation":"Rotação de mesa",Zoom:"Zoom","Zoom in":"Ampliar zoom","Zoom out":"Reduzir zoom",close:"fechamento",high:"alta","incoming flow count":"contagem de fluxo de entrada",kde:"kde",lat:"latitude",lon:"longitude",low:"baixa","lower fence":"limite inferior",max:"máximo","mean ± σ":"média ± σ",mean:"média",median:"mediana",min:"mínimo","new text":"novo texto",open:"abertura","outgoing flow count":"contagem de fluxo de saída",q1:"q1",q3:"q3",source:"origem",target:"destino",trace:"série","upper fence":"limite superior"},format:{days:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],date:"%d/%m/%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"pt-PT",dictionary:{Autoscale:"Escala automática","Box Select":"Seleção retangular","Click to enter Colorscale title":"Clique para editar o título da escala de cor","Click to enter Component A title":"Clique para editar o título do Componente A","Click to enter Component B title":"Clique para editar o título do Componente B","Click to enter Component C title":"Clique para editar o título do Componente C","Click to enter Plot title":"Clique para editar o título do Gráfico","Click to enter X axis title":"Clique para editar o título do eixo X","Click to enter Y axis title":"Clique para editar o título do eixo Y","Click to enter radial axis title":"Clique para editar o título do eixo radial","Compare data on hover":"Comparar dados ao pairar","Double-click on legend to isolate one trace":"Duplo clique na legenda para isolar uma série","Double-click to zoom back out":"Duplo clique para reverter ampliação","Download plot as a png":"Baixar gráfico como imagem (png)","Download plot":"Baixar gráfico","Edit in Chart Studio":"Editar no Chart Studio","IE only supports svg. Changing format to svg.":"IE suporta apenas svg. Alterando formato para svg","Lasso Select":"Seleção de laço","Orbital rotation":"Rotação orbital",Pan:"Mover","Produced with Plotly.js":"Criado com Plotly.js",Reset:"Restaurar","Reset axes":"Restaurar eixos","Reset camera to default":"Restaurar câmera para padrão","Reset camera to last save":"Restaurar câmera para última gravação","Reset view":"Restaurar vista","Reset views":"Restaurar vistas","Show closest data on hover":"Exibir dado mais próximo ao pairar","Snapshot succeeded":"Captura instantânea com sucesso","Sorry, there was a problem downloading your snapshot!":"Desculpe, houve um problema no download de sua captura instantânea!","Taking snapshot - this may take a few seconds":"Efetuando captura instantânea - isso pode demorar alguns segundos","Toggle Spike Lines":"Habilitar/desabilitar triangulação de linhas","Toggle show closest data on hover":"Habilitar/desabilitar exibição de dado mais próximo ao pairar","Turntable rotation":"Rodar",Zoom:"Ampliar","Zoom in":"Aumentar Ampliação","Zoom out":"Reduzir Ampliação",close:"fechar",high:"alta","incoming flow count":"contagem de fluxo de entrada",kde:"kde",lat:"latitude",lon:"longitude",low:"baixa","lower fence":"limite inferior",max:"máximo","mean ± σ":"média ± σ",mean:"média",median:"mediana",min:"mínimo","new text":"novo texto",open:"abrir","outgoing flow count":"contagem de fluxo de saída",q1:"q1",q3:"q3",source:"origem",target:"destino",trace:"série","upper fence":"limite superior"},format:{days:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],date:"%d/%m/%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"ru",dictionary:{Autoscale:"Автоматическое шкалирование","Box Select":"Выделение прямоугольной области","Click to enter Colorscale title":"Нажмите для ввода названия цветовой шкалы","Click to enter Component A title":"Нажмите для ввода названия компонента A","Click to enter Component B title":"Нажмите для ввода названия компонента B","Click to enter Component C title":"Нажмите для ввода названия компонента C","Click to enter Plot title":"Нажмите для ввода названия графика","Click to enter X axis title":"Нажмите для ввода названия оси X","Click to enter Y axis title":"Нажмите для ввода названия оси Y","Click to enter radial axis title":"Нажмите для ввода названия полярной оси","Compare data on hover":"При наведении показывать все данные","Double-click on legend to isolate one trace":"Дважды щёлкните по легенде для выделения отдельных данных","Double-click to zoom back out":"Для сброса масштаба к значению по умолчанию дважды щёлкните мышью","Download plot":"Сохранить график","Download plot as a png":"Сохранить в формате PNG","Edit in Chart Studio":"Редактировать в Chart Studio","IE only supports svg. Changing format to svg.":"IE поддерживает только svg. Формат сменяется на svg.","Lasso Select":"Лассо","Orbital rotation":"Орбитальное движение",Pan:"Сдвиг","Produced with Plotly.js":"Создано с помощью Plotly.js",Reset:"Сбросить к значениям по умолчанию","Reset axes":"Сбросить отображение осей к значениям по умолчанию","Reset camera to default":"Сбросить параметры камеры к значениям по умолчанию","Reset camera to last save":"Сбросить камеру к последнему сохранённому состоянию","Reset view":"Сбросить отображение к значениям по умолчанию","Reset views":"Сбросить отображения к значениям по умолчанию","Show closest data on hover":"При наведении показывать ближайшие данные","Snapshot succeeded":"Снимок успешно создан","Sorry, there was a problem downloading your snapshot!":"К сожалению, возникла проблема при сохранении снимка","Taking snapshot - this may take a few seconds":"Делается снимок - это может занять несколько секунд","Toggle Spike Lines":"Включить/выключить отображение линий проекций точек","Toggle show closest data on hover":"Включить/выключить показ ближайших данных при наведении","Turntable rotation":"Вращение на поворотном столе",Zoom:"Зум","Zoom in":"Увеличить","Zoom out":"Уменьшить","close:":"Закрытие:","concentration:":"Концентрация:","high:":"Максимум:","incoming flow count:":"Количество входящих связей:","kde:":"Ядерная оценка плотности:","lat:":"Широта:","lon:":"Долгота:","low:":"Минимум:","lower fence:":"Нижняя граница:","max:":"Макс.:","mean ± σ:":"Среднее ± σ:","mean:":"Среднее:","median:":"Медиана:","min:":"Мин.:","new text":"Новый текст","open:":"Открытие:","outgoing flow count:":"Количество исходящих связей:","q1:":"q1:","q3:":"q3:","source:":"Источник:","target:":"Цель:",trace:"Ряд","upper fence:":"Верхняя граница:"},format:{days:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],shortDays:["вс","пн","вт","ср","чт","пт","сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],shortMonths:["Янв.","Февр.","Март","Апр.","Май","Июнь","Июль","Авг.","Сент.","Окт.","Ноя","Дек."],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"sv",dictionary:{Autoscale:"Autoskala","Box Select":"Välj rektangel","Click to enter Colorscale title":"Klicka för att ange titel på färgskala","Click to enter Component A title":"Klicka för att ange titel på komponent A","Click to enter Component B title":"Klicka för att ange titel på komponent B","Click to enter Component C title":"Klicka för att ange titel på komponent C","Click to enter Plot title":"Klicka för att ange titel på diagram","Click to enter X axis title":"Klicka för att ange titel på x-axel","Click to enter Y axis title":"Klicka för att ange titel på y-axel","Click to enter radial axis title":"Klicka för att ange titel på radiell axel","Compare data on hover":"Jämför data när muspekaren hålls över","Double-click on legend to isolate one trace":"Dubbelklicka på förklaringen för att visa endast en serie","Double-click to zoom back out":"Dubbelklicka för att zooma ut igen","Download plot":"Ladda ner diagram","Download plot as a png":"Ladda ner diagram som png","Edit in Chart Studio":"Editera i Chart Studio","IE only supports svg. Changing format to svg.":"IE stöder enbart svg. Byter format till svg.","Lasso Select":"Välj lasso","Orbital rotation":"Orbital rotation",Pan:"Panorera","Produced with Plotly.js":"Skapad med Plotly.js",Reset:"Återställ","Reset axes":"Återställ axlar","Reset camera to default":"Återställ kamera till standard","Reset camera to last save":"Återställ kamera till senast sparad","Reset view":"Återställ vy","Reset views":"Återställ vyer","Show closest data on hover":"Visa närmaste värde när muspekaren hålls över","Snapshot succeeded":"Bild skapad","Sorry, there was a problem downloading your snapshot!":"Tyvärr gick något fel vid nedladdning av bild","Taking snapshot - this may take a few seconds":"Skapar bild - detta kan ta några sekunder","Toggle Spike Lines":"Aktivera/Inaktivera topplinjer","Toggle show closest data on hover":"Aktivera/Inaktivera visa närmaste värde när muspekaren hålls över","Turntable rotation":"Platt rotation",Zoom:"Zooma","Zoom in":"Zooma in","Zoom out":"Zooma ut","close:":"stängning:","concentration:":"koncentration:","high:":"hög:","incoming flow count:":"inkommande flöde summering:","kde:":"kde:","lat:":"lat:","lon:":"lon:","low:":"låg:","lower fence:":"undre gräns:","max:":"max:","mean ± σ:":"medel ± σ:","mean:":"medel:","median:":"median:","min:":"min:","new text":"ny text","open:":"öppning:","outgoing flow count:":"utgående flöde summering:","q1:":"q1:","q3:":"q3:","source:":"källa:","target:":"mål:",trace:"serie","upper fence:":"övre gräns:"},format:{days:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],shortDays:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],shortMonths:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"tr",dictionary:{},format:{days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],shortDays:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],shortMonths:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"uk",dictionary:{Autoscale:"Автоматичне шкалювання","Box Select":"Виділення прямокутної області","Click to enter Colorscale title":"Натисніть для введення назви шкали кольору","Click to enter Component A title":"Натисніть для введення назви компоненту A","Click to enter Component B title":"Натисніть для введення назви компоненту B","Click to enter Component C title":"Натисніть для введення назви компоненту C","Click to enter Plot title":"Натисніть для введення назви графіка","Click to enter X axis title":"Натисніть для введення назви осі X","Click to enter Y axis title":"Натисніть для введення назви осі Y","Click to enter radial axis title":"Натисніть для введення назви полярної осі","Compare data on hover":"При наведенні показувати всі дані","Double-click on legend to isolate one trace":"Двічі клацніть по легенді для виділення окремих даних","Double-click to zoom back out":"Для встановлення масштабу значення за замовчуванням двічі клацніть мишею","Download plot":"Зберегти графік","Download plot as a png":"Зберегти у форматі PNG","Edit in Chart Studio":"Редагувати у Chart Studio","IE only supports svg. Changing format to svg.":"IE підтримує лише svg. Формат змінюється на svg.","Lasso Select":"Ласо","Orbital rotation":"Рух по орбіті",Pan:"Зсув","Produced with Plotly.js":"Створено за допомогою Plotly.js",Reset:"Встановити значення за замовчуванням","Reset axes":"Встановити осям значення за замовчуванням","Reset camera to default":"Встановити камері значення за замовчуванням","Reset camera to last save":"Повернути камеру в останній збережений стан","Reset view":"Встановити відображенню значення за замовчуванням","Reset views":"Встановити відображенням значення за замовчуванням","Show closest data on hover":"При наведенні показувати найближчі дані","Snapshot succeeded":"Знімок успішно створений","Sorry, there was a problem downloading your snapshot!":"На жаль, виникла проблема при збереженні знімку","Taking snapshot - this may take a few seconds":"Створюється знімок - це може зайняти кілька секунд","Toggle Spike Lines":"Увімкнути/вимкнути відображення ліній проекцій точок","Toggle show closest data on hover":"Увімкнути/вимкнути відображення найближчих даних при наведенні","Turntable rotation":"Обертання на поворотному столі",Zoom:"Зум","Zoom in":"Збільшити","Zoom out":"Зменшити","close:":"Закриття:","concentration:":"Концентрація:","high:":"Максимум:","incoming flow count:":"Кількість вхідних зв'язків:","kde:":"Ядрова оцінка густини розподілу:","lat:":"Широта:","lon:":"Довгота:","low:":"Мінімум:","lower fence:":"Нижня границя:","max:":"Макс.:","mean ± σ:":"Середнє ± σ:","mean:":"Середнє:","median:":"Медіана:","min:":"Мін.:","new text":"Новий текст","open:":"Відкриття:","outgoing flow count:":"Кількість вихідних зв'язків:","q1:":"q1:","q3:":"q3:","source:":"Джерело:","target:":"Ціль:",trace:"Ряд","upper fence:":"Верхня границя:"},format:{days:["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"],shortDays:["нд","пн","вт","ср","чт","пт","сб"],months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],shortMonths:["Січ.","Лют.","Берез.","Квіт.","Трав.","Черв.","Лип.","Серп.","Верес.","Жовт.","Листоп.","Груд."],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale);locale={moduleType:"locale",name:"zh-CN",dictionary:{Autoscale:"自动缩放","Box Select":"矩形框选","Click to enter Colorscale title":"点击输入色阶的标题","Click to enter Component A title":"点击输入组件A的标题","Click to enter Component B title":"点击输入组件B的标题","Click to enter Component C title":"点击输入组件C的标题","Click to enter Plot title":"点击输入图表的标题","Click to enter X axis title":"点击输入X轴的标题","Click to enter Y axis title":"点击输入Y轴的标题","Compare data on hover":"悬停时比较数据","Double-click on legend to isolate one trace":"双击图例来突显对应轨迹","Double-click to zoom back out":"双击返回缩小显示","Download plot as a png":"下载图表为PNG格式","Download plot":"下载图表","Edit in Chart Studio":"在Chart Studio中编辑","IE only supports svg. Changing format to svg.":"IE只支持SVG。转换格式为SVG。","Lasso Select":"套索选择","Orbital rotation":"轨道旋转",Pan:"平移","Produced with Plotly.js":"由Plotly.js生成",Reset:"重置","Reset axes":"重置轴","Reset camera to default":"重置镜头视角为默认状态","Reset camera to last save":"重置镜头视角为上次保存状态","Reset view":"重置视图","Reset views":"重置视图","Show closest data on hover":"悬停时显示最近的数据","Snapshot succeeded":"生成快照成功","Sorry, there was a problem downloading your snapshot!":"抱歉,下载快照出现问题!","Taking snapshot - this may take a few seconds":"正在生成快照 - 可能需要几秒钟",Zoom:"缩放","Zoom in":"放大","Zoom out":"缩小","close:":"关闭:",trace:"踪迹:","lat:":"纬度:","lon:":"经度:","q1:":"第一四分位数:","q3:":"第三四分位数:","source:":"源:","target:":"目标:","lower fence:":"内侧栏(lower fence):","upper fence:":"外侧栏(upper fence):","max:":"最大值:","mean ± σ:":"平均数 ± 标准差σ:","mean:":"平均数:","median:":"中位数:","min:":"最小值:","Turntable rotation":"旋转转盘:","Toggle Spike Lines":"切换显示数据点辅助线(Spike Lines)","open:":"打开:","high:":"高:","low:":"低:","Toggle show closest data on hover":"切换悬停时显示最近的数据点","incoming flow count:":"流入数量:","outgoing flow count:":"流出数量:","kde:":"kde:","Click to enter radial axis title":"点击输入径向轴标题","new text":"新建文本"},format:{days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["周日","周一","周二","周三","周四","周五","周六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],shortMonths:["一","二","三","四","五","六","七","八","九","十","十一","十二"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); |