All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.b999a7e7-34.9472d5d0a285679cf68d.js Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["b999a7e7-34"],{"+8FAZV0x":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("/oRevOrA");e.exports=function(e){e.each((function(e){var t=e[0].trace,a=t.error_y||{},i=t.error_x||{},o=r.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(n.stroke,a.color),i.copy_ystyle&&(i=a),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(n.stroke,i.color)}))}},"+ELfTWmT":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("yAcToaBS"),a=t("VDpxHpeA"),i=t("R5um7Wku"),o=t("/oRevOrA"),l=t("n/pWmEhD"),s=t("0Ft3SWJB"),c=t("7k8rh0sJ"),d=t("nfwe4Djo"),u=t("kca9bvt+").LINE_SPACING,f=t("Tdks4qa7").DESELECTDIM,h=t("FAQM5QER"),p=t("swYnW0Uh"),g=t("ErV1Ibqz").appendArrayPointValue,m=e.exports={};m.font=function(e,t,r,n){s.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(o.fill,n)},m.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)},m.setSize=function(e,t,r){e.attr("width",t).attr("height",r)},m.setRect=function(e,t,r,n,a){e.call(m.setPosition,t,r).call(m.setSize,n,a)},m.translatePoint=function(e,t,r,a){var i=r.c2p(e.x),o=a.c2p(e.y);return!!(n(i)&&n(o)&&t.node())&&("text"===t.node().nodeName?t.attr("x",i).attr("y",o):t.attr("transform","translate("+i+","+o+")"),!0)},m.translatePoints=function(e,t,n){e.each((function(e){var a=r.select(this);m.translatePoint(e,a,t,n)}))},m.hideOutsideRangePoint=function(e,t,r,n,a,i){t.attr("display",r.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")},m.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var n=t.xaxis,a=t.yaxis;e.each((function(t){var o=t[0].trace,l=o.xcalendar,s=o.ycalendar,c=i.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each((function(e){m.hideOutsideRangePoint(e,r.select(this),n,a,l,s)}))}))}},m.crispRound=function(e,t,r){return t&&n(t)?e._context.staticPlot?t:t<1?1:Math.round(t):r||0},m.singleLineStyle=function(e,t,r,n,a){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,s=a||i.dash||"";o.stroke(t,n||i.color),m.dashLine(t,s,l)},m.lineGroupStyle=function(e,t,n,a){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,s=a||i.dash||"";r.select(this).call(o.stroke,n||i.color).call(m.dashLine,s,l)}))},m.dashLine=function(e,t,r){r=+r||0,t=m.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})},m.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},m.singleFillStyle=function(e){var t=(((r.select(e.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;t&&e.call(o.fill,t)},m.fillGroupStyle=function(e){e.style("stroke-width",0).each((function(e){var t=r.select(this);e[0].trace&&t.call(o.fill,e[0].trace.fillcolor)}))};var y=t("Oq3NKwwJ");m.symbolNames=[],m.symbolFuncs=[],m.symbolNeedLines={},m.symbolNoDot={},m.symbolNoFill={},m.symbolList=[],Object.keys(y).forEach((function(e){var t=y[e],r=t.n;m.symbolList.push(r,e,r+100,e+"-open"),m.symbolNames[r]=e,m.symbolFuncs[r]=t.f,t.needLine&&(m.symbolNeedLines[r]=!0),t.noDot?m.symbolNoDot[r]=!0:m.symbolList.push(r+200,e+"-dot",r+300,e+"-open-dot"),t.noFill&&(m.symbolNoFill[r]=!0)}));var v=m.symbolNames.length;function x(e,t){var r=e%100;return m.symbolFuncs[r](t)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}m.symbolNumber=function(e){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=m.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=v||e>=400?0:Math.floor(Math.max(e,0))};var b={x1:1,x2:0,y1:0,y2:0},_={x1:0,x2:0,y1:1,y2:0},w=r.format("~.1f"),k={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:b},horizontalreversed:{node:"linearGradient",attrs:b,reversed:!0},vertical:{node:"linearGradient",attrs:_},verticalreversed:{node:"linearGradient",attrs:_,reversed:!0}};m.gradient=function(e,t,n,i,l,c){for(var d=l.length,u=k[i],f=new Array(d),h=0;h"+y(e);p._gradientUrlQueryParts[v]=1},m.initGradients=function(e){var t=e._fullLayout;s.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},m.pointStyle=function(e,t,n){if(e.size()){var a=m.makePointStyleFns(t);e.each((function(e){m.singlePointStyle(e,r.select(this),t,a,n)}))}},m.singlePointStyle=function(e,t,r,n,a){var i=r.marker,l=i.line;if(t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):void 0===e.mo?i.opacity:e.mo),n.ms2mrc){var c;c="various"===e.ms||"various"===i.size?3:n.ms2mrc(e.ms),e.mrc=c,n.selectedSizeFn&&(c=e.mrc=n.selectedSizeFn(e));var d=m.symbolNumber(e.mx||i.symbol)||0;e.om=d%200>=100,t.attr("d",x(d,c))}var u,f,h,p=!1;if(e.so)h=l.outlierwidth,f=l.outliercolor,u=i.outliercolor;else{var g=(l||{}).width;h=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,f="mlc"in e?e.mlcc=n.lineScale(e.mlc):s.isArrayOrTypedArray(l.color)?o.defaultLine:l.color,s.isArrayOrTypedArray(i.color)&&(u=o.defaultLine,p=!0),u="mc"in e?e.mcc=n.markerScale(e.mc):i.color||"rgba(0,0,0,0)",n.selectedColorFn&&(u=n.selectedColorFn(e))}if(e.om)t.call(o.stroke,u).style({"stroke-width":(h||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:h)+"px");var y=i.gradient,v=e.mgt;if(v?p=!0:v=y&&y.type,Array.isArray(v)&&(v=v[0],k[v]||(v=0)),v&&"none"!==v){var b=e.mgc;b?p=!0:b=y.color;var _=r.uid;p&&(_+="-"+e.i),m.gradient(t,a,_,v,[[0,b],[1,u]],"fill")}else o.fill(t,u);h&&o.stroke(t,f)}},m.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=m.tryColorscale(r,""),t.lineScale=m.tryColorscale(r,"line"),i.traceIs(e,"symbols")&&(t.ms2mrc=h.isBubble(e)?p(e):function(){return(r.size||6)/2}),e.selectedpoints&&s.extendFlat(t,m.makeSelectedPointStyleFns(e)),t},m.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},a=e.marker||{},o=r.marker||{},l=n.marker||{},c=a.opacity,d=o.opacity,u=l.opacity,h=void 0!==d,p=void 0!==u;(s.isArrayOrTypedArray(c)||h||p)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?a.opacity:e.mo;return e.selected?h?d:t:p?u:f*t});var g=a.color,m=o.color,y=l.color;(m||y)&&(t.selectedColorFn=function(e){var t=e.mcc||g;return e.selected?m||t:y||t});var v=a.size,x=o.size,b=l.size,_=void 0!==x,w=void 0!==b;return i.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||v/2;return e.selected?_?x/2:t:w?b/2:t}),t},m.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=r.textfont||{},l=n.textfont||{},s=a.color,c=i.color,d=l.color;return t.selectedTextColorFn=function(e){var t=e.tc||s;return e.selected?c||t:d||(c?t:o.addOpacity(t,f))},t},m.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=m.makeSelectedPointStyleFns(t),a=t.marker||{},i=[];n.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",n.selectedOpacityFn(t))})),n.selectedColorFn&&i.push((function(e,t){o.fill(e,n.selectedColorFn(t))})),n.selectedSizeFn&&i.push((function(e,t){var r=t.mx||a.symbol||0,i=n.selectedSizeFn(t);e.attr("d",x(m.symbolNumber(r),i)),t.mrc2=i})),i.length&&e.each((function(e){for(var t=r.select(this),n=0;n0?r:0}m.textPointStyle=function(e,t,n){if(e.size()){var a;if(t.selectedpoints){var i=m.makeSelectedTextStyleFns(t);a=i.selectedTextColorFn}var o=t.texttemplate,l=n._fullLayout;e.each((function(e){var i=r.select(this),d=o?s.extractOption(e,t,"txt","texttemplate"):s.extractOption(e,t,"tx","text");if(d||0===d){if(o){var u=t._module.formatLabels?t._module.formatLabels(e,t,l):{},f={};g(f,t,e.i);var h=t._meta||{};d=s.texttemplateString(d,u,l._d3locale,f,e,h)}var p=e.tp||t.textposition,y=M(e,t),v=a?a(e):e.tc||t.textfont.color;i.call(m.font,e.tf||t.textfont.family,y,v).text(d).call(c.convertToTspans,n).call(A,p,y,e.mrc)}else i.remove()}))}},m.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=m.makeSelectedTextStyleFns(t);e.each((function(e){var a=r.select(this),i=n.selectedTextColorFn(e),l=e.tp||t.textposition,s=M(e,t);o.fill(a,i),A(a,l,s,e.mrc2||e.mrc)}))}};function S(e,t,n,a){var i=e[0]-t[0],o=e[1]-t[1],l=n[0]-t[0],s=n[1]-t[1],c=Math.pow(i*i+o*o,.25),d=Math.pow(l*l+s*s,.25),u=(d*d*i-c*c*l)*a,f=(d*d*o-c*c*s)*a,h=3*d*(c+d),p=3*c*(c+d);return[[r.round(t[0]+(h&&u/h),2),r.round(t[1]+(h&&f/h),2)],[r.round(t[0]-(p&&u/p),2),r.round(t[1]-(p&&f/p),2)]]}m.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r,n="M"+e[0],a=[];for(r=1;r=1e4&&(m.savedBBoxes={},C=0),n&&(m.savedBBoxes[n]=y),C++,s.extendFlat({},y)},m.setClipUrl=function(e,t,r){e.attr("clip-path",P(t,r))},m.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}},m.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+=" translate("+t+", "+r+")").trim(),e[a]("transform",i),i},m.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}},m.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 D=/\s*sc.*/;m.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(D,"");e=(e+=n).trim(),this.setAttribute("transform",e)}))}};var I=/translate\([^)]*\)\s*$/;m.setTextPointsScale=function(e,t,n){e&&e.each((function(){var e,a=r.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(I);e=1===t&&1===n?[]:["translate("+o+","+l+")","scale("+t+","+n+")","translate("+-o+","+-l+")"],s&&e.push(s),a.attr("transform",e.join(" "))}}))}},"+Hk6JDWQ":function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("/oRevOrA"),a=t("ErV1Ibqz").isUnifiedHover,i=t("4FumUcA6"),o=t("A5P9b9BX"),l=t("JEbHibKP"),s=t("zSF5pjBO"),c=t("xxu9688R"),d=t("vg6lu/AO"),u=t("6hRdzyd8").handleConstraintDefaults,f=t("kAv/b5aV"),h=t("nXHY852p"),p=h.id2name,g=h.name2id,m=t("Vq8+Ip3e").AX_ID_PATTERN,y=t("R5um7Wku"),v=y.traceIs,x=y.getComponentMethod;function b(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}e.exports=function(e,t,h){var y,_,w={},k={},T={},A={},M={},S={},L={},O={},C={},z={};for(y=0;y=0))return e;if(3===o)a[o]>1&&(a[o]=1);else if(a[o]>=1)return e}var l=Math.round(255*a[0])+", "+Math.round(255*a[1])+", "+Math.round(255*a[2]);return i?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}a.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},a.rgb=function(e){return a.tinyRGB(r(e))},a.opacity=function(e){return e?r(e).getAlpha():0},a.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},a.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var a=r(t||l).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-n.a)+n.r*n.a,g:i.g*(1-n.a)+n.g*n.a,b:i.b*(1-n.a)+n.b*n.a};return r(o).toRgbString()},a.contrast=function(e,t,n){var i=r(e);return 1!==i.getAlpha()&&(i=r(a.combine(e,l))),(i.isDark()?t?i.lighten(t):l:n?i.darken(n):o).toString()},a.stroke=function(e,t){var n=r(t);e.style({stroke:a.tinyRGB(n),"stroke-opacity":n.getAlpha()})},a.fill=function(e,t){var n=r(t);e.style({fill:a.tinyRGB(n),"fill-opacity":n.getAlpha()})},a.clean=function(e){if(e&&"object"==typeof e){var t,r,n,i,o=Object.keys(e);for(t=0;t0?[0]:[]);if(l.enter().append("g").classed(d.containerClassName,!0).style("cursor","pointer"),l.exit().each((function(){r.select(this).selectAll("g."+d.headerGroupClassName).each(i)})).remove(),0!==a.length){var s=l.selectAll("g."+d.headerGroupClassName).data(a,f);s.enter().append("g").classed(d.headerGroupClassName,!0);for(var c=o.ensureSingle(l,"g",d.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),y=0;yi?o:n(e)?Number(e):o:o},l.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(n(e)&&e>=0&&e%1==0)},l.noop=t("lHLBDM7v"),l.identity=t("jKiUIMfn"),l.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))},l.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},l.simpleMap=function(e,t,r,n){for(var a=e.length,i=new Array(a),o=0;o=Math.pow(2,r)?a>10?(l.warn("randstr failed uniqueness"),c):e(t,r,n,(a||0)+1):c},l.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},l.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),d=new Array(o);for(r=0;r=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=o&&(a=l-1-a),i+=e[a]*c[n];d[r]=i}return d},l.syncOrAsync=function(e,t,r){var n;function a(){return l.syncOrAsync(e,t,r)}for(;e.length;)if((n=(0,e.splice(0,1)[0])(t))&&n.then)return n.then(a).then(void 0,l.promiseError);return r&&r(t)},l.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},l.noneOrAll=function(e,t,r){if(e){var n,a=!1,i=!0;for(n=0;n0?t:0}))},l.fillArray=function(e,t,r,n){if(n=n||l.identity,l.isArrayOrTypedArray(e))for(var a=0;a1?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},l.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var L=/^\w*$/;l.templateString=function(e,t){var r={};return e.replace(l.TEMPLATE_STRING_REGEX,(function(e,n){var a;return L.test(n)?a=t[n]:(r[n]=r[n]||l.nestedProperty(t,n).get,a=r[n]()),l.isValidTextValue(a)?a:""}))};var O={max:10,count:0,name:"hovertemplate"};l.hovertemplateString=function(){return P.apply(O,arguments)};var C={max:10,count:0,name:"texttemplate"};l.texttemplateString=function(){return P.apply(C,arguments)};var z=/^[:|\|]/;function P(e,t,n){var a=this,i=arguments;t||(t={});var o={};return e.replace(l.TEMPLATE_STRING_REGEX,(function(e,s,c){var d,u,f,h;for(f=3;f=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 D=2e9;l.seedPseudoRandom=function(){D=2e9},l.pseudoRandom=function(){var e=D;return D=(69069*D+1)%4294967296,Math.abs(D-e)<429496729?l.pseudoRandom():D/4294967296},l.fillText=function(e,t,r){var n=Array.isArray(r)?function(e){r.push(e)}:function(e){r.text=e},a=l.extractOption(e,t,"htx","hovertext");if(l.isValidTextValue(a))return n(a);var i=l.extractOption(e,t,"tx","text");return l.isValidTextValue(i)?n(i):void 0},l.isValidTextValue=function(e){return e||0===e},l.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;n1&&(c=1):c=0,"translate("+(a-c*(r+o))+","+(i-c*(n+l))+")"+(c<1?"scale("+c+")":"")+(s?"rotate("+s+(t?"":" "+r+" "+n)+")":"")},l.ensureUniformFontSize=function(e,t){var r=l.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r}},"0JON8+ab":function(e,exports,t){"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}}},"0QKf0MkS":function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("R5um7Wku");e.exports=function(e,t,a,i){var o,l=i("x"),s=i("y");if(n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],a),l){var c=r.minRowLength(l);s?o=Math.min(c,r.minRowLength(s)):(o=c,i("y0"),i("dy"))}else{if(!s)return 0;o=r.minRowLength(s),i("x0"),i("dx")}return t._length=o,o}},"0RDPWYkZ":function(e,exports,t){"use strict";e.exports=function(){"undefined"!=typeof MathJax&&("local"!==(window.PlotlyConfig||{}).MathJaxConfig&&(MathJax.Hub.Config({messageStyle:"none",skipStartupTypeset:!0,displayAlign:"left",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}}),MathJax.Hub.Configured()))}},"0cs6LEsq":function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("OPxZozoA").isArrayOrTypedArray;exports.aggNums=function(e,t,a,i){var o,l;if((!i||i>a.length)&&(i=a.length),r(t)||(t=!1),n(a[0])){for(l=new Array(i),o=0;oe.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},"0ljOLJdO":function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("/1xV6pOg");e.exports=function(e,t,a){var i=document.createElement("a"),o="download"in i;return new Promise((function(l,s){var c,d;if(r.isIE9orBelow()&&s(new Error("IE < 10 unsupported")),r.isSafari()){var u="svg"===a?",":";base64,";return n.octetStream(u+encodeURIComponent(e)),l(t)}return r.isIE()?(c=n.createBlob(e,"svg"),window.navigator.msSaveBlob(c,t),c=null,l(t)):o?(c=n.createBlob(e,a),d=n.createObjectURL(c),i.href=d,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),n.revokeObjectURL(d),c=null,l(t)):void s(new Error("download error"))}))}},"2DFxFphq":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("R5um7Wku"),a=t("8MlMO9wt"),i=t("0Ft3SWJB"),o=t("4JfnfFRI"),l=t("/oRevOrA"),s=t("+ELfTWmT"),c=t("9fFWTih4"),d=t("7k8rh0sJ"),u=t("LnvsDkyo"),f=t("WFvnZ06c"),h=t("A5P9b9BX").arrayEditor,p=t("pSCZUchz");function g(e,t){var r=e._fullLayout.annotations[t]||{},n=o.getFromId(e,r.xref),a=o.getFromId(e,r.yref);n&&n.setScale(),a&&a.setScale(),m(e,r,t,!1,n,a)}function m(e,t,a,o,g,m){var y,v,x=e._fullLayout,b=e._fullLayout._size,_=e._context.edits;o?(y="annotation-"+o,v=o+".annotations"):(y="annotation",v="annotations");var w=h(e.layout,v,t),k=w.modifyBase,T=w.modifyItem,A=w.getUpdateObj;x._infolayer.selectAll("."+y+'[data-index="'+a+'"]').remove();var M="clip"+x._uid+"_ann"+a;if(t._input&&!1!==t.visible){var S={x:{},y:{}},L=+t.textangle||0,O=x._infolayer.append("g").classed(y,!0).attr("data-index",String(a)).style("opacity",t.opacity),C=O.append("g").classed("annotation-text-g",!0),z=_[t.showarrow?"annotationTail":"annotationPosition"],P=t.captureevents||_.annotationText||z,D=C.append("g").style("pointer-events",P?"all":null).call(u,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",V(r.event))}));t.hovertext&&D.on("mouseover",(function(){var r=t.hoverlabel,n=r.font,a=this.getBoundingClientRect(),i=e.getBoundingClientRect();c.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:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:e})})).on("mouseout",(function(){c.loneUnhover(x._hoverlayer.node())}));var I=t.borderwidth,F=t.borderpad,j=I+F,R=D.append("rect").attr("class","bg").style("stroke-width",I+"px").call(l.stroke,t.bordercolor).call(l.fill,t.bgcolor),E=t.width||t.height,B=x._topclips.selectAll("#"+M).data(E?[0]:[]);B.enter().append("clipPath").classed("annclip",!0).attr("id",M).append("rect"),B.exit().remove();var N=t.font,H=x._meta?i.templateString(t.text,x._meta):t.text,W=D.append("text").classed("annotation-text",!0).text(H);_.annotationText?W.call(d.makeEditable,{delegate:D,gd:e}).call(G).on("edit",(function(r){t.text=r,this.call(G),T("text",r),g&&g.autorange&&k(g._name+".autorange",!0),m&&m.autorange&&k(m._name+".autorange",!0),n.call("_guiRelayout",e,A())})):W.call(G)}else r.selectAll("#"+M).remove();function V(e){var r={index:a,annotation:t._input,fullAnnotation:t,event:e};return o&&(r.subplotId=o),r}function G(r){return r.call(s.font,N).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),d.convertToTspans(r,e,U),r}function U(){var r=W.selectAll("a");1===r.size()&&r.text()===W.text()&&D.insert("a",":first-child").attr({"xlink:xlink:href":r.attr("xlink:href"),"xlink:xlink:show":r.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(R.node());var a=D.select(".annotation-text-math-group"),c=!a.empty(),h=s.bBox((c?a:W).node()),y=h.width,v=h.height,w=t.width||y,P=t.height||v,F=Math.round(w+2*j),N=Math.round(P+2*j);function H(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 G=!1,U=["x","y"],q=0;q1)&&(te===ee?((de=re.r2fraction(t["a"+K]))<0||de>1)&&(G=!0):G=!0),J=re._offset+re.r2p(t[K]),Y=.5}else"x"===K?(X=t[K],J=b.l+b.w*X):(X=1-t[K],J=b.t+b.h*X),Y=t.showarrow?.5:X;if(t.showarrow){ce.head=J;var ue=t["a"+K];Q=ae*H(.5,t.xanchor)-ie*H(.5,t.yanchor),te===ee?(ce.tail=re._offset+re.r2p(ue),Z=Q):(ce.tail=J+ue,Z=Q+ue),ce.text=ce.tail+Q;var fe=x["x"===K?"width":"height"];if("paper"===ee&&(ce.head=i.constrain(ce.head,1,fe-1)),"pixel"===te){var he=-Math.max(ce.tail-3,ce.text),pe=Math.min(ce.tail+3,ce.text)-fe;he>0?(ce.tail+=he,ce.text+=he):pe>0&&(ce.tail-=pe,ce.text-=pe)}ce.tail+=se,ce.head+=se}else Z=Q=oe*H(Y,le),ce.text=J+Q;ce.text+=se,Q+=se,Z+=se,t["_"+K+"padplus"]=oe/2+Z,t["_"+K+"padminus"]=oe/2-Z,t["_"+K+"size"]=oe,t["_"+K+"shift"]=Q}if(G)D.remove();else{var ge=0,me=0;if("left"!==t.align&&(ge=(w-y)*("center"===t.align?.5:1)),"top"!==t.valign&&(me=(P-v)*("middle"===t.valign?.5:1)),c)a.select("svg").attr({x:j+ge-1,y:j+me}).call(s.setClipUrl,E?M:null,e);else{var ye=j+me-h.top,ve=j+ge-h.left;W.call(d.positionText,ve,ye).call(s.setClipUrl,E?M:null,e)}B.select("rect").call(s.setRect,j,j,w,P),R.call(s.setRect,I/2,I/2,F-I,N-I),D.call(s.setTranslate,Math.round(S.x.text-F/2),Math.round(S.y.text-N/2)),C.attr({transform:"rotate("+L+","+S.x.text+","+S.y.text+")"});var xe,be=function(r,a){O.selectAll(".annotation-arrow-g").remove();var c=S.x.head,d=S.y.head,u=S.x.tail+r,h=S.y.tail+a,y=S.x.text+r,v=S.y.text+a,x=i.rotationXYMatrix(L,y,v),w=i.apply2DTransform(x),M=i.apply2DTransform2(x),z=+R.attr("width"),P=+R.attr("height"),I=y-.5*z,F=I+z,j=v-.5*P,E=j+P,B=[[I,j,I,E],[I,E,F,E],[F,E,F,j],[F,j,I,j]].map(M);if(!B.reduce((function(e,t){return e^!!i.segmentsIntersect(c,d,c+1e6,d+1e6,t[0],t[1],t[2],t[3])}),!1)){B.forEach((function(e){var t=i.segmentsIntersect(u,h,c,d,e[0],e[1],e[2],e[3]);t&&(u=t.x,h=t.y)}));var N=t.arrowwidth,H=t.arrowcolor,W=t.arrowside,V=O.append("g").style({opacity:l.opacity(H)}).classed("annotation-arrow-g",!0),G=V.append("path").attr("d","M"+u+","+h+"L"+c+","+d).style("stroke-width",N+"px").call(l.stroke,l.rgb(H));if(p(G,W,t),_.annotationPosition&&G.node().parentNode&&!o){var U=c,q=d;if(t.standoff){var J=Math.sqrt(Math.pow(c-u,2)+Math.pow(d-h,2));U+=t.standoff*(u-c)/J,q+=t.standoff*(h-d)/J}var Z,X,Y=V.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(u-U)+","+(h-q),transform:"translate("+U+","+q+")"}).style("stroke-width",N+6+"px").call(l.stroke,"rgba(0,0,0,0)").call(l.fill,"rgba(0,0,0,0)");f.init({element:Y.node(),gd:e,prepFn:function(){var e=s.getTranslate(D);Z=e.x,X=e.y,g&&g.autorange&&k(g._name+".autorange",!0),m&&m.autorange&&k(m._name+".autorange",!0)},moveFn:function(e,r){var n=w(Z,X),a=n[0]+e,i=n[1]+r;D.call(s.setTranslate,a,i),T("x",g?g.p2r(g.r2p(t.x)+e):t.x+e/b.w),T("y",m?m.p2r(m.r2p(t.y)+r):t.y-r/b.h),t.axref===t.xref&&T("ax",g.p2r(g.r2p(t.ax)+e)),t.ayref===t.yref&&T("ay",m.p2r(m.r2p(t.ay)+r)),V.attr("transform","translate("+e+","+r+")"),C.attr({transform:"rotate("+L+","+a+","+i+")"})},doneFn:function(){n.call("_guiRelayout",e,A());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&be(0,0),z)f.init({element:D.node(),gd:e,prepFn:function(){xe=C.attr("transform")},moveFn:function(e,r){var n="pointer";if(t.showarrow)t.axref===t.xref?T("ax",g.p2r(g.r2p(t.ax)+e)):T("ax",t.ax+e),t.ayref===t.yref?T("ay",m.p2r(m.r2p(t.ay)+r)):T("ay",t.ay+r),be(e,r);else{if(o)return;var a,i;if(g)a=g.p2r(g.r2p(t.x)+e);else{var l=t._xsize/b.w,s=t.x+(t._xshift-t.xshift)/b.w-l/2;a=f.align(s+e/b.w,l,0,1,t.xanchor)}if(m)i=m.p2r(m.r2p(t.y)+r);else{var c=t._ysize/b.h,d=t.y-(t._yshift+t.yshift)/b.h-c/2;i=f.align(d-r/b.h,c,0,1,t.yanchor)}T("x",a),T("y",i),g&&m||(n=f.getCursor(g?.5:a,m?.5:i,t.xanchor,t.yanchor))}C.attr({transform:"translate("+e+","+r+")"+xe}),u(D,n)},clickFn:function(r,n){t.captureevents&&e.emit("plotly_clickannotation",V(n))},doneFn:function(){u(D),n.call("_guiRelayout",e,A());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=r/2)return e;for(var n=r-(e=e||"").length;n>0;n--)e+=" ";return e}function k(e,t){var a,i=t._context.doubleClickDelay,o=1,l=n.ensureSingle(e,"rect","legendtoggle",(function(e){e.style("cursor","pointer").attr("pointer-events","all").call(c.fill,"rgba(0,0,0,0)")}));l.on("mousedown",(function(){(a=(new Date).getTime())-t._legendMouseDownTimei&&(o=Math.max(o-1,1)),b(t,n,e,o,r.event)}}))}function T(e,t,r,n){n._main||e.attr("data-notex",!0),d.convertToTspans(e,r,(function(){!function(e,t,r){var n=e.data()[0][0];if(r._main&&n&&!n.trace.showlegend)return void e.remove();var a=e.select("g[class*=math-group]"),i=a.node();r||(r=t._fullLayout.legend);var o,l,c=r.borderwidth,u=(n?r:r.title).font.size*p;if(i){var h=s.bBox(i);o=h.height,l=h.width,n?s.setTranslate(a,0,.25*o):s.setTranslate(a,c,.75*o+c)}else{var g=e.select(n?".legendtext":".legendtitletext"),m=d.lineCount(g),y=g.node();o=u*m,l=y?s.bBox(y).width:0;var v=u*((m-1)/2-.3);n?d.positionText(g,f.textGap,-v):d.positionText(g,f.titlePad+c,u+c)}n?(n.lineHeight=u,n.height=Math.max(o,16)+3,n.width=l):(r._titleWidth=l,r._titleHeight=o)}(t,r,n)}))}function A(e){return n.isRightAnchor(e)?"right":n.isCenterAnchor(e)?"center":"left"}function M(e){return n.isBottomAnchor(e)?"bottom":n.isMiddleAnchor(e)?"middle":"top"}e.exports=function(e,t){var o,d=e._fullLayout,u="legend"+d._uid;if(t?(o=t.layer,u+="-hover"):((t=d.legend||{})._main=!0,o=d._infolayer),o){var h;if(e._legendMouseDownTime||(e._legendMouseDownTime=0),t._main){if(!e.calcdata)return;h=d.showlegend&&y(e.calcdata,t)}else{if(!t.entries)return;h=y(t.entries,t)}var p=d.hiddenlabels||[];if(t._main&&(!d.showlegend||!h.length))return o.selectAll(".legend").remove(),d._topdefs.select("#"+u).remove(),a.autoMargin(e,"legend");var w=n.ensureSingle(o,"g","legend",(function(e){t._main&&e.attr("pointer-events","all")})),S=n.ensureSingleById(d._topdefs,"clipPath",u,(function(e){e.append("rect")})),L=n.ensureSingle(w,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));L.call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var O=n.ensureSingle(w,"g","scrollbox"),C=t.title;if(t._titleWidth=0,t._titleHeight=0,C.text){var z=n.ensureSingle(O,"text","legendtitletext");z.attr("text-anchor","start").classed("user-select-none",!0).call(s.font,C.font).text(C.text),T(z,O,e,t)}var P=n.ensureSingle(w,"rect","scrollbar",(function(e){e.attr(f.scrollBarEnterAttrs).call(c.fill,f.scrollBarColor)})),D=O.selectAll("g.groups").data(h);D.enter().append("g").attr("class","groups"),D.exit().remove();var I=D.selectAll("g.traces").data(n.identity);I.enter().append("g").attr("class","traces"),I.exit().remove(),I.style("opacity",(function(e){var t=e[0].trace;return i.traceIs(t,"pie-like")?-1!==p.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){r.select(this).call(_,e,t)})).call(v,e,t).each((function(){t._main&&r.select(this).call(k,e)})),n.syncOrAsync([a.previousPromises,function(){return function(e,t,n,a){var i=e._fullLayout;a||(a=i.legend);var o=i._size,l=x.isVertical(a),c=x.isGrouped(a),d=a.borderwidth,u=2*d,h=f.textGap,p=f.itemGap,g=2*(d+p),m=M(a),y=a.y<0||0===a.y&&"top"===m,v=a.y>1||1===a.y&&"bottom"===m;a._maxHeight=Math.max(y||v?i.height/2:o.h,30);var b=0;a._width=0,a._height=0;var _=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(l)n.each((function(e){var t=e[0].height;s.setTranslate(this,d+_[0],d+_[1]+a._height+t/2+p),a._height+=t,a._width=Math.max(a._width,e[0].width)})),b=h+a._width,a._width+=p+h+u,a._height+=g,c&&(t.each((function(e,t){s.setTranslate(this,0,t*a.tracegroupgap)})),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var w=A(a),k=a.x<0||0===a.x&&"right"===w,T=a.x>1||1===a.x&&"left"===w,S=v||y,L=i.width/2;a._maxWidth=Math.max(k?S&&"left"===w?o.l+o.w:L:T?S&&"right"===w?o.r+o.w:L:o.w,2*h);var O=0,C=0;n.each((function(e){var t=e[0].width+h;O=Math.max(O,t),C+=t})),b=null;var z=0;if(c){var P=0,D=0,I=0;t.each((function(){var e=0,t=0;r.select(this).selectAll("g.traces").each((function(r){var n=r[0].height;s.setTranslate(this,_[0],_[1]+d+p+n/2+t),t+=n,e=Math.max(e,h+r[0].width)})),P=Math.max(P,t);var n=e+p;n+d+D>a._maxWidth&&(z=Math.max(z,D),D=0,I+=P+a.tracegroupgap,P=t),s.setTranslate(this,D,I),D+=n})),a._width=Math.max(z,D)+d,a._height=I+P+g}else{var F=n.size(),j=C+u+(F-1)*pa._maxWidth&&(z=Math.max(z,N),E=0,B+=R,a._height+=R,R=0),s.setTranslate(this,_[0]+d+E,_[1]+d+B+t/2+p),N=E+r+p,E+=n,R=Math.max(R,t)})),j?(a._width=E+u,a._height=R+g):(a._width=Math.max(z,N)+u,a._height+=R+g)}}a._width=Math.ceil(Math.max(a._width+_[0],a._titleWidth+2*(d+f.titlePad))),a._height=Math.ceil(Math.max(a._height+_[1],a._titleHeight+2*(d+f.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var H=e._context.edits,W=H.legendText||H.legendPosition;n.each((function(e){var t=r.select(this).select(".legendtoggle"),n=e[0].height,a=W?h:b||h+e[0].width;l||(a+=p/2),s.setRect(t,0,-n/2,a,n)}))}(e,D,I,t)},function(){if(!t._main||!function(e){var t=e._fullLayout.legend,r=A(t),n=M(t);return a.autoMargin(e,"legend",{x:t.x,y:t.y,l:t._width*g[r],r:t._width*m[r],b:t._effHeight*m[n],t:t._effHeight*g[n]})}(e)){var c,h,p,y,v=d._size,x=t.borderwidth,_=v.l+v.w*t.x-g[A(t)]*t._width,k=v.t+v.h*(1-t.y)-g[M(t)]*t._effHeight;if(t._main&&d.margin.autoexpand){var T=_,C=k;_=n.constrain(_,0,d.width-t._width),k=n.constrain(k,0,d.height-t._effHeight),_!==T&&n.log("Constrain legend.x to make legend fit inside graph"),k!==C&&n.log("Constrain legend.y to make legend fit inside graph")}if(t._main&&s.setTranslate(w,_,k),P.on(".drag",null),w.on("wheel",null),!t._main||t._height<=t._maxHeight||e._context.staticPlot){var z=t._effHeight;t._main||(z=t._height),L.attr({width:t._width-x,height:z-x,x:x/2,y:x/2}),s.setTranslate(O,0,0),S.select("rect").attr({width:t._width-2*x,height:z-2*x,x:x,y:x}),s.setClipUrl(O,u,e),s.setRect(P,0,0,0,0),delete t._scrollY}else{var D,I,F,j=Math.max(f.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),R=t._effHeight-j-2*f.scrollBarMargin,E=t._height-t._effHeight,B=R/E,N=Math.min(t._scrollY||0,E);L.attr({width:t._width-2*x+f.scrollBarWidth+f.scrollBarMargin,height:t._effHeight-x,x:x/2,y:x/2}),S.select("rect").attr({width:t._width-2*x+f.scrollBarWidth+f.scrollBarMargin,height:t._effHeight-2*x,x:x,y:x+N}),s.setClipUrl(O,u,e),V(N,j,B),w.on("wheel",(function(){V(N=n.constrain(t._scrollY+r.event.deltaY/R*E,0,E),j,B),0!==N&&N!==E&&r.event.preventDefault()}));var H=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;D="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,F=N})).on("drag",(function(){var e=r.event.sourceEvent;2===e.buttons||e.ctrlKey||(I="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,V(N=function(e,t,r){var a=(r-t)/B+e;return n.constrain(a,0,E)}(F,D,I),j,B))}));P.call(H);var W=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;"touchstart"===e.type&&(D=e.changedTouches[0].clientY,F=N)})).on("drag",(function(){var e=r.event.sourceEvent;"touchmove"===e.type&&(I=e.changedTouches[0].clientY,V(N=function(e,t,r){var a=(t-r)/B+e;return n.constrain(a,0,E)}(F,D,I),j,B))}));O.call(W)}if(e._context.edits.legendPosition)w.classed("cursor-move",!0),l.init({element:w.node(),gd:e,prepFn:function(){var e=s.getTranslate(w);p=e.x,y=e.y},moveFn:function(e,r){var n=p+e,a=y+r;s.setTranslate(w,n,a),c=l.align(n,0,v.l,v.l+v.w,t.xanchor),h=l.align(a,0,v.t+v.h,v.t,t.yanchor)},doneFn:function(){void 0!==c&&void 0!==h&&i.call("_guiRelayout",e,{"legend.x":c,"legend.y":h})},clickFn:function(t,r){var n=o.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&&b(e,w,n,t,r)}})}function V(r,n,a){t._scrollY=e._fullLayout.legend._scrollY=r,s.setTranslate(O,0,-r),s.setRect(P,t._width,f.scrollBarMargin+r*a,f.scrollBarWidth,n),S.select("rect").attr("y",x+r)}}],e)}}},"2RQvW7Lc":function(e,exports,t){"use strict";var r=t("46lPXjlm"),n=r.ONEAVGYEAR,a=r.ONEAVGMONTH,i=r.ONEDAY,o=r.ONEHOUR,l=r.ONEMIN,s=r.ONESEC,c=t("4JfnfFRI").tickIncrement;function d(e,t,r,n){if(e*t<=0)return 1/0;for(var a=Math.abs(t-e),i="date"===r.type,o=u(a,i),l=0;l<10;l++){var s=u(80*o,i);if(o===s)break;if(!f(s,e,t,i,r,n))break;o=s}return o}function u(e,t){return t&&e>s?e>i?e>1.1*n?n:e>1.1*a?a:i:e>o?o:e>l?l:s:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function f(e,t,r,a,o,l){if(a&&e>i){var s=h(t,o,l),c=h(r,o,l),d=e===n?0:1;return s[d]!==c[d]}return Math.floor(r/e)-Math.floor(t/e)>.1}function h(e,t,r){var a=t.c2d(e,n,r).split("-");return""===a[0]&&(a.unshift(),a[0]="-"+a[0]),a}e.exports=function(e,t,r,a,o){var l,s,u=-1.1*t,f=-.1*t,h=e-f,p=r[0],g=r[1],m=Math.min(d(p+f,p+h,a,o),d(g+f,g+h,a,o)),y=Math.min(d(p+u,p+f,a,o),d(g+u,g+f,a,o));if(m>y&&yi){var v=l===n?1:6,x=l===n?"M12":"M1";return function(t,r){var i=a.c2d(t,n,o),l=i.indexOf("-",v);l>0&&(i=i.substr(0,l));var d=a.d2c(i,0,o);if(d0;o&&(a="array");var l,s=r("categoryorder",a);"array"===s&&(l=r("categoryarray")),o||"array"!==s||(s=t.categoryorder="trace"),"trace"===s?t._initialCategories=[]:"array"===s?t._initialCategories=l.slice():(l=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:not(.watermark)":"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.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:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;","X [data-title]:after":"content:attr(data-title);background:#69738a;color:white;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 transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:white;","X .select-outline-2":"stroke:black;stroke-dasharray:2px 2px;",Y:"font-family:'Open Sans';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,0.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:0.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 a in n){var i=a.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");r.addStyleRule(i,n[a])}},"3oxsHAjo":function(e,exports,t){"use strict";var r=t("lf8+9Xc7"),n=t("Khpmx9F5"),a=(0,t("A5P9b9BX").templatedArray)("button",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",role:"info",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",role:"info",values:["backward","todate"],dflt:"backward",editType:"plot",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",role:"info",min:0,dflt:1,editType:"plot",description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",role:"info",editType:"plot",description:"Sets the text label to appear on the button."},editType:"plot",description:["Sets the specifications for each buttons.","By default, a range selector comes with no buttons."].join(" ")});e.exports={visible:{valType:"boolean",role:"info",editType:"plot",description:["Determines whether or not this range selector is visible.","Note that range selectors are only available for x axes of","`type` set to or auto-typed to *date*."].join(" ")},buttons:a,x:{valType:"number",min:-2,max:3,role:"style",editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",editType:"plot",description:["Sets the range selector's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,role:"style",editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",role:"info",editType:"plot",description:["Sets the range selector's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},font:r({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:n.lightLine,role:"style",editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",role:"style",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"}},"3yii3GsE":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("R5um7Wku"),a=t("0Ft3SWJB"),i=t("+ELfTWmT"),o=t("/oRevOrA"),l=t("s48LrSF+").extractOpts,s=t("FAQM5QER"),c=t("4R47EHYh"),d=t("cscO2DHv").castOption;function u(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}e.exports=function(e,t,f){var h=t._fullLayout;f||(f=h.legend);var p="constant"===f.itemsizing,g=function(e,t,r,n){var a;if(e+1)a=e;else{if(!(t&&t.width>0))return 0;a=t.width}return p?n:Math.min(a,r)};function m(e,t,a){var i=e[0].trace,l=i.marker||{},s=l.line||{},c=a?i.visible&&i.type===a:n.traceIs(i,"bar"),d=r.select(t).select("g.legendpoints").selectAll("path.legend"+a).data(c?[e]:[]);d.enter().append("path").classed("legend"+a,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),d.exit().remove(),d.each((function(e){var t=r.select(this),n=e[0],a=g(n.mlw,l.line,5,2);t.style("stroke-width",a+"px").call(o.fill,n.mc||l.color),a&&o.stroke(t,n.mlc||s.color)}))}function y(e,t,i){var o=e[0],l=o.trace,s=i?l.visible&&l.type===i:n.traceIs(l,i),u=r.select(t).select("g.legendpoints").selectAll("path.legend"+i).data(s?[e]:[]);if(u.enter().append("path").classed("legend"+i,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),u.exit().remove(),u.size()){var f=(l.marker||{}).line,h=g(d(f.width,o.pts),f,5,2),p=a.minExtend(l,{marker:{line:{width:h}}});p.marker.line.color=f.color;var m=a.minExtend(o,{trace:p});c(u,m,p)}}e.each((function(e){var t=r.select(this),n=a.ensureSingle(t,"g","layers");n.style("opacity",e[0].trace.opacity);var i=f.valign,o=e[0].lineHeight,l=e[0].height;if("middle"!==i&&o&&l){var s={top:1,bottom:-1}[i]*(.5*(o-l+3));n.attr("transform","translate(0,"+s+")")}else n.attr("transform",null);n.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),n.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var c=n.selectAll("g.legendsymbols").data([e]);c.enter().append("g").classed("legendsymbols",!0),c.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var n,s=e[0].trace,c=[];if(s.visible)switch(s.type){case"histogram2d":case"heatmap":c=[["M-15,-2V4H15V-2Z"]],n=!0;break;case"choropleth":case"choroplethmapbox":c=[["M-6,-6V6H6V-6Z"]],n=!0;break;case"densitymapbox":c=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],n="radial";break;case"cone":c=[["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"]],n=!1;break;case"streamtube":c=[["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"]],n=!1;break;case"surface":c=[["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"]],n=!0;break;case"mesh3d":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!1;break;case"volume":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!0;break;case"isosurface":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],n=!1}var d=r.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(c);d.enter().append("path").classed("legend3dandfriends",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),d.exit().remove(),d.each((function(e,c){var d,f=r.select(this),h=l(s),p=h.colorscale,g=h.reversescale;if(p){if(!n){var m=p.length;d=0===c?p[g?m-1:0][1]:1===c?p[g?0:m-1][1]:p[Math.floor((m-1)/2)][1]}}else{var y=s.vertexcolor||s.facecolor||s.color;d=a.isArrayOrTypedArray(y)?y[c]||y[0]:y}f.attr("d",e[0]),d?f.call(o.fill,d):f.call((function(e){if(e.size()){var r="legendfill-"+s.uid;i.gradient(e,t,r,u(g,"radial"===n),p,"fill")}}))}))})).each((function(e){var t=e[0].trace,n="waterfall"===t.type;if(e[0]._distinct&&n){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,m(e,this,"waterfall")}var i=[];t.visible&&n&&(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 l=r.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);l.enter().append("path").classed("legendwaterfall",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),l.exit().remove(),l.each((function(e){var n=r.select(this),a=t[e[0]].marker,i=g(void 0,a.line,5,2);n.attr("d",e[1]).style("stroke-width",i+"px").call(o.fill,a.color),i&&n.call(o.stroke,a.line.color)}))})).each((function(e){m(e,this,"funnel")})).each((function(e){m(e,this)})).each((function(e){var l=e[0].trace,s=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(l.visible&&n.traceIs(l,"box-violin")?[e]:[]);s.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),s.exit().remove(),s.each((function(){var e=r.select(this);if("all"!==l.boxpoints&&"all"!==l.points||0!==o.opacity(l.fillcolor)||0!==o.opacity((l.line||{}).color)){var n=g(void 0,l.line,5,2);e.style("stroke-width",n+"px").call(o.fill,l.fillcolor),n&&o.stroke(e,l.line.color)}else{var c=a.minExtend(l,{marker:{size:p?12:a.constrain(l.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});s.call(i.pointStyle,c,t)}}))})).each((function(e){y(e,this,"funnelarea")})).each((function(e){y(e,this,"pie")})).each((function(e){var n,o,c=e[0],d=c.trace,f=d.visible&&d.fill&&"none"!==d.fill,h=s.hasLines(d),p=d.contours,m=!1,y=!1,v=l(d),x=v.colorscale,b=v.reversescale;if(p){var _=p.coloring;"lines"===_?m=!0:h="none"===_||"heatmap"===_||p.showlines,"constraint"===p.type?f="="!==p._operation:"fill"!==_&&"heatmap"!==_||(y=!0)}var w=s.hasMarkers(d)||s.hasText(d),k=f||y,T=h||m,A=w||!k?"M5,0":T?"M5,-2":"M5,-3",M=r.select(this),S=M.select(".legendfill").selectAll("path").data(f||y?[e]:[]);if(S.enter().append("path").classed("js-fill",!0),S.exit().remove(),S.attr("d",A+"h30v6h-30z").call(f?i.fillGroupStyle:function(e){if(e.size()){var r="legendfill-"+d.uid;i.gradient(e,t,r,u(b),x,"fill")}}),h||m){var L=g(void 0,d.line,10,5);o=a.minExtend(d,{line:{width:L}}),n=[a.minExtend(c,{trace:o})]}var O=M.select(".legendlines").selectAll("path").data(h||m?[n]:[]);O.enter().append("path").classed("js-line",!0),O.exit().remove(),O.attr("d",A+(m?"l30,0.0001":"h30")).call(h?i.lineGroupStyle:function(e){if(e.size()){var r="legendline-"+d.uid;i.lineGroupStyle(e),i.gradient(e,t,r,u(b),x,"stroke")}})})).each((function(e){var n,o,l=e[0],c=l.trace,d=s.hasMarkers(c),u=s.hasText(c),f=s.hasLines(c);function h(e,t,r,n){var i=a.nestedProperty(c,e).get(),o=a.isArrayOrTypedArray(i)&&t?t(i):i;if(p&&o&&void 0!==n&&(o=n),r){if(or[1])return r[1]}return o}function g(e){return l._distinct&&l.index&&e[l.index]?e[l.index]:e[0]}if(d||u||f){var m={},y={};if(d){m.mc=h("marker.color",g),m.mx=h("marker.symbol",g),m.mo=h("marker.opacity",a.mean,[.2,1]),m.mlc=h("marker.line.color",g),m.mlw=h("marker.line.width",a.mean,[0,5],2),y.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var v=h("marker.size",a.mean,[2,16],12);m.ms=v,y.marker.size=v}f&&(y.line={width:h("line.width",g,[0,10],5)}),u&&(m.tx="Aa",m.tp=h("textposition",g),m.ts=10,m.tc=h("textfont.color",g),m.tf=h("textfont.family",g)),n=[a.minExtend(l,m)],(o=a.minExtend(c,y)).selectedpoints=null,o.texttemplate=null}var x=r.select(this).select("g.legendpoints"),b=x.selectAll("path.scatterpts").data(d?n:[]);b.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform","translate(20,0)"),b.exit().remove(),b.call(i.pointStyle,o,t),d&&(n[0].mrc=3);var _=x.selectAll("g.pointtext").data(u?n:[]);_.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),_.exit().remove(),_.selectAll("text").call(i.textPointStyle,o,t)})).each((function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);n.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","translate(20,0)").style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var a=r.select(this),i=t[n?"increasing":"decreasing"],l=g(void 0,i.line,5,2);a.style("stroke-width",l+"px").call(o.fill,i.fillcolor),l&&o.stroke(a,i.line.color)}))})).each((function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);n.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var a=r.select(this),l=t[n?"increasing":"decreasing"],s=g(void 0,l.line,5,2);a.style("fill","none").call(i.dashLine,l.line.dash,s),s&&o.stroke(a,l.line.color)}))}))}},"42xT/S4m":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("R5um7Wku"),a=t("0Ft3SWJB"),i=t("8MlMO9wt"),o=t("+ELfTWmT"),l=t("JvoEnJDT").getModuleCalcData,s=t("nXHY852p"),c=t("Vq8+Ip3e"),d=t("nfwe4Djo"),u=a.ensureSingle;function f(e,t,r){return a.ensureSingle(e,t,r,(function(e){e.datum(r)}))}function h(e,t,a,i,s){for(var d,u,f,h=c.traceLayerClasses,p=e._fullLayout,g=p._modules,m=[],y=[],v=0;v-1?o="closest":(t._isHoriz=function(e,t){for(var r=t._scatterStackOpts||{},n=0;n2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},S.saveRangeInitial=function(e,t){for(var r=S.list(e,"",!0),n=!1,a=0;a.3*f||d(a)||d(i))){var h=r.dtick/2;e+=e+h.8){var l=Number(r.substr(1));i.exactYears>.8&&l%12==0?e=S.tickIncrement(e,"M6","reverse")+1.5*m:i.exactMonths>.8?e=S.tickIncrement(e,"M1","reverse")+15.5*m:e-=m/2;var s=S.tickIncrement(e,r);if(s<=n)return s}return e}(x,e,v,c,i)),y=x,0;y<=d;)y=S.tickIncrement(y,v,!1,i);return{start:t.c2r(x,0,i),end:t.c2r(y,0,i),size:v,_dataSpan:d-c}},S.prepTicks=function(e){var t=o.simpleMap(e.range,e.r2l);if("auto"===e.tickmode||!e.dtick){var r,n=e.nticks;n||("category"===e.type||"multicategory"===e.type?(r=e.tickfont?1.2*(e.tickfont.size||12):15,n=e._length/r):(r="y"===e._id.charAt(0)?40:80,n=o.constrain(e._length/r,4,9)+1),"radialaxis"===e._name&&(n*=2)),"array"===e.tickmode&&(n*=100),e._roughDTick=(Math.abs(t[1]-t[0])-(e._lBreaks||0))/n,S.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),"date"===e.type&&e.dtick<.1&&(e.dtick=.1),W(e)},S.calcTicks=function(e){S.prepTicks(e);var t=o.simpleMap(e.range,e.r2l);if("array"===e.tickmode)return function(e){var t=e.tickvals,r=e.ticktext,n=new Array(t.length),a=o.simpleMap(e.range,e.r2l),i=1.0001*a[0]-1e-4*a[1],l=1.0001*a[1]-1e-4*a[0],s=Math.min(i,l),c=Math.max(i,l),d=0;Array.isArray(r)||(r=[]);var u="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 f=0;fs&&h=a:n<=a)&&!(l.length>r||n===t);n=S.tickIncrement(n,e.dtick,i,e.calendar)){t=n;var o=!1;s&&n!==(0|n)&&(o=!0),l.push({minor:o,value:n})}}(),e.rangebreaks){if("auto"===e.tickmode)for(var c=0;c=f.min&&d2){for(var p,g=2*(e.tickfont?e.tickfont.size:12),m=[],y=i?1:-1,v=i?h-1:0,x=i?0:h-1;y*x<=y*v;x+=y){var b=e.c2p(l[x].value);(void 0===p||Math.abs(b-p)>g)&&(p=b,m.push(l[x]))}l=m.reverse()}}oe(e)&&360===Math.abs(t[1]-t[0])&&l.pop(),e._tmax=(l[l.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;for(var w=new Array(l.length),k=0;k10||"01-01"!==a.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=m&&i<=10||t>=15*m)e._tickround="d";else if(t>=v&&i<=16||t>=y)e._tickround="M";else if(t>=x&&i<=19||t>=v)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(n(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);n(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);Math.abs(c)>3&&(U(e.exponentformat)&&!q(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function V(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}}S.autoTicks=function(e,t){var r;function a(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=o.dateTick0(e.calendar);var i=2*t;i>p?(t/=p,r=a(10),e.dtick="M"+12*H(t,r,I)):i>g?(t/=g,e.dtick="M"+H(t,1,F)):i>m?(e.dtick=H(t,m,e._hasDayOfWeekBreaks?[1,7,14]:R),e.tick0=o.dateTick0(e.calendar,!0)):i>y?e.dtick=H(t,y,F):i>v?e.dtick=H(t,v,j):i>x?e.dtick=H(t,x,j):(r=a(10),e.dtick=H(t,r,I))}else if("log"===e.type){e.tick0=0;var l=o.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var s=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/s,r=a(10),e.dtick="L"+H(t,r,I)}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))):oe(e)?(e.tick0=0,r=1,e.dtick=H(t,r,N)):(e.tick0=0,r=a(10),e.dtick=H(t,r,I));if(0===e.dtick&&(e.dtick=1),!n(e.dtick)&&"string"!=typeof e.dtick){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}},S.tickIncrement=function(e,t,a,i){var l=a?-1:1;if(n(t))return e+l*t;var s=t.charAt(0),c=l*Number(t.substr(1));if("M"===s)return o.incrementMonth(e,c,i);if("L"===s)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===s){var d="D2"===t?B:E,u=e+.01*l,f=o.roundUp(o.mod(u,1),d,a);return Math.floor(u)+Math.log(r.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},S.tickFirst=function(e){var t=e.r2l||Number,a=o.simpleMap(e.range,t),i=a[1]"+s,e._prevDateHead=s));t.text=c}(e,l,r,c):"log"===d?function(e,t,r,a,i){var l=e.dtick,s=t.x,c=e.tickformat,d="string"==typeof l&&l.charAt(0);"never"===i&&(i="");a&&"L"!==d&&(l="L3",d="L");if(c||"L"===d)t.text=J(Math.pow(10,s),e,i,a);else if(n(l)||"D"===d&&o.mod(s+.01,1)<.1){var u=Math.round(s),f=Math.abs(u),h=e.exponentformat;"power"===h||U(h)&&q(u)?(t.text=0===u?1:1===u?"10":"10"+(u>1?"":b)+f+"",t.fontSize*=1.25):("e"===h||"E"===h)&&f>2?t.text="1"+h+(u>0?"+":b)+f:(t.text=J(Math.pow(10,s),e,"","fakehover"),"D1"===l&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==d)throw"unrecognized dtick "+String(l);t.text=String(Math.round(Math.pow(10,o.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,l,0,c,g):"category"===d?function(e,t){var r=e._categories[Math.round(t.x)];void 0===r&&(r="");t.text=String(r)}(e,l):"multicategory"===d?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,l,r):oe(e)?function(e,t,r,n,a){if("radians"!==e.thetaunit||r)t.text=J(t.x,e,a,n);else{var i=t.x/180;if(0===i)t.text="0";else{var l=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}var r=function(e){for(var r=1;!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(l[1]>=100)t.text=J(o.deg2rad(t.x),e,a,n);else{var s=t.x<0;1===l[1]?1===l[0]?t.text="π":t.text=l[0]+"π":t.text=["",l[0],"","⁄","",l[1],"","π"].join(""),s&&(t.text=b+t.text)}}}}(e,l,r,c,g):function(e,t,r,n,a){"never"===a?a="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide");t.text=J(t.x,e,a,n)}(e,l,0,c,g),a||(e.tickprefix&&!p(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!p(e.showticksuffix)&&(l.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var m=function(t){var r=e.l2p(t);return r>=0&&r<=e._length?t:null};l.xbnd=[m(l.x-.5),m(l.x+e.dtick-.5)]}return l},S.hoverLabelText=function(e,t,r){if(r!==_&&r!==t)return S.hoverLabelText(e,t)+" - "+S.hoverLabelText(e,r);var n="log"===e.type&&t<=0,a=S.tickText(e,e.c2l(n?-t:t),"hover").text;return n?0===t?"0":b+a:a};var G=["f","p","n","μ","m","","k","M","G","T"];function U(e){return"SI"===e||"B"===e}function q(e){return e>14||e<-15}function J(e,t,r,a){var i=e<0,l=t._tickround,s=r||t.exponentformat||"B",c=t._tickexponent,d=S.getTickFormat(t),u=t.separatethousands;if(a){var f={exponentformat:s,dtick:"none"===t.showexponent?t.dtick:n(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};W(f),l=(Number(f._tickround)||0)+4,c=f._tickexponent,t.hoverformat&&(d=t.hoverformat)}if(d)return t._numFormat(d)(e).replace(/-/g,b);var h,p=Math.pow(10,-l)/2;if("none"===s&&(c=0),(e=Math.abs(e))"+h+"":"B"===s&&9===c?e+="B":U(s)&&(e+=G[c/3+5]));return i?b+e:e}function Z(e,t){for(var r=[],n={},a=0;a1&&r=0,i=d(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=o(a)))){r=n;break}break;case"log":for(t=0;t0?r.bottom-d:0,u)))),t.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var h=[0,1];if("x"===p){if("b"===s?n[s]=t._depth:(n[s]=t._depth=Math.max(r.width>0?d-r.top:0,u),h.reverse()),r.width>0){var m=r.right-(t._offset+t._length);m>0&&(n.xr=1,n.r=m);var y=t._offset-r.left;y>0&&(n.xl=0,n.l=y)}}else if("l"===s?n[s]=t._depth=Math.max(r.height>0?d-r.left:0,u):(n[s]=t._depth=Math.max(r.height>0?r.right-d:0,u),h.reverse()),r.height>0){var v=r.bottom-(t._offset+t._length);v>0&&(n.yb=0,n.b=v);var x=t._offset-r.top;x>0&&(n.yt=1,n.t=x)}n[g]="free"===t.anchor?t.position:t._anchorAxis.domain[h[0]],t.title.text!==f._dfltTitle[p]&&(n[s]+=Y(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((o={x:0,y:0,r:0,l:0,t:0,b:0})[c]=t.linewidth,t.mirror&&!0!==t.mirror&&(o[c]+=u),!0===t.mirror||"ticks"===t.mirror?o[g]=t._anchorAxis.domain[h[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(o[g]=[t._counterDomainMin,t._counterDomainMax][h[1]]))}Q&&(l=i.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),a.autoMargin(e,ee(t),n),a.autoMargin(e,te(t),o),a.autoMargin(e,re(t),l)})),r.skipTitle||Q&&"bottom"===t.side||q.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+Y(t);else{if("multicategory"===t.type)r=t._depth;else{r=10+1.5*o+(t.linewidth?t.linewidth-1:0)}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 l,c,u,f,h=S.getPxPosition(e,t);"x"===i?(c=t._offset+t._length/2,u="top"===t.side?h-r:h+r):(u=t._offset+t._length/2,c="right"===t.side?h+r:h-r,l={rotate:"-90",offset:0});if("multicategory"!==t.type){var p=t._selections[t._id+"tick"];if(f={selection:p,side:t.side},p&&p.node()&&p.node().parentNode){var g=d.getTranslate(p.node().parentNode);f.offsetLeft=g.x,f.offsetTop=g.y}t.title.hasOwnProperty("standoff")&&(f.pad=0)}return s.draw(e,a+"title",{propContainer:t,propName:t._name+".title.text",placeholder:n._dfltTitle[i],avoid:f,transform:l,attributes:{x:c,y:u,"text-anchor":"middle"}})}(e,t)})),o.syncOrAsync(q)}}function ne(e){var r=h+(e||"tick");return w[r]||(w[r]=function(e,t){var r,n,a,i;e._selections[t].size()?(r=1/0,n=-1/0,a=1/0,i=-1/0,e._selections[t].each((function(){var e=K(this),t=d.bBox(e.node().parentNode);r=Math.min(r,t.top),n=Math.max(n,t.bottom),a=Math.min(a,t.left),i=Math.max(i,t.right)}))):(r=0,n=0,a=0,i=0);return{top:r,bottom:n,left:a,right:i,height:n-r,width:i-a}}(t,r)),w[r]}},S.getTickSigns=function(e){var t=e._id.charAt(0),r={x:"top",y:"right"}[t],n=e.side===r?1:-1,a=[-1,1,n,-n];return"inside"!==e.ticks==("x"===t)&&(a=a.map((function(e){return-e}))),e.side&&a.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),a},S.makeTransFn=function(e){var t=e._id.charAt(0),r=e._offset;return"x"===t?function(t){return"translate("+(r+e.l2p(t.x))+",0)"}:function(t){return"translate(0,"+(r+e.l2p(t.x))+")"}},S.makeTickPath=function(e,t,r,n){n=void 0!==n?n:e.ticklen;var a=e._id.charAt(0),i=(e.linewidth||1)/2;return"x"===a?"M0,"+(t+i*r)+"v"+n*r:"M"+(t+i*r)+",0h"+n*r},S.makeLabelFns=function(e,t,r){var a=e._id.charAt(0),i="boundaries"!==e.tickson&&"outside"===e.ticks,l=0,s=0;if(i&&(l+=e.ticklen),r&&"outside"===e.ticks){var c=o.deg2rad(r);l=e.ticklen*Math.cos(c)+1,s=e.ticklen*Math.sin(c)}e.showticklabels&&(i||e.showline)&&(l+=.2*e.tickfont.size);var d,u,f,h,p={labelStandoff:l+=(e.linewidth||1)/2,labelShift:s};return"x"===a?(h="bottom"===e.side?1:-1,d=s*h,u=t+l*h,f="bottom"===e.side?1:-.2,p.xFn=function(e){return e.dx+d},p.yFn=function(e){return e.dy+u+e.fontSize*f},p.anchorFn=function(e,t){return n(t)&&0!==t&&180!==t?t*h<0?"end":"start":"middle"},p.heightFn=function(t,r,n){return r<-60||r>60?-.5*n:"top"===e.side?-n:0}):"y"===a&&(h="right"===e.side?1:-1,d=l,u=-s*h,f=90===Math.abs(e.tickangle)?.5:0,p.xFn=function(e){return e.dx+t+(d+e.fontSize*f)*h},p.yFn=function(e){return e.dy+u+e.fontSize*k},p.anchorFn=function(t,r){return n(r)&&90===Math.abs(r)?"middle":"right"===e.side?"start":"end"},p.heightFn=function(t,r,n){return(r*="left"===e.side?1:-1)<-30?-n:r<30?-.5*n:0}),p},S.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",a=r.layer.selectAll("path."+n).data(t.ticks?r.vals:[],X);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",!1!==r.crisp).call(c.stroke,t.tickcolor).style("stroke-width",d.crispRound(e,t.tickwidth,1)+"px").attr("d",r.path),a.attr("transform",r.transFn)},S.drawGrid=function(e,t,r){r=r||{};var n=t._id+"grid",a=r.vals,i=r.counterAxis;if(!1===t.showgrid)a=[];else if(i&&S.shouldShowZeroLine(e,t,i))for(var o="array"===t.tickmode,l=0;l1)for(n=1;n1/3&&e.x<2/3},exports.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},exports.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},exports.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},exports.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},"5jl4DkMq":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("0Ft3SWJB");function a(e){return"_"+e+"Text_minsize"}e.exports={recordMinTextSize:function(e,t,r){if(r.uniformtext.mode){var n=a(e),i=r.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=o=0;o--)(l=((u[[(n=(i=f[o])[0])-1,a=i[1]]]||g)[2]+(u[[n+1,a]]||g)[2]+(u[[n,a-1]]||g)[2]+(u[[n,a+1]]||g)[2])/20)&&(s[i]=[n,a,l],f.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(i in s)u[i]=s[i],d.push(s[i])}return d.sort((function(e,t){return t[2]-e[2]}))}},"6NEikfh9":function(e,exports,t){"use strict";var r=t("CVZcSkmN").EventEmitter,n={init:function(e){if(e._ev instanceof r)return e;var t=new r,n=new r;return e._ev=t,e._internalEv=n,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=n.on.bind(n),e._internalOnce=n.once.bind(n),e._removeInternalListener=n.removeListener.bind(n),e._removeAllInternalListeners=n.removeAllListeners.bind(n),e.emit=function(r,a){"undefined"!=typeof jQuery&&jQuery(e).trigger(r,a),t.emit(r,a),n.emit(r,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;ol*x)||k)for(r=0;rD&&jz&&(z=j);h/=(z-C)/(2*P),C=c.l2r(C),z=c.l2r(z),c.range=c._input.range=S*:not(.chart-root)").remove(),t=t?l(t,n):n,a||(a=i.Axis()),c=i.adapter.plotly().convert(t),a.config(c).render(d),e.data=t.data,e.layout=t.layout,s.fillLayout(e),t}return exports.isPolar=!0,exports.svg=function(){return a.svg()},exports.getConfig=function(){return t},exports.getLiveConfig=function(){return i.adapter.plotly().convert(a.getLiveConfig(),!0)},exports.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},exports.setUndoPoint=function(){var e,r,a=this,o=i.util.cloneJson(t);e=o,r=n,u.add({undo:function(){r&&a(r)},redo:function(){a(e)}}),n=i.util.cloneJson(o)},exports.undo=function(){u.undo()},exports.redo=function(){u.redo()},exports},s.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),i=e.framework&&e.framework.svg&&e.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:t,_paperdiv:n,_paper:i};e._fullLayout=l(o,e.layout)}},"723cH3qU":function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("4JfnfFRI"),a=t("JdrF9yG0"),i=t("a6BPHvoN");function o(e,t,a){function o(n,a){return r.coerce(e,t,i,n,a)}var l=o("source");if(!o("visible",!!l))return t;o("layer"),o("xanchor"),o("yanchor"),o("sizex"),o("sizey"),o("sizing"),o("opacity");for(var s={_fullLayout:a},c=["x","y"],d=0;d<2;d++){var u=c[d],f=n.coerceRef(e,t,s,u,"paper");if("paper"!==f)n.getFromId(s,f)._imgIndices.push(t._index);n.coercePosition(t,s,o,f,u,0)}return t}e.exports=function(e,t){a(e,t,{name:"images",handleItemDefaults:o})}},"7TYI5MTh":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("VDpxHpeA"),a=t("uORtHUsV"),i=t("R5um7Wku"),o=t("0Ft3SWJB"),l=t("7k8rh0sJ"),s=t("/oRevOrA"),c=t("+ELfTWmT"),d=t("9fFWTih4"),u=t("4JfnfFRI"),f=t("LnvsDkyo"),h=t("WFvnZ06c"),p=t("kca9bvt+").FROM_TL,g=t("NLf4w7dD"),m=t("PM37TqjZ").redrawReglTraces,y=t("8MlMO9wt"),v=t("nXHY852p").getFromId,x=t("TXQQh07e").prepSelect,b=t("TXQQh07e").clearSelect,_=t("TXQQh07e").selectOnClick,w=t("gfz/NZnA"),k=t("Vq8+Ip3e"),T=k.MINDRAG,A=k.MINZOOM,M=!0;function S(e,t,r,n){var a=o.ensureSingle(e.draglayer,t,r,(function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)}));return a.call(f,n),a.node()}function L(e,t,n,a,i,o,l){var s=S(e,"rect",t,n);return r.select(s).call(c.setRect,a,i,o,l),s}function O(e,t){for(var r=0;r=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function D(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","translate("+r+", "+n+")").attr("d",a+"Z")}function I(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:s.background,stroke:s.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+r+")").attr("d","M0,0Z")}function F(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"),j(e,t,a,i)}function j(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 R(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function E(e){M&&e.data&&e._context.showTips&&(o.notifier(o._(e,"Double-click to zoom back out"),"long"),M=!1)}function B(e){return"lasso"===e||"select"===e}function N(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,A)/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 H(e,t,r,n){for(var a,i,l,s,c=!1,d={},u={},f=0;f-1&&_(a,e,Z,X,t.id,Le),o.indexOf("event")>-1&&d.click(e,a,t.id);else if(1===n&&pe){var s=S?U:G,c="s"===S||"w"===j?0:1,u=s._name+".range["+c+"]",f=function(e,t){var n,a=e.range[t],i=Math.abs(a-e.range[1-t]);return"date"===e.type?a:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,r.format("."+n+"g")(Math.pow(10,a))):(n=Math.floor(Math.log(Math.abs(a))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,r.format("."+String(n)+"g")(a))}(s,c),h="left",p="middle";if(s.fixedrange)return;S?(p="n"===S?"top":"bottom","right"===s.side&&(h="right")):"e"===j&&(h="right"),e._context.showAxisRangeEntryBoxes&&r.select(ye).call(l.makeEditable,{gd:e,immediate:!0,background:e._fullLayout.paper_bgcolor,text:String(f),fill:s.tickfont?s.tickfont.color:"#444",horizontalAlign:h,verticalAlign:p}).on("edit",(function(t){var r=s.d2r(t);void 0!==r&&i.call("_guiRelayout",e,u,r)}))}}function ze(t,r){if(e._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(K,t+ve)),a=Math.max(0,Math.min(ee,r+xe)),i=Math.abs(n-ve),o=Math.abs(a-xe);function l(){Te="",be.r=be.l,be.t=be.b,Me.attr("d","M0,0Z")}if(be.l=Math.min(ve,n),be.r=Math.max(ve,n),be.t=Math.min(xe,a),be.b=Math.max(xe,a),te.isSubplotConstrained)i>A||o>A?(Te="xy",i/K>o/ee?(o=i*ee/K,xe>a?be.t=xe-o:be.b=xe+o):(i=o*K/ee,ve>n?be.l=ve-i:be.r=ve+i),Me.attr("d",N(be))):l();else if(re.isSubplotConstrained)if(i>A||o>A){Te="xy";var s=Math.min(be.l/K,(ee-be.b)/ee),c=Math.max(be.r/K,(ee-be.t)/ee);be.l=s*K,be.r=c*K,be.b=(1-s)*ee,be.t=(1-c)*ee,Me.attr("d",N(be))}else l();else!ae||o1)for(var l=1;l doesnt match end tag <"+e+">. Pretending it did match.",t),o=s[s.length-1].node}else n.log("Ignoring unexpected end tag .",t)}y.test(t)?T():(o=e,s=[{node:e}]);for(var O=t.split(g),C=0;C|>|>)/g;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"},u={sub:"0.3em",sup:"-0.6em"},f={sub:"-0.21em",sup:"0.42em"},h=["http:","https:","mailto:","",void 0,":"],p=exports.NEWLINES=/(\r\n?|\n)/g,g=/(<[^<>]*>)/,m=/<(\/?)([^ >]*)(\s+(.*))?>/i,y=//i;exports.BR_TAG_ALL=//gi;var v=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,x=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,b=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,_=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function w(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&M(n)}var k=/(^|;)\s*color:/;exports.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(g),o=[],l="",s=0,c=0;ca?o.push(d.substr(0,p-a)+"..."):o.push(d.substr(0,p));break}l=""}}return o.join("")};var T={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function M(e){return e.replace(A,(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)):T[t])||e}))}function S(e,t,r){var n,a,i,o=r.horizontalAlign,l=r.verticalAlign||"top",s=e.node().getBoundingClientRect(),c=t.node().getBoundingClientRect();return a="bottom"===l?function(){return s.bottom-n.height}:"middle"===l?function(){return s.top+(s.height-n.height)/2}:function(){return s.top},i="right"===o?function(){return s.right-n.width}:"center"===o?function(){return s.left+(s.width-n.width)/2}:function(){return s.left},function(){return n=this.node().getBoundingClientRect(),this.style({top:a()-c.top+"px",left:i()-c.left+"px","z-index":1e3}),this}}exports.convertEntities=M,exports.lineCount=function(e){return e.selectAll("tspan.line").size()||1},exports.positionText=function(e,t,n){return e.each((function(){var e=r.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",n);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:i,y:o})}))},exports.makeEditable=function(e,t){var n=t.gd,a=t.delegate,i=r.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=r.select(n).select(".svg-container"),o=a.append("div"),l=e.node().style,c=parseFloat(l.fontSize||12),d=t.text;void 0===d&&(d=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(d).call(S(e,a,t)).on("blur",(function(){n._editing=!1,e.text(this.textContent).style({opacity:1});var t,a=r.select(this).attr("class");(t=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(t).style({opacity:0});var o=this.textContent;r.select(this).transition().duration(0).remove(),r.select(document).on("mouseup",null),i.edit.call(e,o)})).on("focus",(function(){var e=this;n._editing=!0,r.select(document).on("mouseup",(function(){if(r.event.target===e)return!1;document.activeElement===o.node()&&o.node().blur()}))})).on("keyup",(function(){27===r.event.which?(n._editing=!1,e.style({opacity:1}),r.select(this).style({opacity:0}).on("blur",(function(){return!1})).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),r.select(this).call(S(e,a,t)))})).on("keydown",(function(){13===r.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]")&&r.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),r.rebind(e,i,"on")}},"7rWsZTkl":function(e,exports,t){"use strict";(function(r){var n,a=t("TGWj3pqf");n="function"==typeof r.matchMedia?!r.matchMedia("(hover: none)").matches:a,e.exports=n}).call(this,t("aY11sVfy"))},"8MlMO9wt":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("yAcToaBS"),a=t("R5um7Wku"),i=t("dbVsU3X7"),o=t("A5P9b9BX"),l=t("0Ft3SWJB"),s=t("/oRevOrA"),c=t("46lPXjlm").BADNUM,d=t("nXHY852p"),u=t("HlG8UEh+"),f=t("IejtdMW5"),h=t("JvoEnJDT").getModuleCalcData,p=l.relinkPrivateKeys,g=l._,m=e.exports={};l.extendFlat(m,a),m.attributes=t("FDg8C/At"),m.attributes.type.values=m.allTypes,m.fontAttrs=t("lf8+9Xc7"),m.layoutAttributes=t("JEbHibKP"),m.fontWeight="normal";var y=m.transformsRegistry,v=t("UNxolM8i");m.executeAPICommand=v.executeAPICommand,m.computeAPICommandBindings=v.computeAPICommandBindings,m.manageCommandObserver=v.manageCommandObserver,m.hasSimpleAPICommandBindings=v.hasSimpleAPICommandBindings,m.redrawText=function(e){var t=(e=l.getGraphDiv(e))._fullLayout||{};if(!(!(t._has&&t._has("polar"))&&e.data&&e.data[0]&&e.data[0].r))return new Promise((function(t){setTimeout((function(){a.getComponentMethod("annotations","draw")(e),a.getComponentMethod("legend","draw")(e),a.getComponentMethod("colorbar","draw")(e),t(m.previousPromises(e))}),300)}))},m.resize=function(e){var t;e=l.getGraphDiv(e);var r=new Promise((function(r,n){e&&!l.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||l.isHidden(e))r(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,a.call("relayout",e,{autosize:!0}).then((function(){e.changed=t,e._resolveResize===r&&(delete e._resolveResize,r(e))}))}}),100)}));return t&&t(r),r},m.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then((function(){e._promises=[]}))},m.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,n=l.ensureSingle(t._paper,"text","js-plot-link-container",(function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:s.defaultLine,"pointer-events":"all"}).each((function(){var e=r.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=n.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),n.attr(i);var o=n.select(".js-link-to-tool"),c=n.select(".js-link-spacer"),d=n.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(){m.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),c.text(o.text()&&d.text()?" - ":"")}},m.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),a=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=m.graphJson(e,!1,"keepdata"),a.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1}};var x=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],b=["year","month","dayMonth","dayMonthYear"];function _(e,t){var r=e._context.locale,n=!1,i={};function o(e){for(var r=!0,a=0;a1&&P.length>1){for(a.getComponentMethod("grid","sizeDefaults")(c,s),o=0;o15&&P.length>15&&0===s.shapes.length&&0===s.images.length,s._hasCartesian=s._has("cartesian"),s._hasGeo=s._has("geo"),s._hasGL3D=s._has("gl3d"),s._hasGL2D=s._has("gl2d"),s._hasTernary=s._has("ternary"),s._hasPie=s._has("pie"),m.linkSubplots(u,s,d,i),m.cleanPlot(u,s,d,i),i._zoomlayer&&!e._dragging&&i._zoomlayer.selectAll(".select-outline").remove(),function(e,t){var r,n=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a0){var u=1-2*s;a=Math.round(u*a),i=Math.round(u*i)}}var f=m.layoutAttributes.width.min,h=m.layoutAttributes.height.min;a1,g=!t.height&&Math.abs(r.height-i)>1;(g||p)&&(p&&(r.width=a),g&&(r.height=i)),e._initialAutoSize||(e._initialAutoSize={width:a,height:i}),m.sanitizeMargins(r)},m.supplyLayoutModuleDefaults=function(e,t,r,n){var i,o,s,c=a.componentsRegistry,d=t._basePlotModules,u=a.subplotsRegistry.cartesian;for(i in c)(s=c[i]).includeBasePlot&&s.includeBasePlot(e,t);for(var f in d.length||d.push(u),t._has("cartesian")&&(a.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t)),t._subplots)t._subplots[f].sort(l.subplotSort);for(o=0;o.5*n.width&&(l.log("Margin push",t,"is too big in x, dropping"),r.l=r.r=0),r.b+r.t>.5*n.height&&(l.log("Margin push",t,"is too big in y, dropping"),r.b=r.t=0);var c=void 0!==r.xl?r.xl:r.x,d=void 0!==r.xr?r.xr:r.x,u=void 0!==r.yt?r.yt:r.y,f=void 0!==r.yb?r.yb:r.y;a[t]={l:{val:c,size:r.l+o},r:{val:d,size:r.r+o},b:{val:f,size:r.b+o},t:{val:u,size:r.t+o}},i[t]=1}else delete a[t],delete i[t];if(!n._replotting)return m.doAutoMargin(e)}},m.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),A(t);var r=t._size,i=t.margin,o=l.extendFlat({},r),s=i.l,c=i.r,d=i.t,u=i.b,f=t.width,h=t.height,p=t._pushmargin,g=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var y in p)g[y]||delete p[y];for(var v in p.base={l:{val:0,size:s},r:{val:1,size:c},t:{val:1,size:d},b:{val:0,size:u}},p){var x=p[v].l||{},b=p[v].b||{},_=x.val,w=x.size,k=b.val,T=b.size;for(var M in p){if(n(w)&&p[M].r){var S=p[M].r.val,L=p[M].r.size;if(S>_){var O=(w*S+(L-f)*_)/(S-_),C=(L*(1-_)+(w-f)*(1-S))/(S-_);O>=0&&C>=0&&f-(O+C)>0&&O+C>s+c&&(s=O,c=C)}}if(n(T)&&p[M].t){var z=p[M].t.val,P=p[M].t.size;if(z>k){var D=(T*z+(P-h)*k)/(z-k),I=(P*(1-k)+(T-h)*(1-z))/(z-k);D>=0&&I>=0&&h-(I+D)>0&&D+I>u+d&&(u=D,d=I)}}}}}if(r.l=Math.round(s),r.r=Math.round(c),r.t=Math.round(d),r.b=Math.round(u),r.p=Math.round(i.pad),r.w=Math.round(f)-r.l-r.r,r.h=Math.round(h)-r.t-r.b,!t._replotting&&m.didMarginChange(o,r)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var F=3*(1+Object.keys(g).length);if(t._redrawFromAutoMarginCount0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&&e._transitionData._interruptCallbacks.push((function(){return a.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var o=0,l=0;function s(){return o++,function(){l++,n||l!==o||function(t){if(!e._transitionData)return;(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return a.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(i)}}r.runFn(s),setTimeout(s())}))}],o=l.syncOrAsync(i,e);return o&&o.then||(o=Promise.resolve()),o.then((function(){return e}))}m.didMarginChange=function(e,t){for(var r=0;r1)return!0}return!1},m.graphJson=function(e,t,r,n,a,i){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&m.supplyDefaults(e);var o=a?e._fullData:e.data,s=a?e._fullLayout:e.layout,c=(e._transitionData||{})._frames;function d(e,t){if("function"==typeof e)return t?"_function_":null;if(l.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&&!l.isPlainObject(e.stream))return}else if("keepall"!==r&&"string"==typeof(n=e[i+"src"])&&n.indexOf(":")>0)return;a[i]=d(e[i],t)}else t&&(a[i]="_function")})),a}return Array.isArray(e)?e.map((function(e){return d(e,t)})):l.isTypedArray(e)?l.simpleMap(e,l.identity):l.isJSDate(e)?l.ms2DateTimeLocal(+e):e}var u={data:(o||[]).map((function(e){var r=d(e);return t&&delete r.fit,r}))};return t||(u.layout=d(s)),e.framework&&e.framework.isPolar&&(u=e.framework.getConfig()),c&&(u.frames=d(c)),i&&(u.config=d(e._context,!0)),"object"===n?u:JSON.stringify(u)},m.modifyFrames=function(e,t){var r,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r=0;s--)if(o[s].enabled){r._indexToPoints=o[s]._indexToPoints;break}n&&n.calc&&(i=n.calc(e,r))}Array.isArray(i)&&i[0]||(i=[{x:c,y:c}]),i[0].t||(i[0].t={}),i[0].trace=r,p[t]=i}}for(O(u,f,h),o=0;oi.ts+t?s():i.timer=setTimeout((function(){s(),i.timer=null}),t)},exports.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()},exports.clear=function(e){if(e)n(r[e]),delete r[e];else for(var t in r)exports.clear(t)}},"9fFWTih4":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("0Ft3SWJB"),a=t("WFvnZ06c"),i=t("ErV1Ibqz"),o=t("v1szbzNU"),l=t("E0Erayg3");e.exports={moduleType:"component",name:"fx",constants:t("HoF8EwuB"),schema:{layout:o},attributes:t("CPF8cYDb"),layoutAttributes:o,supplyLayoutGlobalDefaults:t("hjRUfPJm"),supplyDefaults:t("ATH0WTii"),supplyLayoutDefaults:t("jPmVXeCo"),calc:t("iimf+fXS"),getDistanceFunction:i.getDistanceFunction,getClosest:i.getClosest,inbox:i.inbox,quadrature:i.quadrature,appendArrayPointValue:i.appendArrayPointValue,castHoverOption:function(e,t,r){return n.castOption(e,t,"hoverlabel."+r)},castHoverinfo:function(e,t,r){return n.castOption(e,r,"hoverinfo",(function(r){return n.coerceHoverinfo({hoverinfo:r},{_module:e._module},t)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(e){var t=n.isD3Selection(e)?e:r.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:t("PEbxUAGz")}},"9wIFeies":function(e,exports,t){"use strict";(e.exports=t("CTjTmZx/")).manager=t("6rbTWMpU")},"9y2XjxqJ":function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("JdrF9yG0"),a=t("bz6mKfuP"),i=t("GEN9BI7z").name,o=a.steps;function l(e,t,i){function o(n,i){return r.coerce(e,t,a,n,i)}for(var l=n(e,t,{name:"steps",handleItemDefaults:s}),c=0,d=0;d1?(S=["toggleHover"],L=["resetViews"]):h?(M=["zoomInGeo","zoomOutGeo"],S=["hoverClosestGeo"],L=["resetGeo"]):f?(S=["hoverClosest3d"],L=["resetCameraDefault3d","resetCameraLastSave3d"]):v?(M=["zoomInMapbox","zoomOutMapbox"],S=["toggleHover"],L=["resetViewMapbox"]):m?S=["hoverClosestGl2d"]:p?S=["hoverClosestPie"]:b?(S=["hoverClosestCartesian","hoverCompareCartesian"],L=["resetViewSankey"]):S=["toggleHover"];u&&(S=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]);(function(e){for(var t=0;t=a&&(n._input||{})._templateitemname;o&&(i=a);var l,s=t+"["+i+"]";function c(){l={},o&&(l[s]={},l[s].templateitemname=o)}function d(e,t){o?r.nestedProperty(l[s],e).set(t):l[s+"."+e]=t}function u(){var e=l;return c(),e}return c(),{modifyBase:function(e,t){l[e]=t},modifyItem:d,getUpdateObj:u,applyUpdate:function(t,n){t&&d(t,n);var a=u();for(var i in a)r.nestedProperty(e,i).set(a[i])}}}},ATH0WTii:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("CPF8cYDb"),a=t("FW/+9MgV");e.exports=function(e,t,i,o){var l=r.extendFlat({},o.hoverlabel);t.hovertemplate&&(l.namelength=-1),a(e,t,(function(a,i){return r.coerce(e,t,n,a,i)}),l)}},ArZ24uYa:function(e,exports,t){"use strict";var r=t("0Ft3SWJB");e.exports=function(e,t){r.isArrayOrTypedArray(t.selectedpoints)&&r.tagSelected(e,t)}},"B2+59IWp":function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("R5um7Wku"),a=t("4JfnfFRI"),i=t("0Ft3SWJB"),o=t("Oetmuozk");function l(e,t,n,l){var s=t["error_"+l]||{},c=[];if(s.visible&&-1!==["linear","log"].indexOf(n.type)){for(var d=o(s),u=0;u=0?f.angularAxis.domain:r.extent(k),L=Math.abs(k[1]-k[0]);A&&!T&&(L=0);var O=S.slice();M&&T&&(O[1]+=L);var C=f.angularAxis.ticksCount||4;C>8&&(C=C/(C/8)+C%8),f.angularAxis.ticksStep&&(C=(O[1]-O[0])/C);var z=f.angularAxis.ticksStep||(O[1]-O[0])/(C*(f.minorTicks+1));w&&(z=Math.max(Math.round(z),1)),O[2]||(O[2]=z);var P=r.range.apply(this,O);if(P=P.map((function(e,t){return parseFloat(e.toPrecision(12))})),l=r.scale.linear().domain(O.slice(0,2)).range("clockwise"===f.direction?[0,360]:[360,0]),d.layout.angularAxis.domain=l.domain(),d.layout.angularAxis.endPadding=M?L:0,void 0===(e=r.select(this).select("svg.chart-root"))||e.empty()){var D=(new DOMParser).parseFromString("' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '","application/xml"),I=this.appendChild(this.ownerDocument.importNode(D.documentElement,!0));e=r.select(I)}e.select(".guides-group").style({"pointer-events":"none"}),e.select(".angular.axis-group").style({"pointer-events":"none"}),e.select(".radial.axis-group").style({"pointer-events":"none"});var F,j=e.select(".chart-group"),R={fill:"none",stroke:f.tickColor},E={"font-size":f.font.size,"font-family":f.font.family,fill:f.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map((function(e,t){return" "+e+" 0 "+f.font.outlineColor})).join(",")};if(f.showLegend){F=e.select(".legend-group").attr({transform:"translate("+[x,f.margin.top]+")"}).style({display:"block"});var B=h.map((function(e,t){var r=i.util.cloneJson(e);return r.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",r.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,r.color="LinePlot"===e.geometry?e.strokeColor:e.color,r}));i.Legend().config({data:h.map((function(e,t){return e.name||"Element"+t})),legendConfig:n({},i.Legend.defaultConfig().legendConfig,{container:F,elements:B,reverseOrder:f.legend.reverseOrder})})();var N=F.node().getBBox();x=Math.min(f.width-N.width-f.margin.left-f.margin.right,f.height-f.margin.top-f.margin.bottom)/2,x=Math.max(10,x),_=[f.margin.left+x,f.margin.top+x],o.range([0,x]),d.layout.radialAxis.domain=o.domain(),F.attr("transform","translate("+[_[0]+x,_[1]-x]+")")}else F=e.select(".legend-group").style({display:"none"});e.attr({width:f.width,height:f.height}).style({opacity:f.opacity}),j.attr("transform","translate("+_+")").style({cursor:"crosshair"});var H=[(f.width-(f.margin.left+f.margin.right+2*x+(N?N.width:0)))/2,(f.height-(f.margin.top+f.margin.bottom+2*x))/2];if(H[0]=Math.max(0,H[0]),H[1]=Math.max(0,H[1]),e.select(".outer-group").attr("transform","translate("+H+")"),f.title&&f.title.text){var W=e.select("g.title-group text").style(E).text(f.title.text),V=W.node().getBBox();W.attr({x:_[0]-V.width/2,y:_[1]-x-20})}var G=e.select(".radial.axis-group");if(f.radialAxis.gridLinesVisible){var U=G.selectAll("circle.grid-circle").data(o.ticks(5));U.enter().append("circle").attr({class:"grid-circle"}).style(R),U.attr("r",o),U.exit().remove()}G.select("circle.outside-circle").attr({r:x}).style(R);var q=e.select("circle.background-circle").attr({r:x}).style({fill:f.backgroundColor,stroke:f.stroke});function J(e,t){return l(e)%360+f.orientation}if(f.radialAxis.visible){var Z=r.svg.axis().scale(o).ticks(5).tickSize(5);G.call(Z).attr({transform:"rotate("+f.radialAxis.orientation+")"}),G.selectAll(".domain").style(R),G.selectAll("g>text").text((function(e,t){return this.textContent+f.radialAxis.ticksSuffix})).style(E).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===f.radialAxis.tickOrientation?"rotate("+-f.radialAxis.orientation+") translate("+[0,E["font-size"]]+")":"translate("+[0,E["font-size"]]+")"}}),G.selectAll("g>line").style({stroke:"black"})}var X=e.select(".angular.axis-group").selectAll("g.angular-tick").data(P),Y=X.enter().append("g").classed("angular-tick",!0);X.attr({transform:function(e,t){return"rotate("+J(e)+")"}}).style({display:f.angularAxis.visible?"block":"none"}),X.exit().remove(),Y.append("line").classed("grid-line",!0).classed("major",(function(e,t){return t%(f.minorTicks+1)==0})).classed("minor",(function(e,t){return!(t%(f.minorTicks+1)==0)})).style(R),Y.selectAll(".minor").style({stroke:f.minorTickColor}),X.select("line.grid-line").attr({x1:f.tickLength?x-f.tickLength:0,x2:x}).style({display:f.angularAxis.gridLinesVisible?"block":"none"}),Y.append("text").classed("axis-text",!0).style(E);var Q=X.select("text.axis-text").attr({x:x+f.labelOffset,dy:a+"em",transform:function(e,t){var r=J(e),n=x+f.labelOffset,a=f.angularAxis.tickOrientation;return"horizontal"==a?"rotate("+-r+" "+n+" 0)":"radial"==a?r<270&&r>90?"rotate(180 "+n+" 0)":null:"rotate("+(r<=180&&r>0?-90:90)+" "+n+" 0)"}}).style({"text-anchor":"middle",display:f.angularAxis.labelsVisible?"block":"none"}).text((function(e,t){return t%(f.minorTicks+1)!=0?"":w?w[e]+f.angularAxis.ticksSuffix:e+f.angularAxis.ticksSuffix})).style(E);f.angularAxis.rewriteTicks&&Q.text((function(e,t){return t%(f.minorTicks+1)!=0?"":f.angularAxis.rewriteTicks(this.textContent,t)}));var K=r.max(j.selectAll(".angular-tick text")[0].map((function(e,t){return e.getCTM().e+e.getBBox().width})));F.attr({transform:"translate("+[x+K,f.margin.top]+")"});var ee=e.select("g.geometry-group").selectAll("g").size()>0,te=e.select("g.geometry-group").selectAll("g.geometry").data(h);if(te.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),te.exit().remove(),h[0]||ee){var re=[];h.forEach((function(e,t){var r={};r.radialScale=o,r.angularScale=l,r.container=te.filter((function(e,r){return r==t})),r.geometry=e.geometry,r.orientation=f.orientation,r.direction=f.direction,r.index=t,re.push({data:e,geometryConfig:r})}));var ne=r.nest().key((function(e,t){return void 0!==e.data.groupId||"unstacked"})).entries(re),ae=[];ne.forEach((function(e,t){"unstacked"===e.key?ae=ae.concat(e.values.map((function(e,t){return[e]}))):ae.push(e.values)})),ae.forEach((function(e,t){var r;r=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var a=e.map((function(e,t){return n(i[r].defaultConfig(),e)}));i[r]().config(a)()}))}var ie,oe,le=e.select(".guides-group"),se=e.select(".tooltips-group"),ce=i.tooltipPanel().config({container:se,fontSize:8})(),de=i.tooltipPanel().config({container:se,fontSize:8})(),ue=i.tooltipPanel().config({container:se,hasTick:!0})();if(!T){var fe=le.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});j.on("mousemove.angular-guide",(function(e,t){var r=i.util.getMousePos(q).angle;fe.attr({x2:-x,transform:"rotate("+r+")"}).style({opacity:.5});var n=(r+180+360-f.orientation)%360;ie=l.invert(n);var a=i.util.convertToCartesian(x+12,r+180);ce.text(i.util.round(ie)).move([a[0]+_[0],a[1]+_[1]])})).on("mouseout.angular-guide",(function(e,t){le.select("line").style({opacity:0})}))}var he=le.select("circle").style({stroke:"grey",fill:"none"});j.on("mousemove.radial-guide",(function(e,t){var r=i.util.getMousePos(q).radius;he.attr({r:r}).style({opacity:.5}),oe=o.invert(i.util.getMousePos(q).radius);var n=i.util.convertToCartesian(r,f.radialAxis.orientation);de.text(i.util.round(oe)).move([n[0]+_[0],n[1]+_[1]])})).on("mouseout.radial-guide",(function(e,t){he.style({opacity:0}),ue.hide(),ce.hide(),de.hide()})),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",(function(t,n){var a=r.select(this),o=this.style.fill,l="black",s=this.style.opacity||1;if(a.attr({"data-opacity":s}),o&&"none"!==o){a.attr({"data-fill":o}),l=r.hsl(o).darker().toString(),a.style({fill:l,opacity:1});var c={t:i.util.round(t[0]),r:i.util.round(t[1])};T&&(c.t=w[t[0]]);var d="t: "+c.t+", r: "+c.r,u=this.getBoundingClientRect(),f=e.node().getBoundingClientRect(),h=[u.left+u.width/2-H[0]-f.left,u.top+u.height/2-H[1]-f.top];ue.config({color:l}).text(d),ue.move(h)}else o=this.style.stroke||"black",a.attr({"data-stroke":o}),l=r.hsl(o).darker().toString(),a.style({stroke:l,opacity:1})})).on("mousemove.tooltip",(function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&ue.show()})).on("mouseout.tooltip",(function(e,t){ue.hide();var n=r.select(this),a=n.attr("data-fill");a?n.style({fill:a,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})}))}))}(c),this},exports.config=function(e){if(!arguments.length)return s;var t=i.util.cloneJson(e);return t.data.forEach((function(e,t){s.data[t]||(s.data[t]={}),n(s.data[t],i.Axis.defaultConfig().data[0]),n(s.data[t],e)})),n(s.layout,i.Axis.defaultConfig().layout),n(s.layout,t.layout),this},exports.getLiveConfig=function(){return d},exports.getinputConfig=function(){return c},exports.radialScale=function(e){return o},exports.angularScale=function(e){return l},exports.svg=function(){return e},r.rebind(exports,u,"on"),exports},i.Axis.defaultConfig=function(e,t){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:r.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},i.util={},i.DATAEXTENT="dataExtent",i.AREA="AreaChart",i.LINE="LinePlot",i.DOT="DotPlot",i.BAR="BarChart",i.util._override=function(e,t){for(var r in e)r in t&&(t[r]=e[r])},i.util._extend=function(e,t){for(var r in e)t[r]=e[r]},i.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},i.util.dataFromEquation2=function(e,t){var n=t||6;return r.range(0,360+n,n).map((function(t,r){var n=t*Math.PI/180;return[t,e(n)]}))},i.util.dataFromEquation=function(e,t,n){var a=t||6,i=[],o=[];r.range(0,360+a,a).forEach((function(t,r){var n=t*Math.PI/180,a=e(n);i.push(t),o.push(a)}));var l={t:i,r:o};return n&&(l.name=n),l},i.util.ensureArray=function(e,t){if(void 0===e)return null;var n=[].concat(e);return r.range(t).map((function(e,t){return n[t]||n[0]}))},i.util.fillArrays=function(e,t,r){return t.forEach((function(t,n){e[t]=i.util.ensureArray(e[t],r)})),e},i.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},i.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var r=t.shift();return e[r]&&(!t.length||objHasKeys(e[r],t))},i.util.sumArrays=function(e,t){return r.zip(e,t).map((function(e,t){return r.sum(e)}))},i.util.arrayLast=function(e){return e[e.length-1]},i.util.arrayEqual=function(e,t){for(var r=Math.max(e.length,t.length,1);r-- >=0&&e[r]===t[r];);return-2===r},i.util.flattenArray=function(e){for(var t=[];!i.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},i.util.deduplicate=function(e){return e.filter((function(e,t,r){return r.indexOf(e)==t}))},i.util.convertToCartesian=function(e,t){var r=t*Math.PI/180;return[e*Math.cos(r),e*Math.sin(r)]},i.util.round=function(e,t){var r=t||2,n=Math.pow(10,r);return Math.round(e*n)/n},i.util.getMousePos=function(e){var t=r.mouse(e.node()),n=t[0],a=t[1],i={};return i.x=n,i.y=a,i.pos=t,i.angle=180*(Math.atan2(a,n)+Math.PI)/Math.PI,i.radius=Math.sqrt(n*n+a*a),i},i.util.duplicatesCount=function(e){for(var t,r={},n={},a=0,i=e.length;a0)){var s=r.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:d(l),transform:function(e,r){return"rotate("+(t.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return p.fill(n,a,i)},"fill-opacity":0,stroke:function(e,t){return p.stroke(n,a,i)},"stroke-width":function(e,t){return p["stroke-width"](n,a,i)},"stroke-dasharray":function(e,t){return p["stroke-dasharray"](n,a,i)},opacity:function(e,t){return p.opacity(n,a,i)},display:function(e,t){return p.display(n,a,i)}})}};var u=t.angularScale.range(),f=Math.abs(u[1]-u[0])/o[0].length*Math.PI/180,h=r.svg.arc().startAngle((function(e){return-f/2})).endAngle((function(e){return f/2})).innerRadius((function(e){return t.radialScale(s+(e[2]||0))})).outerRadius((function(e){return t.radialScale(s+(e[2]||0))+t.radialScale(e[1])}));c.arc=function(e,n,a){r.select(this).attr({class:"mark arc",d:h,transform:function(e,r){return"rotate("+(t.orientation+l(e[0])+90)+")"}})};var p={fill:function(t,r,n){return e[n].data.color},stroke:function(t,r,n){return e[n].data.strokeColor},"stroke-width":function(t,r,n){return e[n].data.strokeSize+"px"},"stroke-dasharray":function(t,r,n){return a[e[n].data.strokeDash]},opacity:function(t,r,n){return e[n].data.opacity},display:function(t,r,n){return void 0===e[n].data.visible||e[n].data.visible?"block":"none"}},g=r.select(this).selectAll("g.layer").data(o);g.enter().append("g").attr({class:"layer"});var m=g.selectAll("path.mark").data((function(e,t){return e}));m.enter().append("path").attr({class:"mark"}),m.style(p).each(c[t.geometryType]),m.exit().remove(),g.exit().remove()}))}return exports.config=function(t){return arguments.length?(t.forEach((function(t,r){e[r]||(e[r]={}),n(e[r],i.PolyChart.defaultConfig()),n(e[r],t)})),this):e},exports.getColorScale=function(){},r.rebind(exports,t,"on"),exports},i.PolyChart.defaultConfig=function(){return{data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:r.scale.category20()}}},i.BarChart=function(){return i.PolyChart()},i.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},i.AreaChart=function(){return i.PolyChart()},i.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},i.DotPlot=function(){return i.PolyChart()},i.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},i.LinePlot=function(){return i.PolyChart()},i.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},i.Legend=function(){var e=i.Legend.defaultConfig(),t=r.dispatch("hover");function exports(){var t=e.legendConfig,a=e.data.map((function(e,r){return[].concat(e).map((function(e,a){var i=n({},t.elements[r]);return i.name=e,i.color=[].concat(t.elements[r].color)[a],i}))})),i=r.merge(a);i=i.filter((function(e,r){return t.elements[r]&&(t.elements[r].visibleInLegend||void 0===t.elements[r].visibleInLegend)})),t.reverseOrder&&(i=i.reverse());var o=t.container;("string"==typeof o||o.nodeName)&&(o=r.select(o));var l=i.map((function(e,t){return e.color})),s=t.fontSize,c=null==t.isContinuous?"number"==typeof i[0]:t.isContinuous,d=c?t.height:s*i.length,u=o.classed("legend-group",!0).selectAll("svg").data([0]),f=u.enter().append("svg").attr({width:300,height:d+s,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});f.append("g").classed("legend-axis",!0),f.append("g").classed("legend-marks",!0);var h=r.range(i.length),p=r.scale[c?"linear":"ordinal"]().domain(h).range(l),g=r.scale[c?"linear":"ordinal"]().domain(h)[c?"range":"rangePoints"]([0,d]);if(c){var m=u.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(l);m.enter().append("stop"),m.attr({offset:function(e,t){return t/(l.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),u.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var y=u.select(".legend-marks").selectAll("path.legend-mark").data(i);y.enter().append("path").classed("legend-mark",!0),y.attr({transform:function(e,t){return"translate("+[s/2,g(t)+s/2]+")"},d:function(e,t){var n,a,i,o=e.symbol;return i=3*(a=s),"line"===(n=o)?"M"+[[-a/2,-a/12],[a/2,-a/12],[a/2,a/12],[-a/2,a/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(n)?r.svg.symbol().type(n).size(i)():r.svg.symbol().type("square").size(i)()},fill:function(e,t){return p(t)}}),y.exit().remove()}var v=r.svg.axis().scale(g).orient("right"),x=u.select("g.legend-axis").attr({transform:"translate("+[c?t.colorBandWidth:s,s/2]+")"}).call(v);return x.selectAll(".domain").style({fill:"none",stroke:"none"}),x.selectAll("line").style({fill:"none",stroke:c?t.textColor:"none"}),x.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text((function(e,t){return i[t].name})),exports}return exports.config=function(t){return arguments.length?(n(e,t),this):e},r.rebind(exports,t,"on"),exports},i.Legend.defaultConfig=function(e,t){return{data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}}},i.tooltipPanel=function(){var e,t,a,o={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},l="tooltip-"+i.tooltipPanel.uid++,s=10,exports=function(){var r=(e=o.container.selectAll("g."+l).data([0])).enter().append("g").classed(l,!0).style({"pointer-events":"none",display:"none"});return a=r.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=r.append("text").attr({dx:o.padding+s,dy:.3*+o.fontSize}),exports};return exports.text=function(n){var i=r.hsl(o.color).l,l=i>=.5?"#aaa":"white",c=i>=.5?"black":"white",d=n||"";t.style({fill:c,"font-size":o.fontSize+"px"}).text(d);var u=o.padding,f=t.node().getBBox(),h={fill:o.color,stroke:l,"stroke-width":"2px"},p=f.width+2*u+s,g=f.height+2*u;return a.attr({d:"M"+[[s,-g/2],[s,-g/4],[o.hasTick?0:s,0],[s,g/4],[s,g/2],[p,g/2],[p,-g/2]].join("L")+"Z"}).style(h),e.attr({transform:"translate("+[s,-g/2+2*u]+")"}),e.style({display:"block"}),exports},exports.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),exports},exports.hide=function(){if(e)return e.style({display:"none"}),exports},exports.show=function(){if(e)return e.style({display:"block"}),exports},exports.config=function(e){return n(o,e),exports},exports},i.tooltipPanel.uid=1,i.adapter={},i.adapter.plotly=function(){var exports={convert:function(e,t){var a={};if(e.data&&(a.data=e.data.map((function(e,r){var a=n({},e);return[[a,["marker","color"],["color"]],[a,["marker","opacity"],["opacity"]],[a,["marker","line","color"],["strokeColor"]],[a,["marker","line","dash"],["strokeDash"]],[a,["marker","line","width"],["strokeSize"]],[a,["marker","symbol"],["dotType"]],[a,["marker","size"],["dotSize"]],[a,["marker","barWidth"],["barWidth"]],[a,["line","interpolation"],["lineInterpolation"]],[a,["showlegend"],["visibleInLegend"]]].forEach((function(e,r){i.util.translator.apply(null,e.concat(t))})),t||delete a.marker,t&&delete a.groupId,t?("LinePlot"===a.geometry?(a.type="scatter",!0===a.dotVisible?(delete a.dotVisible,a.mode="lines+markers"):a.mode="lines"):"DotPlot"===a.geometry?(a.type="scatter",a.mode="markers"):"AreaChart"===a.geometry?a.type="area":"BarChart"===a.geometry&&(a.type="bar"),delete a.geometry):("scatter"===a.type?"lines"===a.mode?a.geometry="LinePlot":"markers"===a.mode?a.geometry="DotPlot":"lines+markers"===a.mode&&(a.geometry="LinePlot",a.dotVisible=!0):"area"===a.type?a.geometry="AreaChart":"bar"===a.type&&(a.geometry="BarChart"),delete a.mode,delete a.type),a})),!t&&e.layout&&"stack"===e.layout.barmode)){var o=i.util.duplicates(a.data.map((function(e,t){return e.geometry})));a.data.forEach((function(e,t){var r=o.indexOf(e.geometry);-1!=r&&(a.data[t].groupId=r)}))}if(e.layout){var l=n({},e.layout);if([[l,["plot_bgcolor"],["backgroundColor"]],[l,["showlegend"],["showLegend"]],[l,["radialaxis"],["radialAxis"]],[l,["angularaxis"],["angularAxis"]],[l.angularaxis,["showline"],["gridLinesVisible"]],[l.angularaxis,["showticklabels"],["labelsVisible"]],[l.angularaxis,["nticks"],["ticksCount"]],[l.angularaxis,["tickorientation"],["tickOrientation"]],[l.angularaxis,["ticksuffix"],["ticksSuffix"]],[l.angularaxis,["range"],["domain"]],[l.angularaxis,["endpadding"],["endPadding"]],[l.radialaxis,["showline"],["gridLinesVisible"]],[l.radialaxis,["tickorientation"],["tickOrientation"]],[l.radialaxis,["ticksuffix"],["ticksSuffix"]],[l.radialaxis,["range"],["domain"]],[l.angularAxis,["showline"],["gridLinesVisible"]],[l.angularAxis,["showticklabels"],["labelsVisible"]],[l.angularAxis,["nticks"],["ticksCount"]],[l.angularAxis,["tickorientation"],["tickOrientation"]],[l.angularAxis,["ticksuffix"],["ticksSuffix"]],[l.angularAxis,["range"],["domain"]],[l.angularAxis,["endpadding"],["endPadding"]],[l.radialAxis,["showline"],["gridLinesVisible"]],[l.radialAxis,["tickorientation"],["tickOrientation"]],[l.radialAxis,["ticksuffix"],["ticksSuffix"]],[l.radialAxis,["range"],["domain"]],[l.font,["outlinecolor"],["outlineColor"]],[l.legend,["traceorder"],["reverseOrder"]],[l,["labeloffset"],["labelOffset"]],[l,["defaultcolorrange"],["defaultColorRange"]]].forEach((function(e,r){i.util.translator.apply(null,e.concat(t))})),t?(void 0!==l.tickLength&&(l.angularaxis.ticklen=l.tickLength,delete l.tickLength),l.tickColor&&(l.angularaxis.tickcolor=l.tickColor,delete l.tickColor)):(l.angularAxis&&void 0!==l.angularAxis.ticklen&&(l.tickLength=l.angularAxis.ticklen),l.angularAxis&&void 0!==l.angularAxis.tickcolor&&(l.tickColor=l.angularAxis.tickcolor)),l.legend&&"boolean"!=typeof l.legend.reverseOrder&&(l.legend.reverseOrder="normal"!=l.legend.reverseOrder),l.legend&&"boolean"==typeof l.legend.traceorder&&(l.legend.traceorder=l.legend.traceorder?"reversed":"normal",delete l.legend.reverseOrder),l.margin&&void 0!==l.margin.t){var s=["t","r","b","l","pad"],c=["top","right","bottom","left","pad"],d={};r.entries(l.margin).forEach((function(e,t){d[c[s.indexOf(e.key)]]=e.value})),l.margin=d}t&&(delete l.needsEndSpacing,delete l.minorTickColor,delete l.minorTicks,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksStep,delete l.angularaxis.rewriteTicks,delete l.angularaxis.nticks,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksStep,delete l.radialaxis.rewriteTicks,delete l.radialaxis.nticks),a.layout=l}return a}};return exports}},CVZcSkmN:function(e,exports,t){"use strict";var r,n="object"==typeof Reflect?Reflect:null,a=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};r=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var l=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function d(e,t,r,n){var a,i,o,l;if(s(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=c(e))>0&&o.length>a&&!o.warned){o.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=o.length,l=d,console&&console.warn&&console.warn(l)}return e}function u(){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)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=u.bind(n);return a.listener=r,n.wrapFn=a,a}function h(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;r0&&(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)a(s,this,t);else{var c=s.length,d=g(s,c);for(r=0;r=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=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},CckoZzjI:function(e,exports,t){"use strict";var r=t("VDpxHpeA"),n={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)"]]},a=n.RdBu;function i(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 n=0;n1){if(!f&&!h&&!p)"independent"===T("pattern")&&(f=!0);m._hasSubplotGrid=f;var x,b,_="top to bottom"===T("roworder"),w=f?.2:.1,k=f?.3:.1;g&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),m._domains={x:c("x",T,w,x,v),y:c("y",T,k,b,y,_)}}else delete t.grid}function T(e,t){return r.coerce(n,m,l,e,t)}},contentDefaults:function(e,t){var r=t.grid;if(r&&r._domains){var n,a,i,o,l,c,u,f=e.grid||{},h=t._subplots,p=r._hasSubplotGrid,g=r.rows,m=r.columns,y="independent"===r.pattern,v=r._axisMap={};if(p){var x=f.subplots||[];c=r.subplots=new Array(g);var b=1;for(n=0;n13)&&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}},DNc9q72I:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("9fFWTih4"),a=t("R5um7Wku"),i=t("pE0BHGKt"),o=t("/oRevOrA"),l=r.fillText;e.exports=function(e,t,s,c){var d=e.cd,u=d[0].trace,f=e.xa,h=e.ya,p=f.c2p(t),g=h.c2p(s),m=[p,g],y=u.hoveron||"",v=-1!==u.mode.indexOf("markers")?3:.5;if(-1!==y.indexOf("points")){var x=function(e){var t=Math.max(v,e.mrc||0),r=f.c2p(e.x)-p,n=h.c2p(e.y)-g;return Math.max(Math.sqrt(r*r+n*n)-t,1-v/t)},b=n.getDistanceFunction(c,(function(e){var t=Math.max(3,e.mrc||0),r=1-1/t,n=Math.abs(f.c2p(e.x)-p);return nU!=(R=P[C][1])>=U&&(I=P[C-1][0],F=P[C][0],R-j&&(D=I+(F-I)*(U-j)/(R-j),H=Math.min(H,D),W=Math.max(W,D)));H=Math.max(H,0),W=Math.min(W,f._length);var q=o.defaultLine;return o.opacity(u.fillcolor)?q=u.fillcolor:o.opacity((u.line||{}).color)&&(q=u.line.color),r.extendFlat(e,{distance:e.maxHoverDistance,x0:H,x1:W,y0:U,y1:U,color:q,hovertemplate:!1}),delete e.index,u.text&&!Array.isArray(u.text)?e.text=String(u.text):e.text=u.name,[e]}}}},DaHMLOVM:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("+ELfTWmT"),a=t("R5um7Wku");function i(e,t,r){n.pointStyle(e.selectAll("path.point"),t,r)}function o(e,t,r){n.textPointStyle(e.selectAll("text"),t,r)}e.exports={style:function(e){var t=r.select(e).selectAll("g.trace.scatter");t.style("opacity",(function(e){return e[0].trace.opacity})),t.selectAll("g.points").each((function(t){i(r.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.text").each((function(t){o(r.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.trace path.js-line").call(n.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(n.fillGroupStyle),a.getComponentMethod("errorbars","style")(t)},stylePoints:i,styleText:o,styleOnSelect:function(e,t,r){var a=t[0].trace;a.selectedpoints?(n.selectedPointStyle(r.selectAll("path.point"),a),n.selectedTextStyle(r.selectAll("text"),a)):(i(r,a,e),o(r,a,e))}}},"E+KwxggA":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("yAcToaBS"),a=t("0Ft3SWJB"),i=t("7k8rh0sJ"),o=t("/oRevOrA"),l=t("+ELfTWmT"),s=t("R5um7Wku"),c=t("4JfnfFRI").tickText,d=t("5jl4DkMq"),u=d.recordMinTextSize,f=d.clearMinTextSize,h=t("Vs67SwPF"),p=t("Lpym/Kdp"),g=t("MzXAamq8"),m=t("msRxLST1"),y=m.text,v=m.textposition,x=t("ErV1Ibqz").appendArrayPointValue,b=g.TEXTPAD;function _(e){return e.id}function w(e){if(e.ids)return _}function k(e,t){return e0}function M(e){return"auto"===e?0:e}function S(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 L(e,t,r,n,a,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor||"end",d="end"===c,u="start"===c,f=((i.leftToRight||0)+1)/2,h=1-f,p=a.width,g=a.height,m=Math.abs(t-e),y=Math.abs(n-r),v=m>2*b&&y>2*b?b:0;m-=2*v,y-=2*v;var x=M(s);"auto"!==s||p<=m&&g<=y||!(p>m||g>y)||(p>y||g>m)&&p.01?G:function(e,t,r){return r&&e===t?e:Math.abs(e-t)>=2?G(e):e>t?Math.ceil(e):Math.floor(e)};E=U(E,B,F),B=U(B,E,F),N=U(N,H,!F),H=U(H,N,!F)}var q=T(a.ensureSingle(P,"path"),z,m,_);if(q.style("vector-effect","non-scaling-stroke").attr("d",isNaN((B-E)*(H-N))?"M0,0Z":"M"+E+","+N+"V"+H+"H"+B+"V"+N+"Z").call(l.setClipUrl,t.layerClipId,e),!z.uniformtext.mode&&j){var J=l.makePointStyleFns(f);l.singlePointStyle(d,q,f,J,e)}!function(e,t,r,n,o,s,d,f,g,m,_){var w,A=t.xaxis,O=t.yaxis,C=e._fullLayout;function z(t,r,n){return a.ensureSingle(t,"text").text(r).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(l.font,n).call(i.convertToTspans,e)}var P=n[0].trace,D="h"===P.orientation,I=function(e,t,r,n,i){var o,l=t[0].trace;o=l.texttemplate?function(e,t,r,n,i){var o=t[0].trace,l=a.castOption(o,r,"texttemplate");if(!l)return"";var s,d,u,f,h="waterfall"===o.type,p="funnel"===o.type;"h"===o.orientation?(s="y",d=i,u="x",f=n):(s="x",d=n,u="y",f=i);function g(e){return c(f,+e,!0).text}var m=t[r],y={};y.label=m.p,y.labelLabel=y[s+"Label"]=(v=m.p,c(d,v,!0).text);var v;var b=a.castOption(o,m.i,"text");(0===b||b)&&(y.text=b);y.value=m.s,y.valueLabel=y[u+"Label"]=g(m.s);var _={};x(_,o,m.i),h&&(y.delta=+m.rawS||m.s,y.deltaLabel=g(y.delta),y.final=m.v,y.finalLabel=g(y.final),y.initial=y.final-y.delta,y.initialLabel=g(y.initial));p&&(y.value=m.s,y.valueLabel=g(y.value),y.percentInitial=m.begR,y.percentInitialLabel=a.formatPercent(m.begR),y.percentPrevious=m.difR,y.percentPreviousLabel=a.formatPercent(m.difR),y.percentTotal=m.sumR,y.percenTotalLabel=a.formatPercent(m.sumR));var w=a.castOption(o,m.i,"customdata");w&&(y.customdata=w);return a.texttemplateString(l,y,e._d3locale,_,y,o._meta||{})}(e,t,r,n,i):l.textinfo?function(e,t,r,n){var i=e[0].trace,o="h"===i.orientation,l="waterfall"===i.type,s="funnel"===i.type;function d(e){return c(o?r:n,+e,!0).text}var u,f=i.textinfo,h=e[t],p=f.split("+"),g=[],m=function(e){return-1!==p.indexOf(e)};m("label")&&g.push((y=e[t].p,c(o?n:r,y,!0).text));var y;m("text")&&(0===(u=a.castOption(i,h.i,"text"))||u)&&g.push(u);if(l){var v=+h.rawS||h.s,x=h.v,b=x-v;m("initial")&&g.push(d(b)),m("delta")&&g.push(d(v)),m("final")&&g.push(d(x))}if(s){m("value")&&g.push(d(h.s));var _=0;m("percent initial")&&_++,m("percent previous")&&_++,m("percent total")&&_++;var w=_>1;m("percent initial")&&(u=a.formatPercent(h.begR),w&&(u+=" of initial"),g.push(u)),m("percent previous")&&(u=a.formatPercent(h.difR),w&&(u+=" of previous"),g.push(u)),m("percent total")&&(u=a.formatPercent(h.sumR),w&&(u+=" of total"),g.push(u))}return g.join("
")}(t,r,n,i):p.getValue(l.text,r);return p.coerceString(y,o)}(C,n,o,A,O);w=function(e,t){var r=p.getValue(e.textposition,t);return p.coerceEnumerated(v,r)}(P,o);var F="stack"===m.mode||"relative"===m.mode,j=n[o],R=!F||j._outmost;if(!I||"none"===w||(j.isBlank||s===d||f===g)&&("auto"===w||"inside"===w))return void r.select("text").remove();var E=C.font,B=h.getBarColor(n[o],P),N=h.getInsideTextFont(P,o,E,B),H=h.getOutsideTextFont(P,o,E),W=r.datum();D?"log"===A.type&&W.s0<=0&&(s=A.range[0]=U*(X/q):X>=q*(Z/U);U>0&&q>0&&(Y||Q||K)?w="inside":(w="outside",V.remove(),V=null)}else w="inside";if(!V){J=a.ensureUniformFontSize(e,"outside"===w?H:N);var ee=(V=z(r,I,J)).attr("transform");if(V.attr("transform",""),G=l.bBox(V.node()),U=G.width,q=G.height,V.attr("transform",ee),U<=0||q<=0)return void V.remove()}var te,re,ne=P.textangle;"outside"===w?(re="both"===P.constraintext||"outside"===P.constraintext,te=function(e,t,r,n,a,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,d=a.width,u=a.height,f=Math.abs(t-e),h=Math.abs(n-r);o=l?h>2*b?b:0:f>2*b?b:0;var p=1;s&&(p=l?Math.min(1,h/u):Math.min(1,f/d));var g=M(c),m=S(a,g),y=(l?m.x:m.y)/2,v=(a.left+a.right)/2,x=(a.top+a.bottom)/2,_=(e+t)/2,w=(r+n)/2,T=0,A=0,L=l?k(t,e):k(r,n);l?(_=t-L*o,T=L*y):(w=n+L*o,A=-L*y);return{textX:v,textY:x,targetX:_,targetY:w,anchorX:T,anchorY:A,scale:p,rotate:g}}(s,d,f,g,G,{isHorizontal:D,constrained:re,angle:ne})):(re="both"===P.constraintext||"inside"===P.constraintext,te=L(s,d,f,g,G,{isHorizontal:D,constrained:re,angle:ne,anchor:P.insidetextanchor}));te.fontSize=J.size,u(P.type,te,C),j.transform=te,T(V,C,m,_).attr("transform",a.getTextTransform(te))}(e,t,P,s,g,E,B,N,H,m,_),t.layerClipId&&l.hideOutsideRangePoint(d,P.select("text"),O,C,f.xcalendar,f.ycalendar)}));var N=!1===f.cliponaxis;l.setClipUrl(d,N?null:t.layerClipId,e)}));s.getComponentMethod("errorbars","plot")(e,P,t,m)},toMoveInsideBar:L}},E0Erayg3:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("yAcToaBS"),a=t("VDpxHpeA"),i=t("0Ft3SWJB"),o=t("6NEikfh9"),l=t("7k8rh0sJ"),s=t("FLLMPlzg"),c=t("+ELfTWmT"),d=t("/oRevOrA"),u=t("WFvnZ06c"),f=t("4JfnfFRI"),h=t("R5um7Wku"),p=t("ErV1Ibqz"),g=t("HoF8EwuB"),m=t("sAx/oUxG"),y=t("2Lvd5/R9"),v=g.YANGLE,x=Math.PI*v/180,b=1/Math.sin(x),_=Math.cos(x),w=Math.sin(x),k=g.HOVERARROWSIZE,T=g.HOVERTEXTPAD;function A(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa,e.ya||""].join(",")}exports.hover=function(e,t,a,l){e=i.getGraphDiv(e),i.throttle(e._fullLayout._uid+g.HOVERID,g.HOVERMINTIME,(function(){!function(e,t,a,l){a||(a="xy");var c=Array.isArray(a)?a:[a],f=e._fullLayout,g=f._plots||[],m=g[a],y=f._has("cartesian");if(m){var v=m.overlays.map((function(e){return e.id}));c=c.concat(v)}for(var x=c.length,_=new Array(x),w=new Array(x),k=!1,T=0;T_[0]._length||te<0||te>w[0]._length)return u.unhoverRaw(e,t)}if(t.pointerX=ee+_[0]._offset,t.pointerY=te+w[0]._offset,I="xval"in t?p.flat(c,t.xval):p.p2c(_,ee),F="yval"in t?p.flat(c,t.yval):p.p2c(w,te),!n(I[0])||!n(F[0]))return i.warn("Fx.hover failed",t,e),u.unhoverRaw(e,t)}var ne=1/0;function ae(e,r){for(R=0;Rq&&(X.splice(0,q),ne=X[0].distance),y&&0!==Z&&0===X.length){U.distance=Z,U.index=!1;var u=B._module.hoverPoints(U,V,G,"closest",f._hoverlayer);if(u&&(u=u.filter((function(e){return e.spikeDistance<=Z}))),u&&u.length){var h,g=u.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(g.length){var m=g[0];n(m.x0)&&n(m.y0)&&(h=oe(m),(!Q.vLinePoint||Q.vLinePoint.spikeDistance>h.spikeDistance)&&(Q.vLinePoint=h))}var v=u.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(v.length){var x=v[0];n(x.x0)&&n(x.y0)&&(h=oe(x),(!Q.hLinePoint||Q.hLinePoint.spikeDistance>h.spikeDistance)&&(Q.hLinePoint=h))}}}}}function ie(e,t){for(var r,n=null,a=1/0,i=0;i1||X.length>1)||"closest"===D&&K&&X.length>1,Me=d.combine(f.plot_bgcolor||d.background,f.paper_bgcolor),Se={hovermode:D,rotateLabels:Ae,bgColor:Me,container:f._hoverlayer,outerContainer:f._paperdiv,commonLabelOpts:f.hoverlabel,hoverdistance:f.hoverdistance},Le=S(X,Se,e);p.isUnifiedHover(D)||(!function(e,t,r){var n,a,i,o,l,s,c,d=0,u=1,f=e.size(),h=new Array(f),p=0;function g(e){var t=e[0],r=e[e.length-1];if(a=t.pmin-t.pos-t.dp+t.size,i=r.pos+r.dp+r.size-t.pmax,a>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=a;n=!1}if(!(i<.01)){if(a<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;n=!1}if(n){var c=0;for(o=0;ot.pmax&&c++;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos>t.pmax-1&&(s.del=!0,c--);for(o=0;o=0;l--)e[l].dp-=i;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos+s.dp+s.size>t.pmax&&(s.del=!0,c--)}}}e.each((function(e){var n=e[t],a="x"===n._id.charAt(0),i=n.range;0===p&&i&&i[0]>i[1]!==a&&(u=-1),h[p++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(a?b:1)/2,pmin:0,pmax:a?r.width:r.height}]})),h.sort((function(e,t){return e[0].posref-t[0].posref||u*(t[0].traceIndex-e[0].traceIndex)}));for(;!n&&d<=f;){for(d++,n=!0,o=0;o.01&&v.pmin===x.pmin&&v.pmax===x.pmax){for(l=y.length-1;l>=0;l--)y[l].dp+=a;for(m.push.apply(m,y),h.splice(o+1,1),c=0,l=m.length-1;l>=0;l--)c+=m[l].dp;for(i=c/m.length,l=m.length-1;l>=0;l--)m[l].dp-=i;n=!1}else o++}h.forEach(g)}for(o=h.length-1;o>=0;o--){var _=h[o];for(l=_.length-1;l>=0;l--){var w=_[l],k=w.datum;k.offset=w.dp,k.del=w.del}}}(Le,Ae?"xa":"ya",f),O(Le,Ae));if(t.target&&t.target.tagName){var Oe=h.getComponentMethod("annotations","hasClickToShow")(e,_e);s(r.select(t.target),Oe?"pointer":"")}if(!t.target||l||!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,be))return;be&&e.emit("plotly_unhover",{event:t,points:be});e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:_,yaxes:w,xvals:I,yvals:F})}(e,t,a,l)}))},exports.loneHover=function(e,t){var n=!0;Array.isArray(e)||(n=!1,e=[e]);var a=e.map((function(e){return{color:e.color||d.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,eventData:e.eventData||!1,hovertemplateLabels:e.hovertemplateLabels||!1}})),i=r.select(t.container),o=t.outerContainer?r.select(t.outerContainer):i,l={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||d.background,container:i,outerContainer:o},s=S(a,l,t.gd),c=0,u=0;return s.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]*)<\/extra>/;function S(e,t,n){var a=n._fullLayout,o=t.hovermode,s=t.rotateLabels,u=t.bgColor,f=t.container,h=t.outerContainer,x=t.commonLabelOpts||{},b=t.fontFamily||g.HOVERFONT,_=t.fontSize||g.HOVERFONTSIZE,w=e[0],M=w.xa,S=w.ya,O="y"===o.charAt(0)?"yLabel":"xLabel",C=w[O],z=(String(C)||"").split(" ")[0],P=h.node().getBoundingClientRect(),D=P.top,I=P.width,F=P.height,j=void 0!==C&&w.distance<=t.hoverdistance&&("x"===o||"y"===o);if(j){var R,E,B=!0;for(R=0;Ra.width-L?(m=a.width-L,s.attr("d","M"+(L-k)+",0L"+L+","+A+k+"v"+A+(2*T+v.height)+"H-"+L+"V"+A+k+"H"+(L-2*k)+"Z")):s.attr("d","M0,0L"+k+","+A+k+"H"+(T+v.width/2)+"v"+A+(2*T+v.height)+"H-"+(T+v.width/2)+"V"+A+k+"H-"+k+"Z")}else{var O,z,P;"right"===S.side?(O="start",z=1,P="",m=M._offset+M._length):(O="end",z=-1,P="-",m=M._offset),y=S._offset+(w.y0+w.y1)/2,u.attr("text-anchor",O),s.attr("d","M0,0L"+P+k+","+k+"V"+(T+v.height/2)+"h"+P+(2*T+v.width)+"V-"+(T+v.height/2)+"H"+P+k+"V-"+k+"Z");var I,F=v.height/2,j=D-v.top-F,R="clip"+a._uid+"commonlabel"+S._id;if(m=0?ee-=ne:ee+=2*T;var ae=re.height+2*T,ie=K+ae>=F;return ae<=F&&(K<=D?K=S._offset+2*T:ie&&(K=F-ae)),te.attr("transform","translate("+ee+","+K+")"),te}var oe=f.selectAll("g.hovertext").data(e,(function(e){return A(e)}));return oe.enter().append("g").classed("hovertext",!0).each((function(){var e=r.select(this);e.append("rect").call(d.fill,d.addOpacity(u,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(c.font,b,_)})),oe.exit().remove(),oe.each((function(e){var t=r.select(this).attr("transform",""),i=e.bgcolor||e.color,f=d.combine(d.opacity(i)?i:d.defaultLine,u),h=d.combine(d.opacity(e.color)?e.color:d.defaultLine,u),p=e.borderColor||d.contrast(f),g=L(e,j,o,a,C,t),m=g[0],y=g[1],x=t.select("text.nums").call(c.font,e.fontFamily||b,e.fontSize||_,e.fontColor||p).text(m).attr("data-notex",1).call(l.positionText,0,0).call(l.convertToTspans,n),w=t.select("text.name"),A=0,M=0;if(y&&y!==m){w.call(c.font,e.fontFamily||b,e.fontSize||_,h).text(y).attr("data-notex",1).call(l.positionText,0,0).call(l.convertToTspans,n);var S=w.node().getBoundingClientRect();A=S.width+2*T,M=S.height+2*T}else w.remove(),t.select("rect").remove();t.select("path").style({fill:f,stroke:p});var O,z,P=x.node().getBoundingClientRect(),R=e.xa._offset+(e.x0+e.x1)/2,E=e.ya._offset+(e.y0+e.y1)/2,B=Math.abs(e.x1-e.x0),N=Math.abs(e.y1-e.y0),H=P.width+k+T+A;if(e.ty0=D-P.top,e.bx=P.width+2*T,e.by=Math.max(P.height+2*T,M),e.anchor="start",e.txwidth=P.width,e.tx2width=A,e.offset=0,s)e.pos=R,O=E+N/2+H<=F,z=E-N/2-H>=0,"top"!==e.idealAlign&&O||!z?O?(E+=N/2,e.anchor="start"):e.anchor="middle":(E-=N/2,e.anchor="end");else if(e.pos=E,O=R+B/2+H<=I,z=R-B/2-H>=0,"left"!==e.idealAlign&&O||!z)if(O)R+=B/2,e.anchor="start";else{e.anchor="middle";var W=H/2,V=R+W-I,G=R-W;V>0&&(R-=V),G<0&&(R+=-G)}else R-=B/2,e.anchor="end";x.attr("text-anchor",e.anchor),A&&w.attr("text-anchor",e.anchor),t.attr("transform","translate("+R+","+E+")"+(s?"rotate("+v+")":""))})),oe}function L(e,t,r,n,a,o){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=i.templateString(e.name,e.trace._meta)),l=D(e.name,e.nameLength)),void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"
"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[r.charAt(0)+"Label"]===a?s=e[("x"===r.charAt(0)?"y":"x")+"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?"
":"")+e.text),void 0!==e.extraText&&(s+=(s?"
":"")+e.extraText),o&&""===s&&!e.hovertemplate&&(""===l&&o.remove(),s=l);var c=n._d3locale,d=e.hovertemplate||!1,u=e.hovertemplateLabels||e,f=e.eventData[0]||{};return d&&(s=(s=i.hovertemplateString(d,u,c,f,e.trace._meta)).replace(M,(function(t,r){return l=D(r,e.nameLength),""}))),[s,l]}function O(e,t){e.each((function(e){var n=r.select(this);if(e.del)return n.remove();var a=n.select("text.nums"),i=e.anchor,o="end"===i?-1:1,s={start:1,end:-1,middle:0}[i],d=s*(k+T),u=d+s*(e.txwidth+T),f=0,h=e.offset;"middle"===i&&(d-=e.tx2width/2,u+=e.txwidth/2+T),t&&(h*=-w,f=e.offset*_),n.select("path").attr("d","middle"===i?"M-"+(e.bx/2+e.tx2width/2)+","+(h-e.by/2)+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(o*k+f)+","+(k+h)+"v"+(e.by/2-k)+"h"+o*e.bx+"v-"+e.by+"H"+(o*k+f)+"V"+(h-k)+"Z");var p=d+f,g=h+e.ty0-e.by/2+T,m=e.textAlign||"auto";"auto"!==m&&("left"===m&&"start"!==i?(a.attr("text-anchor","start"),p="middle"===i?-e.bx/2-e.tx2width/2+T:-e.bx-T):"right"===m&&"end"!==i&&(a.attr("text-anchor","end"),p="middle"===i?e.bx/2-e.tx2width/2-T:e.bx+T)),a.call(l.positionText,p,g),e.tx2width&&(n.select("text.name").call(l.positionText,u+s*T+f,h+e.ty0-e.by/2+T),n.select("rect").call(c.setRect,u+(s-1)*e.tx2width/2+f,h-e.by/2-1,e.tx2width,e.by+2))}))}function C(e,t){var r=e.index,a=e.trace||{},o=e.cd[0],l=e.cd[r]||{};function s(e){return e||n(e)&&0===e}var c=Array.isArray(r)?function(e,t){var n=i.castOption(o,r,e);return s(n)?n:i.extractOption({},a,"",t)}:function(e,t){return i.extractOption(l,a,e,t)};function d(t,r,n){var a=c(r,n);s(a)&&(e[t]=a)}if(d("hoverinfo","hi","hoverinfo"),d("bgcolor","hbg","hoverlabel.bgcolor"),d("borderColor","hbc","hoverlabel.bordercolor"),d("fontFamily","htf","hoverlabel.font.family"),d("fontSize","hts","hoverlabel.font.size"),d("fontColor","htc","hoverlabel.font.color"),d("nameLength","hnl","hoverlabel.namelength"),d("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===a.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=i.constrain(e.x0,0,e.xa._length),e.x1=i.constrain(e.x1,0,e.xa._length),e.y0=i.constrain(e.y0,0,e.ya._length),e.y1=i.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:f.hoverLabelText(e.xa,e.xLabelVal),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:f.hoverLabelText(e.ya,e.yLabelVal),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 u=f.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+u+" / -"+f.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+u,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var h=f.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+h+" / -"+f.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+h,"y"===t&&(e.distance+=1)}var p=e.hoverinfo||e.trace.hoverinfo;return p&&"all"!==p&&(-1===(p=Array.isArray(p)?p:p.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===p.indexOf("y")&&(e.yLabel=void 0),-1===p.indexOf("z")&&(e.zLabel=void 0),-1===p.indexOf("text")&&(e.text=void 0),-1===p.indexOf("name")&&(e.name=void 0)),e}function z(e,t,r){var n,i,o=r.container,l=r.fullLayout,s=l._size,u=r.event,h=!!t.hLinePoint,p=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),p||h){var g=d.combine(l.plot_bgcolor,l.paper_bgcolor);if(h){var m,y,v=t.hLinePoint;n=v&&v.xa,"cursor"===(i=v&&v.ya).spikesnap?(m=u.pointerX,y=u.pointerY):(m=n._offset+v.x,y=i._offset+v.y);var x,b,_=a.readability(v.color,g)<1.5?d.contrast(g):v.color,w=i.spikemode,k=i.spikethickness,T=i.spikecolor||_,A=f.getPxPosition(e,i);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=A,b=m),-1!==w.indexOf("across")){var M=i._counterDomainMin,S=i._counterDomainMax;"free"===i.anchor&&(M=Math.min(M,i.position),S=Math.max(S,i.position)),x=s.l+M*s.w,b=s.l+S*s.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:y,y2:y,"stroke-width":k,stroke:T,"stroke-dasharray":c.dashStyle(i.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:y,y2:y,"stroke-width":k+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:A+("right"!==i.side?k:-k),cy:y,r:k,fill:T}).classed("spikeline",!0)}if(p){var L,O,C=t.vLinePoint;n=C&&C.xa,i=C&&C.ya,"cursor"===n.spikesnap?(L=u.pointerX,O=u.pointerY):(L=n._offset+C.x,O=i._offset+C.y);var z,P,D=a.readability(C.color,g)<1.5?d.contrast(g):C.color,I=n.spikemode,F=n.spikethickness,j=n.spikecolor||D,R=f.getPxPosition(e,n);if(-1!==I.indexOf("toaxis")||-1!==I.indexOf("across")){if(-1!==I.indexOf("toaxis")&&(z=R,P=O),-1!==I.indexOf("across")){var E=n._counterDomainMin,B=n._counterDomainMax;"free"===n.anchor&&(E=Math.min(E,n.position),B=Math.max(B,n.position)),z=s.t+(1-B)*s.h,P=s.t+(1-E)*s.h}o.insert("line",":first-child").attr({x1:L,x2:L,y1:z,y2:P,"stroke-width":F,stroke:j,"stroke-dasharray":c.dashStyle(n.spikedash,F)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:L,x2:L,y1:z,y2:P,"stroke-width":F+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==I.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:L,cy:R-("top"!==n.side?F:-F),r:F,fill:j}).classed("spikeline",!0)}}}function P(e,t){return!t||(t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint)}function D(e,t){return l.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}},E0ymBWcp:function(e,exports,t){"use strict";e.exports={percent:function(e,t){for(var r=e.length,n=100/t,a=0;a=0&&r.index0;)f=h.c2p(k[v]),v--;for(f0;)y=p.c2p(T[v]),v--;if(y0)){var g=function(e,t,r){for(var n=r.filter((function(r){return t[r].anchor===e._id})),a=0,i=0;i0&&i.log("Clearing previous rejected promises from queue."),e._promises=[]},exports.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(o.subplotsRegistry.cartesian||{}).attrRegex,l=(o.subplotsRegistry.polar||{}).attrRegex,d=(o.subplotsRegistry.ternary||{}).attrRegex,u=(o.subplotsRegistry.gl3d||{}).attrRegex,p=Object.keys(e);for(t=0;t3?(C.x=1.02,C.xanchor="left"):C.x<-2&&(C.x=-.02,C.xanchor="right"),C.y>3?(C.y=1.02,C.yanchor="bottom"):C.y<-2&&(C.y=-.02,C.yanchor="top")),h(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),s.clean(e),e.template&&e.template.layout&&exports.cleanLayout(e.template.layout),e},exports.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}exports.hasParent=function(e,t){for(var r=x(t);r;){if(r in e)return!0;r=x(r)}return!1};var b=["x","y","z"];exports.clearAxisTypes=function(e,t,r){for(var n=0;n0&&((b=A-o(m)-o(y))>M?_/b>L&&(v=m,x=y,L=_/b):_/A>L&&(v={val:m.val,pad:0},x={val:y.val,pad:0},L=_/A));if(f===h){var O=f-1,C=f+1;if(k)if(0===f)i=[0,1];else{var z=(f>0?u:d).reduce((function(e,t){return Math.max(e,o(t))}),0),P=f/(1-Math.min(.5,z/A));i=f>0?[0,P]:[P,0]}else i=T?[Math.max(0,O),Math.max(1,C)]:[O,C]}else k?(v.val>=0&&(v={val:0,pad:0}),x.val<=0&&(x={val:0,pad:0})):T&&(v.val-L*o(v)<0&&(v={val:0,pad:0}),x.val<=0&&(x={val:1,pad:0})),L=(x.val-v.val-S(m.val,y.val))/(A-o(v)-o(x)),i=[v.val-L*o(v),x.val+L*o(x)];return p&&i.reverse(),n.simpleMap(i,t.l2r||Number)}function l(e){var t=e._length/20;return"domain"===e.constrain&&e._inputDomain&&(t*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(e){return e.pad+(e.extrapad?t:0)}}function s(e,t){var r,n,a,i=t._id,o=e._fullData,l=e._fullLayout,s=[],u=[];function f(e,t){for(r=0;r=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 d=i&&0===t;e.push({val:t,pad:d?0:r,extrapad:!d&&o})}}function f(e){return r(e)&&Math.abs(e)=t}e.exports={getAutoRange:o,makePadFn:l,doAutoRange:function(e,t){if(t.setScale(),t.autorange){t.range=o(e,t),t._r=t.range.slice(),t._rl=n.simpleMap(t._r,t.r2l);var r=t._input,a={};a[t._attr+".range"]=t.range,a[t._attr+".autorange"]=t.autorange,i.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,a),r.range=t.range.slice(),r.autorange=t.autorange}var l=t._anchorAxis;if(l&&l.rangeslider){var s=l.rangeslider[t._name];s&&"auto"===s.rangemode&&(s.range=o(e,t)),l._input.rangeslider[t._name]=n.extendFlat({},s)}},findExtremes:function(e,t,n){n||(n={});e._m||e.setScale();var i,o,l,s,u,h,p,g,m,y=[],v=[],x=t.length,b=n.padded||!1,_=n.tozero&&("linear"===e.type||"-"===e.type),w="log"===e.type,k=!1,T=n.vpadLinearized||!1;function A(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 M=A((e._m>0?n.ppadplus:n.ppadminus)||n.ppad||0),S=A((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),L=A(n.vpadplus||n.vpad),O=A(n.vpadminus||n.vpad);if(!k){if(g=1/0,m=-1/0,w)for(i=0;i0&&(g=o),o>m&&o-a&&(g=o),o>m&&o=P;i--)z(i);return{min:y,max:v,opts:n}},concatExtremes:s}},Ib4Cm2pX:function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("0Ft3SWJB"),a=t("R5um7Wku"),i=t("4JfnfFRI"),o=t("QwKhVvvj"),l=t("zGjfuAgi"),s=t("E0ymBWcp"),c=t("8WyRVZ33"),d=t("2RQvW7Lc");function u(e,t,o,l,s){var c,d,f,h,p,g,m,y=l+"bins",v=e._fullLayout,x=t["_"+l+"bingroup"],b=v._histogramBinOpts[x],_="overlay"===v.barmode,w=function(e){return o.r2c(e,0,h)},k=function(e){return o.c2r(e,0,h)},T="date"===o.type?function(e){return e||0===e?n.cleanDate(e,null,h):null}:function(e){return r(e)?Number(e):null};function A(e,t,r){t[e+"Found"]?(t[e]=T(t[e]),null===t[e]&&(t[e]=r[e])):(g[e]=t[e]=r[e],n.nestedProperty(d[0],y+"."+e).set(r[e]))}if(t["_"+l+"autoBinFinished"])delete t["_"+l+"autoBinFinished"];else{d=b.traces;var M=[],S=!0,L=!1,O=!1;for(c=0;co.r2l(E)&&(N=i.tickIncrement(N,b.size,!0,h)),I.start=o.l2r(N),R||n.nestedProperty(t,y+".start").set(I.start)}var H=b.end,W=o.r2l(D.end),V=void 0!==W;if((b.endFound||V)&&W!==o.r2l(H)){var G=V?W:n.aggNums(Math.max,null,p);I.end=o.l2r(G),V||n.nestedProperty(t,y+".start").set(I.end)}var U="autobin"+l;return!1===t._input[U]&&(t._input[y]=n.extendFlat({},t[y]||{}),delete t._input[U],delete t[U]),[I,p]}e.exports={calc:function(e,t){var a,f,h,p,g=[],m=[],y=i.getFromId(e,"h"===t.orientation?t.yaxis:t.xaxis),v="h"===t.orientation?"y":"x",x={x:"y",y:"x"}[v],b=t[v+"calendar"],_=t.cumulative,w=u(e,t,y,v),k=w[0],T=w[1],A="string"==typeof k.size,M=[],S=A?M:k,L=[],O=[],C=[],z=0,P=t.histnorm,D=t.histfunc,I=-1!==P.indexOf("density");_.enabled&&I&&(P=P.replace(/ ?density$/,""),I=!1);var F,j="max"===D||"min"===D?null:0,R=l.count,E=s[P],B=!1,N=function(e){return y.r2c(e,0,b)};for(n.isArrayOrTypedArray(t[x])&&"count"!==D&&(F=t[x],B="avg"===D,R=l[D]),a=N(k.start),h=N(k.end)+(a-i.tickIncrement(a,k.size,!1,b))/1e6;a=0&&p=0;n--)l(n);else if("increasing"===t){for(n=1;n=0;n--)e[n]+=e[n+1];"exclude"===r&&(e.push(0),e.shift())}}(m,_.direction,_.currentbin);var Y=Math.min(g.length,m.length),Q=[],K=0,ee=Y-1;for(a=0;a=K;a--)if(m[a]){ee=a;break}for(a=K;a<=ee;a++)if(r(g[a])&&r(m[a])){var te={p:g[a],s:m[a],b:0};_.enabled||(te.pts=C[a],U?te.ph0=te.ph1=C[a].length?T[C[a][0]]:g[a]:(t._computePh=!0,te.ph0=V(M[a]),te.ph1=V(M[a+1],!0))),Q.push(te)}return 1===Q.length&&(Q[0].width1=i.tickIncrement(Q[0].p,k.size,!1,b)-Q[0].p),o(Q,t),n.isArrayOrTypedArray(t.selectedpoints)&&n.tagSelected(Q,t,Z),Q},calcAllAutoBins:u}},IejtdMW5:function(e,exports,t){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",role:"info",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",role:"info",description:"A label by which to identify the frame"},traces:{valType:"any",role:"info",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",role:"info",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",role:"object",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",role:"object",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},IhK9L9VC:function(e,exports,t){"use strict";var r=t("R5um7Wku"),n=t("0Ft3SWJB"),a=t("4JfnfFRI"),i=t("ixeefcrV"),o=t("lNueT97u"),l=t("RF44uHEW"),s=t("tLYo6Exq"),c=t("bujHEgrl"),d=t("6J/IMU+T"),u=t("ZPYyNz95");e.exports=function(e,t){var f,h,p,g,m,y,v,x,b,_=a.getFromId(e,t.xaxis||"x"),w=a.getFromId(e,t.yaxis||"y"),k=r.traceIs(t,"contour"),T=r.traceIs(t,"histogram"),A=r.traceIs(t,"gl2d"),M=k?"best":t.zsmooth;if(_._minDtick=0,w._minDtick=0,T)f=(b=i(e,t)).x,h=b.x0,p=b.dx,g=b.y,m=b.y0,y=b.dy,v=b.z;else{var S=t.z;n.isArray1D(S)?(l(t,_,w,"x","y",["z"]),f=t._x,g=t._y,S=t._z):(f=t._x=t.x?_.makeCalcdata(t,"x"):[],g=t._y=t.y?w.makeCalcdata(t,"y"):[]),h=t.x0,p=t.dx,m=t.y0,y=t.dy,v=s(S,t,_,w),(k||t.connectgaps)&&(t._emptypoints=d(v),c(v,t._emptypoints))}function L(e){M=t._input.zsmooth=t.zsmooth=!1,n.warn('cannot use zsmooth: "fast": '+e)}if("fast"===M)if("log"===_.type||"log"===w.type)L("log axis found");else if(!T){if(f.length){var O=(f[f.length-1]-f[0])/(f.length-1),C=Math.abs(O/100);for(x=0;xC){L("x scale is not linear");break}}if(g.length&&"fast"===M){var z=(g[g.length-1]-g[0])/(g.length-1),P=Math.abs(z/100);for(x=0;xP){L("y scale is not linear");break}}}var D=n.maxRowLength(v),I="scaled"===t.xtype?"":f,F=u(t,I,h,p,D,_),j="scaled"===t.ytype?"":g,R=u(t,j,m,y,v.length,w);A||(t._extremes[_._id]=a.findExtremes(_,F),t._extremes[w._id]=a.findExtremes(w,R));var E={x:F,y:R,z:v,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(I&&I.length===F.length-1&&(E.xCenter=I),j&&j.length===R.length-1&&(E.yCenter=j),T&&(E.xRanges=b.xRanges,E.yRanges=b.yRanges,E.pts=b.pts),k||o(e,t,{vals:v,cLetter:"z"}),k&&t.contours&&"heatmap"===t.contours.coloring){var B={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};E.xfill=u(B,I,h,p,D,_),E.yfill=u(B,j,m,y,v.length,w)}return[E]}},"It6vW0T+":function(e,exports,t){"use strict";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},"J+WNd9JU":function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("JdrF9yG0"),a=t("3C3qwmq/"),i=t("Zf49CTZG").name,o=a.buttons;function l(e,t,i){function o(n,i){return r.coerce(e,t,a,n,i)}o("visible",n(e,t,{name:"buttons",handleItemDefaults:s}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),r.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),r.coerceFont(o,"font",i.font),o("bgcolor",i.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function s(e,t){function n(n,a){return r.coerce(e,t,o,n,a)}n("visible","skip"===e.method||Array.isArray(e.args))&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}e.exports=function(e,t){n(e,t,{name:i,handleItemDefaults:l})}},JEaxPxNy:function(e,exports,t){"use strict";var r=t("/8dZfPfB");e.exports=function(e,t,n){var a=e.selectAll("g."+n.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each((function(e){e[0][i]=r.select(this)})),a}},JEbHibKP:function(e,exports,t){"use strict";var r=t("lf8+9Xc7"),n=t("HlG8UEh+"),a=t("Khpmx9F5"),i=t("3dGlwK5L"),o=t("xE+ZFgwY").extendFlat,l=r({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});l.family.dflt='"Open Sans", verdana, arial, sans-serif',l.size.dflt=12,l.color.dflt=a.defaultLine,e.exports={font:l,title:{text:{valType:"string",role:"info",editType:"layoutstyle",description:["Sets the plot's title.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:r({editType:"layoutstyle",description:["Sets the title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],role:"info",editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],role:"info",editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},x:{valType:"number",min:0,max:1,dflt:.5,role:"style",editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",role:"style",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],role:"info",editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],role:"info",editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:o(i({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,role:"info",editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,role:"info",editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",role:"info",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",role:"info",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",role:"info",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},margin:{l:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",role:"info",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",role:"info",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",role:"info",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},paper_bgcolor:{valType:"color",role:"style",dflt:a.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",role:"style",dflt:a.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},separators:{valType:"string",role:"style",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",role:"info",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",role:"info",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:a.defaults,role:"style",editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",role:"info",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",role:"info",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},modebar:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",role:"info",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",role:"style",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",role:"style",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",role:"style",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},editType:"modebar"},meta:{valType:"any",arrayOk:!0,role:"info",editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:o({},n.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"}),_deprecated:{title:{valType:"string",role:"info",editType:"layoutstyle",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the contents of the title, please use `title.text` now."].join(" ")},titlefont:r({editType:"layoutstyle",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},"JPrGcRM+":function(e,exports,t){"use strict";var r=t("ErV1Ibqz").appendArrayMultiPointValues;e.exports=function(e,t){var n={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,v:e.v};return 1===e.pts.length&&(n.pointNumber=n.i=e.pts[0]),r(n,t,e.pts),"funnelarea"===t.type&&(delete n.v,delete n.i),n}},"JWkd8+G/":function(e,exports,t){"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}]},JdrF9yG0:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("A5P9b9BX");e.exports=function(e,t,a){var i,o,l=a.name,s=a.inclusionAttr||"visible",c=t[l],d=r.isArrayOrTypedArray(e[l])?e[l]:[],u=t[l]=[],f=n.arrayTemplater(t,l,s);for(i=0;i0&&(i=!0);for(var s=0;s=r&&e<=n?e:c}if("string"!=typeof e&&"number"!=typeof e)return c;e=String(e);var s=b(t),m=e.charAt(0);!s||"G"!==m&&"g"!==m||(e=e.substr(1),t="");var _=s&&"chinese"===t.substr(0,7),w=e.match(_?v:y);if(!w)return c;var k=w[1],T=w[3]||"1",A=Number(w[5]||1),M=Number(w[7]||0),S=Number(w[9]||0),L=Number(w[11]||0);if(s){if(2===k.length)return c;var O;k=Number(k);try{var C=g.getComponentMethod("calendars","getCal")(t);if(_){var z="i"===T.charAt(T.length-1);T=parseInt(T,10),O=C.newDate(k,C.toMonthIndex(k,T,z),A)}else O=C.newDate(k,Number(T),A)}catch(e){return c}return O?(O.toJD()-p)*d+M*u+S*f+L*h:c}k=2===k.length?(Number(k)+2e3-x)%100+x:Number(k),T-=1;var P=new Date(Date.UTC(2e3,T,A,M,S));return P.setUTCFullYear(k),P.getUTCMonth()!==T||P.getUTCDate()!==A?c:P.getTime()+L*h},r=exports.MIN_MS=exports.dateTime2ms("-9999"),n=exports.MAX_MS=exports.dateTime2ms("9999-12-31 23:59:59.9999"),exports.isDateTime=function(e,t){return exports.dateTime2ms(e,t)!==c};var w=90*d,k=3*u,T=5*f;function A(e,t,r,n,a){if((t||r||n||a)&&(e+=" "+_(t,2)+":"+_(r,2),(n||a)&&(e+=":"+_(n,2),a))){for(var i=4;a%10==0;)i-=1,a/=10;e+="."+_(a,i)}return e}exports.ms2DateTime=function(e,t,a){if("number"!=typeof e||!(e>=r&&e<=n))return c;t||(t=0);var i,o,s,y,v,x,_=Math.floor(10*l(e+.05,1)),M=Math.round(e-_/10);if(b(a)){var S=Math.floor(M/d)+p,L=Math.floor(l(e,d));try{i=g.getComponentMethod("calendars","getCal")(a).fromJD(S).formatDate("yyyy-mm-dd")}catch(e){i=m("G%Y-%m-%d")(new Date(M))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=t=r+d&&e<=n-d))return c;var t=Math.floor(10*l(e+.05,1)),i=new Date(Math.round(e-t/10));return A(a.time.format("%Y-%m-%d")(i),i.getHours(),i.getMinutes(),i.getSeconds(),10*i.getUTCMilliseconds()+t)},exports.cleanDate=function(e,t,r){if(e===c)return t;if(exports.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(b(r))return o.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(!(e=exports.ms2DateTimeLocal(+e))&&void 0!==t)return t}else if(!exports.isDateTime(e,r))return o.error("unrecognized date",e),t;return e};var M=/%\d?f/g;function S(e,t,r,n){e=e.replace(M,(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(b(n))try{e=g.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return r(e)(a)}var L=[59,59.9,59.99,59.999,59.9999];exports.formatDate=function(e,t,r,n,a,o){if(a=b(a)&&a,!t)if("y"===r)t=o.year;else if("m"===r)t=o.month;else{if("d"!==r)return function(e,t){var r=l(e+.05,d),n=_(Math.floor(r/u),2)+":"+_(l(Math.floor(r/f),60),2);if("M"!==t){i(t)||(t=0);var a=(100+Math.min(l(e/h,60),L[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}(e,r)+"\n"+S(o.dayMonthYear,e,n,a);t=o.dayMonth+"\n"+o.year}return S(t,e,n,a)};var O=3*d;exports.incrementMonth=function(e,t,r){r=b(r)&&r;var n=l(e,d);if(e=Math.round(e-n),r)try{var a=Math.round(e/d)+p,i=g.getComponentMethod("calendars","getCal")(r),s=i.fromJD(a);return t%12?i.add(s,t,"m"):i.add(s,t/12,"y"),(s.toJD()-p)*d+n}catch(t){o.error("invalid ms "+e+" in calendar "+r)}var c=new Date(e+O);return c.setUTCMonth(c.getUTCMonth()+t)+n-O},exports.findExactDates=function(e,t){for(var r,n,a=0,o=0,l=0,s=0,c=b(t)&&g.getComponentMethod("calendars","getCal")(t),u=0;u), bold (), italics (),","hyperlinks (). Tags , , "," are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,role:"style",editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:n({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,role:"style",editType:"calc+arraydraw",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use
to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,role:"style",editType:"calc+arraydraw",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"style",editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",role:"style",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans two or more lines","(i.e. `text` contains one or more
HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",role:"style",editType:"arraydraw",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,role:"style",editType:"calc+arraydraw",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",role:"style",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",role:"style",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the size of the end annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},startarrowsize:{valType:"number",min:.3,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the size of the start annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},arrowwidth:{valType:"number",min:.1,role:"style",editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,role:"style",editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the end arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},startstandoff:{valType:"number",min:0,dflt:0,role:"style",editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the start arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the x component of the arrow tail about the arrow head.","If `axref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from right to left (left to right).","If `axref` is an axis, this is an absolute value on that axis,","like `x`, NOT a relative value."].join(" ")},ay:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the y component of the arrow tail about the arrow head.","If `ayref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from bottom to top (top to bottom).","If `ayref` is an axis, this is an absolute value on that axis,","like `y`, NOT a relative value."].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.x.toString()],role:"info",editType:"calc",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ax` is a relative offset in pixels ","from `x`. If set to an x axis id (e.g. *x* or *x2*), `ax` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.y.toString()],role:"info",editType:"calc",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ay` is a relative offset in pixels ","from `y`. If set to a y axis id (e.g. *y* or *y2*), `ay` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},xref:{valType:"enumerated",values:["paper",a.idRegex.x.toString()],role:"info",editType:"calc",description:["Sets the annotation's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where 0 (1) corresponds to the left (right) side."].join(" ")},x:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",role:"info",editType:"calc+arraydraw",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,role:"style",editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",a.idRegex.y.toString()],role:"info",editType:"calc",description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where 0 (1) corresponds to the bottom (top)."].join(" ")},y:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",editType:"calc+arraydraw",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,role:"style",editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,role:"style",editType:"arraydraw",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",role:"info",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",role:"info",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",role:"info",editType:"arraydraw",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",editType:"arraydraw",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",role:"style",editType:"arraydraw",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:n({editType:"arraydraw",description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")}),editType:"arraydraw"},captureevents:{valType:"boolean",role:"info",editType:"arraydraw",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},editType:"calc",_deprecated:{ref:{valType:"string",role:"info",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}})},LZ3mZdqo:function(e,exports,t){"use strict";exports.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",role:"style",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")}},LdHlM4it:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("K+tMoKu9");e.exports=function(e,t){function a(a,i){return r.coerce(e,t,n,a,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}},LdzhoiNW:function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("wJP3FIsq");e.exports=function(e,t,a,i){t=t||{};var o="log"===a&&"linear"===t.type,l="linear"===a&&"log"===t.type;if(o||l)for(var s,c,d=e._fullLayout.images,u=t._id.charAt(0),f=0;fi))return t}return void 0!==n?n:e.dflt},exports.coerceColor=function(e,t,r){return n(t).isValid()?t:void 0!==r?r:e.dflt},exports.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==r?r:e.dflt},exports.getValue=function(e,t){var r;return Array.isArray(e)?t/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},n={};!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]))}}(r,n),e.exports={configAttributes:r,dfltConfig:n}},OzUSSj1k:function(e,exports,t){"use strict";var r=['Variables are inserted using %{variable}, for example "y: %{y}".','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".',t("RX8/LKUw").FORMAT_LINK,"for details on the formatting syntax.",'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".',t("RX8/LKUw").DATE_FORMAT_LINK,"for details on the date formatting syntax."].join(" ");function n(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],a=0;a` is displayed in the secondary box, for example "{fullData.name}".',"To hide the secondary box completely, use an empty tag ``."].join(" ")};return!1!==e.arrayOk&&(i.arrayOk=!0),i},exports.texttemplateAttrs=function(e,t){e=e||{};var a=n(t=t||{}),i={valType:"string",role:"info",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",r,"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",a].join(" ")};return!1!==e.arrayOk&&(i.arrayOk=!0),i}},P1XCdGWS:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("CVZcSkmN").EventEmitter,a=t("/1xV6pOg");e.exports=function(e){var t=e.emitter||new n,i=new Promise((function(n,o){var l=window.Image,s=e.svg,c=e.format||"png";if(r.isIE()&&"svg"!==c){var d=new Error(a.MSG_IE_BAD_FORMAT);return o(d),e.promise?i:t.emit("error",d)}var u,f,h=e.canvas,p=e.scale||1,g=e.width||300,m=e.height||150,y=p*g,v=p*m,x=h.getContext("2d"),b=new l;"svg"===c||r.isIE9orBelow()||r.isSafari()?f=a.encodeSVG(s):(u=a.createBlob(s,"svg"),f=a.createObjectURL(u)),h.width=y,h.height=v,b.onload=function(){var r;switch(u=null,a.revokeObjectURL(f),"svg"!==c&&x.drawImage(b,0,0,y,v),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=f;break;default:var i="Image format is not jpeg, png, svg or webp.";if(o(new Error(i)),!e.promise)return t.emit("error",i)}n(r),e.promise||t.emit("success",r)},b.onerror=function(r){if(u=null,a.revokeObjectURL(f),o(r),!e.promise)return t.emit("error",r)},b.src=f}));return e.promise?i:t}},PEbxUAGz:function(e,exports,t){"use strict";var r=t("R5um7Wku"),n=t("E0Erayg3").hover;e.exports=function(e,t,a){var i=r.getComponentMethod("annotations","onClick")(e,e._hoverdata);function o(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==a&&n(e,t,a,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},PM37TqjZ:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("R5um7Wku"),a=t("8MlMO9wt"),i=t("0Ft3SWJB"),o=t("NLf4w7dD"),l=t("/oRevOrA"),s=t("+ELfTWmT"),c=t("xjYqbXs+"),d=t("ElYFxeqq"),u=t("4JfnfFRI"),f=t("kca9bvt+"),h=t("6hRdzyd8"),p=h.enforce,g=h.clean,m=t("IaNOhRG8").doAutoRange;function y(e,t,r){for(var n=0;n=e[1]||a[1]<=e[0])&&(i[0]t[0]))return!0}return!1}function v(e){var t,n,o,c,h,p,g=e._fullLayout,m=g._size,v=m.p,b=u.list(e,"",!0);if(g._paperdiv.style({width:e._context.responsive&&g.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":g.width+"px",height:e._context.responsive&&g.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":g.height+"px"}).selectAll(".main-svg").call(s.setSize,g.width,g.height),e._context.setBackground(e,g.paper_bgcolor),exports.drawMainTitle(e),d.manage(e),!g._has("cartesian"))return a.previousPromises(e);function w(e,t,r){var n=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===r?t._offset-v-n:t._offset+t._length+v+n:m.t+m.h*(1-(e.position||0))+n%1:t?"right"===r?t._offset+t._length+v+n:t._offset-v-n:m.l+m.w*(e.position||0)+n%1}for(t=0;t0)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*h*Math.abs(n-a))}return f}function M(t,r,i){var o=l(t,i||e.calendar);if(o===f){if(!n(t))return f;t=+t;var s=Math.floor(10*a.mod(t+.05,1)),c=Math.round(t-s/10);o=l(new Date(c))+s/10}return o}function S(t,r,n){return o(t,r,n||e.calendar)}function L(t){return e._categories[Math.round(t)]}function O(t){if(k(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 f}function C(t){if(e._categoriesMap)return e._categoriesMap[t]}function z(e){var t=C(e);return void 0!==t?t:n(e)?+e:void 0}function P(e,t,n){return r.round(n+t*e,2)}function D(e,t,r){return(e-r)/t}var I=function(t){return n(t)?P(t,e._m,e._b):f},F=function(t){return D(t,e._m,e._b)};if(e.rangebreaks){var j="y"===T;I=function(t){if(!n(t))return f;var r=e._rangebreaks.length;if(!r)return P(t,e._m,e._b);var a=j;e.range[0]>e.range[1]&&(a=!a);for(var i=a?-1:1,o=i*t,l=0,s=0;sd)){l=o<(c+d)/2?s:s+1;break}l=s+1}var u=e._B[l]||0;return isFinite(u)?P(t,e._m2,u):0},F=function(t){var r=e._rangebreaks.length;if(!r)return D(t,e._m,e._b);for(var n=0,a=0;ae._rangebreaks[a].pmax&&(n=a+1);return D(t,e._m2,e._B[n])}}e.c2l="log"===e.type?A:s,e.l2c="log"===e.type?w:s,e.l2p=I,e.p2l=F,e.c2p="log"===e.type?function(e,t){return I(A(e,t))}:I,e.p2c="log"===e.type?function(e){return w(F(e))}:F,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=i,e.c2d=e.c2r=e.l2d=e.l2r=s,e.d2p=e.r2p=function(t){return e.l2p(i(t))},e.p2d=e.p2r=F,e.cleanPos=s):"log"===e.type?(e.d2r=e.d2l=function(e,t){return A(i(e),t)},e.r2d=e.r2c=function(e){return w(i(e))},e.d2c=e.r2l=i,e.c2d=e.l2r=s,e.c2r=A,e.l2d=w,e.d2p=function(t,r){return e.l2p(e.d2r(t,r))},e.p2d=function(e){return w(F(e))},e.r2p=function(t){return e.l2p(i(t))},e.p2r=F,e.cleanPos=s):"date"===e.type?(e.d2r=e.r2d=a.identity,e.d2c=e.r2c=e.d2l=e.r2l=M,e.c2d=e.c2r=e.l2d=e.l2r=S,e.d2p=e.r2p=function(t,r,n){return e.l2p(M(t,0,n))},e.p2d=e.p2r=function(e,t,r){return S(F(e),t,r)},e.cleanPos=function(t){return a.cleanDate(t,f,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=O,e.r2d=e.c2d=e.l2d=L,e.d2r=e.d2l_noadd=z,e.r2c=function(t){var r=z(t);return void 0!==r?r:e.fraction2r(.5)},e.l2r=e.c2r=s,e.r2l=z,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return L(F(e))},e.r2p=e.d2p,e.p2r=F,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:s(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=L,e.d2r=e.d2l_noadd=z,e.r2c=function(t){var r=z(t);return void 0!==r?r:e.fraction2r(.5)},e.r2c_just_indices=C,e.l2r=e.c2r=s,e.r2l=z,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return L(F(e))},e.r2p=e.d2p,e.p2r=F,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:s(e)},e.setupMultiCategory=function(r){var n,i,o=e._traceIndices,l=t._axisMatchGroups;if(l&&l.length&&0===e._categories.length)for(n=0;nu&&(l[i]=u),l[0]===l[1]){var c=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=c,l[1]+=c}}else a.nestedProperty(e,t).set(o)},e.setScale=function(r){var n=t._size;if(e.overlaying){var a=v.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),d=e.r2l(e[i][1],o),u="y"===T;if((u?(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-d),e._b=-e._m*d):(e._offset=n.l+e.domain[0]*n.w,e._length=n.w*(e.domain[1]-e.domain[0]),e._m=e._length/(d-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,d),Math.max(c,d)),e._rangebreaks.length)){for(l=0;ld&&(f=!f),f&&e._rangebreaks.reverse();var h=f?-1:1;for(e._m2=h*e._length/(Math.abs(d-c)-e._lBreaks),e._B.push(-e._m2*(u?d:c)),l=0;lo&&(o+=7,lo&&(o+=24,l=n&&l=n&&tl.max||nl.max&&(l.max=n),i=!1)}i&&c.push({min:e,max:n})}};for(n=0;n10?e/2:10;return r.append("circle").attr({"data-line-point":"start-point",cx:D?H(i.xanchor)+i.x0:H(i.x0),cy:I?W(i.yanchor)-i.y0:W(i.y0),r:a}).style(n).classed("cursor-grab",!0),r.append("circle").attr({"data-line-point":"end-point",cx:D?H(i.xanchor)+i.x1:H(i.x1),cy:I?W(i.yanchor)-i.y1:W(i.y1),r:a}).style(n).classed("cursor-grab",!0),r}():t,q={element:U.node(),gd:e,prepFn:function(r){D&&(_=H(i.xanchor));I&&(w=W(i.yanchor));"path"===i.type?z=i.path:(y=D?i.x0:H(i.x0),v=I?i.y0:W(i.y0),x=D?i.x1:H(i.x1),b=I?i.y1:W(i.y1));yb?(k=v,S="y0",T=b,L="y1"):(k=b,S="y1",T=v,L="y0");J(r),Y(m,i),function(e,t,r){var n=t.xref,i=t.yref,l=a.getFromId(r,n),s=a.getFromId(r,i),c="";"paper"===n||l.autorange||(c+=n);"paper"===i||s.autorange||(c+=i);o.setClipUrl(e,c?"clip"+r._fullLayout._uid+c:null,r)}(t,i,e),q.moveFn="move"===P?Z:X},doneFn:function(){c(t),Q(m),h(t,e,i),r.call("_guiRelayout",e,R.getUpdateObj())},clickFn:function(){Q(m)}};function J(e){if(F)P="path"===e.target.tagName?"move":"start-point"===e.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var r=q.element.getBoundingClientRect(),n=r.right-r.left,a=r.bottom-r.top,i=e.clientX-r.left,o=e.clientY-r.top,l=!j&&n>10&&a>10&&!e.shiftKey?s.getCursor(i/n,1-o/a):"move";c(t,l),P=l.split("-")[0]}}function Z(r,n){if("path"===i.type){var a=function(e){return e},o=a,l=a;D?E("xanchor",i.xanchor=V(_+r)):(o=function(e){return V(H(e)+r)},B&&"date"===B.type&&(o=u.encodeDate(o))),I?E("yanchor",i.yanchor=G(w+n)):(l=function(e){return G(W(e)+n)},N&&"date"===N.type&&(l=u.encodeDate(l))),E("path",i.path=g(z,o,l))}else D?E("xanchor",i.xanchor=V(_+r)):(E("x0",i.x0=V(y+r)),E("x1",i.x1=V(x+r))),I?E("yanchor",i.yanchor=G(w+n)):(E("y0",i.y0=G(v+n)),E("y1",i.y1=G(b+n)));t.attr("d",p(e,i)),Y(m,i)}function X(r,n){if(j){var a=function(e){return e},o=a,l=a;D?E("xanchor",i.xanchor=V(_+r)):(o=function(e){return V(H(e)+r)},B&&"date"===B.type&&(o=u.encodeDate(o))),I?E("yanchor",i.yanchor=G(w+n)):(l=function(e){return G(W(e)+n)},N&&"date"===N.type&&(l=u.encodeDate(l))),E("path",i.path=g(z,o,l))}else if(F){if("resize-over-start-point"===P){var s=y+r,c=I?v-n:v+n;E("x0",i.x0=D?s:V(s)),E("y0",i.y0=I?c:G(c))}else if("resize-over-end-point"===P){var d=x+r,f=I?b-n:b+n;E("x1",i.x1=D?d:V(d)),E("y1",i.y1=I?f:G(f))}}else{var h=~P.indexOf("n")?k+n:k,R=~P.indexOf("s")?T+n:T,U=~P.indexOf("w")?A+r:A,q=~P.indexOf("e")?M+r:M;~P.indexOf("n")&&I&&(h=k-n),~P.indexOf("s")&&I&&(R=T-n),(!I&&R-h>10||I&&h-R>10)&&(E(S,i[S]=I?h:G(h)),E(L,i[L]=I?R:G(R))),q-U>10&&(E(O,i[O]=D?U:V(U)),E(C,i[C]=D?q:V(q)))}t.attr("d",p(e,i)),Y(m,i)}function Y(e,t){(D||I)&&function(){var r="path"!==t.type,a=e.selectAll(".visual-cue").data([0]);a.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var i=H(D?t.xanchor:n.midRange(r?[t.x0,t.x1]:u.extractPathCoords(t.path,d.paramIsX))),o=W(I?t.yanchor:n.midRange(r?[t.y0,t.y1]:u.extractPathCoords(t.path,d.paramIsY)));if(i=u.roundPositionForSharpStrokeRendering(i,1),o=u.roundPositionForSharpStrokeRendering(o,1),D&&I){var l="M"+(i-1-1)+","+(o-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";a.attr("d",l)}else if(D){var s="M"+(i-1-1)+","+(o-9-1)+"v18 h2 v-18 Z";a.attr("d",s)}else{var c="M"+(i-9-1)+","+(o-1-1)+"h18 v2 h-18 Z";a.attr("d",c)}}()}function Q(e){e.selectAll(".visual-cue").remove()}s.init(q),U.node().onmousemove=J}(e,x,f,t,m)}}function h(e,t,r){var n=(r.xref+r.yref).replace(/paper/g,"");o.setClipUrl(e,n?"clip"+t._fullLayout._uid+n:null,t)}function p(e,t){var r,i,o,l,s,c,f,h,p=t.type,g=a.getFromId(e,t.xref),m=a.getFromId(e,t.yref),y=e._fullLayout._size;if(g?(r=u.shapePositionToRange(g),i=function(e){return g._offset+g.r2p(r(e,!0))}):i=function(e){return y.l+y.w*e},m?(o=u.shapePositionToRange(m),l=function(e){return m._offset+m.r2p(o(e,!0))}):l=function(e){return y.t+y.h*(1-e)},"path"===p)return g&&"date"===g.type&&(i=u.decodeDate(i)),m&&"date"===m.type&&(l=u.decodeDate(l)),function(e,t,r){var a=e.path,i=e.xsizemode,o=e.ysizemode,l=e.xanchor,s=e.yanchor;return a.replace(d.segmentRE,(function(e){var a=0,c=e.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=e.substr(1).replace(d.paramRE,(function(e){return u[a]?e="pixel"===i?t(l)+Number(e):t(e):f[a]&&(e="pixel"===o?r(s)-Number(e):r(e)),++a>h&&(e="X"),e}));return a>h&&(p=p.replace(/[\s,]*X.*/,""),n.log("Ignoring extra params in segment "+e)),c+p}))}(t,i,l);if("pixel"===t.xsizemode){var v=i(t.xanchor);s=v+t.x0,c=v+t.x1}else s=i(t.x0),c=i(t.x1);if("pixel"===t.ysizemode){var x=l(t.yanchor);f=x-t.y0,h=x-t.y1}else f=l(t.y0),h=l(t.y1);if("line"===p)return"M"+s+","+f+"L"+c+","+h;if("rect"===p)return"M"+s+","+f+"H"+c+"V"+h+"H"+s+"Z";var b=(s+c)/2,_=(f+h)/2,w=Math.abs(b-s),k=Math.abs(_-f),T="A"+w+","+k,A=b+w+","+_;return"M"+A+T+" 0 1,1 "+(b+","+(_-k))+T+" 0 0,1 "+A+"Z"}function g(e,t,r){return e.replace(d.segmentRE,(function(e){var n=0,a=e.charAt(0),i=d.paramIsX[a],o=d.paramIsY[a],l=d.numParams[a];return a+e.substr(1).replace(d.paramRE,(function(e){return n>=l||(i[n]?e=t(e):o[n]&&(e=r(e)),n++),e}))}))}e.exports={draw:function(e){var t=e._fullLayout;for(var r in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._plots){var n=t._plots[r].shapelayer;n&&n.selectAll("path").remove()}for(var a=0;a-1,v=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(m)){w(e,t,i);var x=function(e,t){var r,n,a=e[0],i=-1,o=[];for(n=0;n0?function(e,t){var r,n,a,i=[];for(a=0;a0&&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;a1)return!1;if((a+=r.selectedpoints.length)>1)return!1}return 1===a}(l)&&(f=M(x))){for(o&&o.remove(),g=0;g0?"M"+a.join("M")+"Z":"M0,0Z",t.attr("d",n)}function M(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 S(e,t,r){var a,i,o,l;for(a=0;a-1&&v(t,O,l.xaxes,l.yaxes,l.subplot,l,U),"event"===r&&O.emit("plotly_selected",void 0);i.click(O,t)})).catch(o.error)},l.doneFn=function(){J.remove(),s.done(Z).then((function(){s.clear(Z),l.gd.emit("plotly_selected",M),y&&l.selectionDefs&&(y.subtract=G,l.selectionDefs.push(y),l.mergedPolygons.length=0,[].push.apply(l.mergedPolygons,f)),l.doneFnCompleted&&l.doneFnCompleted(X)})).catch(o.error)}},clearSelect:O,selectOnClick:v}},"TbqeDA/2":function(e,exports,t){"use strict";e.exports=function(e,t){if(t instanceof RegExp){for(var r=t.toString(),n=0;nx.length&&a.push(h("unused",i,y.concat(x.length)));var A,M,S,L,O,C=x.length,z=Array.isArray(T);if(z&&(C=Math.min(C,T.length)),2===b.dimensions)for(M=0;Mx[M].length&&a.push(h("unused",i,y.concat(M,x[M].length)));var P=x[M].length;for(A=0;A<(z?Math.min(P,T[M].length):P);A++)S=z?T[M][A]:T,L=v[M][A],O=x[M][A],r.validate(L,S)?O!==L&&O!==+L&&a.push(h("dynamic",i,y.concat(M,A),L,O)):a.push(h("value",i,y.concat(M,A),L))}else a.push(h("array",i,y.concat(M),v[M]));else for(M=0;M1&&p.push(h("object","layout"))),n.supplyDefaults(g);for(var m=g._fullData,y=s.length,v=0;v0?".":"")+i;n.isPlainObject(o)?l(o,t,s,a+1):t(s,i,o)}}))}exports.manageCommandObserver=function(e,t,r,i){var o={},l=!0;t&&t._commandObserver&&(o=t._commandObserver),o.cache||(o.cache={}),o.lookupTable={};var s=exports.hasSimpleAPICommandBindings(e,r,o.lookupTable);if(t&&t._commandObserver){if(s)return o;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,o}if(s){a(e,s,o.cache),o.check=function(){if(l){var t=a(e,s,o.cache);return t.changed&&i&&void 0!==o.lookupTable[t.value]&&(o.disable(),Promise.resolve(i({value:t.value,type:s.type,prop:s.prop,traces:s.traces,index:o.lookupTable[t.value]})).then(o.enable,o.enable)),t.changed}};for(var c=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],d=0;d0?a+=i:t<0&&(a-=i)}return r.inbox(n-t,a-t,b+(a-t)/(a-n)-1)}"h"===m.orientation?(o=n,c=t,d="y",u="x",f=S,h=M):(o=t,c=n,d="x",u="y",h=S,f=M);var L=e[d+"a"],O=e[u+"a"];p=Math.abs(L.r2c(L.range[1])-L.r2c(L.range[0]));var C=r.getDistanceFunction(a,f,h,(function(e){return(f(e)+h(e))/2}));if(r.getClosest(g,C,e),!1!==e.index&&g[e.index].p!==s){v||(k=function(e){return Math.min(_(e),e.p-y.bargroupwidth/2)},T=function(e){return Math.max(w(e),e.p+y.bargroupwidth/2)});var z=g[e.index],P=m.base?z.b+z.s:z.s;e[u+"0"]=e[u+"1"]=O.c2p(z[u],!0),e[u+"LabelVal"]=P;var D=y.extents[y.extents.round(z.p)];return e[d+"0"]=L.c2p(v?k(z):D[0],!0),e[d+"1"]=L.c2p(v?T(z):D[1],!0),e[d+"LabelVal"]=z.p,e.labelLabel=l(L,e[d+"LabelVal"]),e.valueLabel=l(O,e[u+"LabelVal"]),e.spikeDistance=(S(z)+function(e){return A(_(e),w(e))}(z))/2-b,e[d+"Spike"]=L.c2p(z.p,!0),i(z,m,e),e.hovertemplate=m.hovertemplate,e}}function d(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=o(e,t);return a.opacity(r)?r:a.opacity(n)&&i?n:void 0}e.exports={hoverPoints:function(e,t,r,a){var i=c(e,t,r,a);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=d(l,s),n.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}},hoverOnBars:c,getTraceColor:d}},UrKfhgLr:function(e,exports,t){"use strict";var r,n,a,i=t("0JON8+ab").mod;function o(e,t,r,n,a,i,o,l){var s=r-e,c=a-e,d=o-a,u=n-t,f=i-t,h=l-i,p=s*h-d*u;if(0===p)return null;var g=(c*h-d*f)/p,m=(c*u-s*f)/p;return m<0||m>1||g<0||g>1?null:{x:e+s*g,y:t+u*g}}function l(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}exports.segmentsIntersect=o,exports.segmentDistance=function(e,t,r,n,a,i,s,c){if(o(e,t,r,n,a,i,s,c))return 0;var d=r-e,u=n-t,f=s-a,h=c-i,p=d*d+u*u,g=f*f+h*h,m=Math.min(l(d,u,p,a-e,i-t),l(d,u,p,s-e,c-t),l(f,h,g,e-a,t-i),l(f,h,g,r-a,n-i));return Math.sqrt(m)},exports.getTextLocation=function(e,t,o,l){if(e===n&&l===a||(r={},n=e,a=l),r[o])return r[o];var s=e.getPointAtLength(i(o-l/2,t)),c=e.getPointAtLength(i(o+l/2,t)),d=Math.atan((c.y-s.y)/(c.x-s.x)),u=e.getPointAtLength(i(o,t)),f={x:(4*u.x+s.x+c.x)/6,y:(4*u.y+s.y+c.y)/6,theta:d};return r[o]=f,f},exports.clearLocationCache=function(){n=null},exports.getVisibleSegment=function(e,t,r){var n,a,i=t.left,o=t.right,l=t.top,s=t.bottom,c=0,d=e.getTotalLength(),u=d;function f(t){var r=e.getPointAtLength(t);0===t?n=r:t===d&&(a=r);var c=r.xo?r.x-o:0,u=r.ys?r.y-s:0;return Math.sqrt(c*c+u*u)}for(var h=f(c);h;){if((c+=h+r)>u)return;h=f(c)}for(h=f(u);h;){if(c>(u-=h+r))return;h=f(u)}return{min:c,max:u,len:u-c,total:d,isClosed:0===c&&u===d&&Math.abs(n.x-a.x)<.1&&Math.abs(n.y-a.y)<.1}},exports.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,d=e.getPointAtLength(0)[r]>e.getPointAtLength(l)[r]?-1:1,u=0,f=0,h=l;u0?h=a:f=a,u++}return i}},VC0JglZ3:function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("R5um7Wku"),a=t("0Ft3SWJB"),i=t("A5P9b9BX"),o=t("uLuh32aH");e.exports=function(e,t,l,s){var c="error_"+s.axis,d=i.newContainer(t,c),u=e[c]||{};function f(e,t){return a.coerce(u,d,o,e,t)}if(!1!==f("visible",void 0!==u.array||void 0!==u.value||"sqrt"===u.type)){var h=f("type","array"in u?"data":"percent"),p=!0;"sqrt"!==h&&(p=f("symmetric",!(("data"===h?"arrayminus":"valueminus")in u))),"data"===h?(f("array"),f("traceref"),p||(f("arrayminus"),f("tracerefminus"))):"percent"!==h&&"constant"!==h||(f("value"),p||f("valueminus"));var g="copy_"+s.inherit+"style";if(s.inherit)(t["error_"+s.inherit]||{}).visible&&f(g,!(u.color||r(u.thickness)||r(u.width)));s.inherit&&d[g]||(f("color",l),f("thickness"),f("width",n.traceIs(t,"gl3d")?0:4))}}},VGS0kEp2:function(e,exports,t){"use strict";var r=t("9fFWTih4"),n=t("0Ft3SWJB"),a=t("4JfnfFRI"),i=t("n/pWmEhD").extractOpts;e.exports=function(e,t,o,l,s,c){var d,u,f,h,p=e.cd[0],g=p.trace,m=e.xa,y=e.ya,v=p.x,x=p.y,b=p.z,_=p.xCenter,w=p.yCenter,k=p.zmask,T=g.zhoverformat,A=v,M=x;if(!1!==e.index){try{f=Math.round(e.index[1]),h=Math.round(e.index[0])}catch(t){return void n.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(f<0||f>=b[0].length||h<0||h>b.length)return}else{if(r.inbox(t-v[0],t-v[v.length-1],0)>0||r.inbox(o-x[0],o-x[x.length-1],0)>0)return;if(c){var S;for(A=[2*v[0]-v[1]],S=1;S1||0===a.bargap&&0===a.bargroupgap&&!e[0].trace.marker.line.width)&&r.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){h(r.select(this),t[0].trace,e)})),o.getComponentMethod("errorbars","style")(t)},styleTextPoints:p,styleOnSelect:function(e,t,n){var l=t[0].trace;l.selectedpoints?function(e,t,n){a.selectedPointStyle(e.selectAll("path"),t),function(e,t,n){e.each((function(e){var o,l=r.select(this);if(e.selected){o=i.ensureUniformFontSize(n,g(l,e,t,n));var s=t.selected.textfont&&t.selected.textfont.color;s&&(o.color=s),a.font(l,o)}else a.selectedTextStyle(l,t)}))}(e.selectAll("text"),t,n)}(n,l,e):(h(n,l,e),o.getComponentMethod("errorbars","style")(n))},getInsideTextFont:y,getOutsideTextFont:v,getBarColor:b,resizeText:l}},Vyghum2a:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("VDpxHpeA"),a=t("8MlMO9wt"),i=t("R5um7Wku"),o=t("4JfnfFRI"),l=t("WFvnZ06c"),s=t("0Ft3SWJB"),c=t("xE+ZFgwY").extendFlat,d=t("LnvsDkyo"),u=t("+ELfTWmT"),f=t("/oRevOrA"),h=t("xjYqbXs+"),p=t("7k8rh0sJ"),g=t("s48LrSF+").flipScale,m=t("vg6lu/AO"),y=t("kAv/b5aV"),v=t("zSF5pjBO"),x=t("kca9bvt+"),b=x.LINE_SPACING,_=x.FROM_TL,w=x.FROM_BR,k=t("PvkztHxu").cn;e.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+k.colorbar).data(function(e){var t,r,n,a,i=e._fullLayout,o=e.calcdata,l=[];function s(e){return c(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function d(){"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;u0?n>=s:n<=s));a++)n>d&&n0?n>=s:n<=s));a++)n>r[0]&&n1){var X=Math.pow(10,Math.floor(Math.log(Z)/Math.LN10));q*=X*s.roundUp(Z/X,[2,5,10]),(Math.abs(O.start)/O.size+1e-6)%1<2e-6&&(U.tick0=0)}U.dtick=q}U.domain=[W+B,W+j-B],U.setScale(),e.attr("transform","translate("+Math.round(d.l)+","+Math.round(d.t)+")");var Y,Q=e.select("."+k.cbtitleunshift).attr("transform","translate(-"+Math.round(d.l)+",-"+Math.round(d.t)+")"),K=e.select("."+k.cbaxis),ee=0;function te(r,n){var a={propContainer:U,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:l._dfltTitle.colorbar,containerGroup:e.select("."+k.cbtitle)},o="h"===r.charAt(0)?r.substr(1):"h"+r;e.selectAll("."+o+",."+o+"-math-group").remove(),h.draw(i,r,c(a,n||{}))}return s.syncOrAsync([a.previousPromises,function(){if(-1!==["top","bottom"].indexOf(A)){var e,r=d.l+(t.x+R)*d.w,n=U.title.font.size;e="top"===A?(1-(W+j-B))*d.h+d.t+3+.75*n:(1-(W+B))*d.h+d.t-3-.25*n,te(U._id+"title",{attributes:{x:r,y:e,"text-anchor":"start"}})}},function(){if(-1!==["top","bottom"].indexOf(A)){var a=e.select("."+k.cbtitle),l=a.select("text"),c=[-t.outlinewidth/2,t.outlinewidth/2],f=a.select(".h"+U._id+"title-math-group").node(),h=15.6;if(l.node()&&(h=parseInt(l.node().style.fontSize,10)*b),f?(ee=u.bBox(f).height)>h&&(c[1]-=(ee-h)/2):l.node()&&!l.classed(k.jsPlaceholder)&&(ee=u.bBox(l.node()).height),ee){if(ee+=5,"top"===A)U.domain[1]-=ee/d.h,c[1]*=-1;else{U.domain[0]+=ee/d.h;var g=p.lineCount(l);c[1]+=(1-g)*h}a.attr("transform","translate("+c+")"),U.setScale()}}e.selectAll("."+k.cbfills+",."+k.cblines).attr("transform","translate(0,"+Math.round(d.h*(1-U.domain[1]))+")"),K.attr("transform","translate(0,"+Math.round(-d.t)+")");var m=e.select("."+k.cbfills).selectAll("rect."+k.cbfill).data(z);m.enter().append("rect").classed(k.cbfill,!0).style("stroke","none"),m.exit().remove();var y=M.map(U.c2p).map(Math.round).sort((function(e,t){return e-t}));m.each((function(e,a){var o=[0===a?M[0]:(z[a]+z[a-1])/2,a===z.length-1?M[1]:(z[a]+z[a+1])/2].map(U.c2p).map(Math.round);o[1]=s.constrain(o[1]+(o[1]>o[0])?1:-1,y[0],y[1]);var l=r.select(this).attr({x:N,width:Math.max(D,2),y:r.min(o),height:Math.max(r.max(o)-r.min(o),2)});if(t._fillgradient)u.gradient(l,i,t._id,"vertical",t._fillgradient,"fill");else{var c=L(e).replace("e-","");l.attr("fill",n(c).toHexString())}}));var v=e.select("."+k.cblines).selectAll("path."+k.cbline).data(x.color&&x.width?P:[]);v.enter().append("path").classed(k.cbline,!0),v.exit().remove(),v.each((function(e){r.select(this).attr("d","M"+N+","+(Math.round(U.c2p(e))+x.width/2%1)+"h"+D).call(u.lineGroupStyle,x.width,S(e),x.dash)})),K.selectAll("g."+U._id+"tick,path").remove();var _=N+D+(t.outlinewidth||0)/2-("outside"===t.ticks?1:0),w=o.calcTicks(U),T=o.makeTransFn(U),O=o.getTickSigns(U)[2];return o.drawTicks(i,U,{vals:"inside"===U.ticks?o.clipEnds(U,w):w,layer:K,path:o.makeTickPath(U,_,O),transFn:T}),o.drawLabels(i,U,{vals:w,layer:K,transFn:T,labelFns:o.makeLabelFns(U,_)})},function(){if(-1===["top","bottom"].indexOf(A)){var e=U.title.font.size,t=U._offset+U._length/2,n=d.l+(U.position||0)*d.w+("right"===U.side?10+e*(U.showticklabels?1:.5):-10-e*(U.showticklabels?.5:0));te("h"+U._id+"title",{avoid:{selection:r.select(i).selectAll("g."+U._id+"tick"),side:A,offsetLeft:d.l,offsetTop:0,maxShift:l.width},attributes:{x:n,y:t,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}},a.previousPromises,function(){var r=D+t.outlinewidth/2+u.bBox(K.node()).width;if((Y=Q.select("text")).node()&&!Y.classed(k.jsPlaceholder)){var n,o=Q.select(".h"+U._id+"title-math-group").node();n=o&&-1!==["top","bottom"].indexOf(A)?u.bBox(o).width:u.bBox(Q.node()).right-N-d.l,r=Math.max(r,n)}var l=2*t.xpad+r+t.borderwidth+t.outlinewidth/2,s=V-G;e.select("."+k.cbbg).attr({x:N-t.xpad-(t.borderwidth+t.outlinewidth)/2,y:G-E,width:Math.max(l,2),height:Math.max(s+2*E,2)}).call(f.fill,t.bgcolor).call(f.stroke,t.bordercolor).style("stroke-width",t.borderwidth),e.selectAll("."+k.cboutline).attr({x:N,y:G+t.ypad+("top"===A?ee:0),width:Math.max(D,2),height:Math.max(s-2*t.ypad-ee,2)}).call(f.stroke,t.outlinecolor).style({fill:"none","stroke-width":t.outlinewidth});var c=({center:.5,right:1}[t.xanchor]||0)*l;e.attr("transform","translate("+(d.l-c)+","+d.t+")");var h={},p=_[t.yanchor],g=w[t.yanchor];"pixels"===t.lenmode?(h.y=t.y,h.t=s*p,h.b=s*g):(h.t=h.b=0,h.yt=t.y+t.len*p,h.yb=t.y-t.len*g);var m=_[t.xanchor],y=w[t.xanchor];if("pixels"===t.thicknessmode)h.x=t.x,h.l=l*m,h.r=l*y;else{var v=l-D;h.l=v*m,h.r=v*y,h.xl=t.x-t.thickness*m,h.xr=t.x+t.thickness*y}a.autoMargin(i,t._id,h)}],i)}(g,t,e);x&&x.then&&(e._promises||[]).push(x),e._context.edits.colorbarPosition&&function(e,t,r){var n,a,o,s=r._fullLayout._size;l.init({element:e.node(),gd:r,prepFn:function(){n=e.attr("transform"),d(e)},moveFn:function(r,i){e.attr("transform",n+" translate("+r+","+i+")"),a=l.align(t._xLeftFrac+r/s.w,t._thickFrac,0,1,t.xanchor),o=l.align(t._yBottomFrac-i/s.h,t._lenFrac,0,1,t.yanchor);var c=l.getCursor(a,o,t.xanchor,t.yanchor);d(e,c)},doneFn:function(){if(d(e),void 0!==a&&void 0!==o){var n={};n[t._propPrefix+"x"]=a,n[t._propPrefix+"y"]=o,void 0!==t._traceIndex?i.call("_guiRestyle",r,n,t._traceIndex):i.call("_guiRelayout",r,n)}}})}(g,t,e)})),t.exit().each((function(t){a.autoMargin(e,t._id)})).remove(),t.order()}}},WFvnZ06c:function(e,exports,t){"use strict";var r=t("jwlPSdji"),n=t("7rWsZTkl"),a=t("uORtHUsV"),i=t("0Ft3SWJB").removeElement,o=t("Vq8+Ip3e"),l=e.exports={};l.align=t("fX4OMiqf"),l.getCursor=t("Re/WlV4b");var s=t("jGgz+pfT");function c(){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 d(e){return r(e.changedTouches?e.changedTouches[0]:e,document.body)}l.unhover=s.wrapped,l.unhoverRaw=s.raw,l.init=function(e){var t,r,s,u,f,h,p,g,m=e.gd,y=1,v=m._context.doubleClickDelay,x=e.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=_,a?(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)v&&(y=Math.max(y-1,1)),m._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(y,h),!g){var r;try{r=new MouseEvent("click",t)}catch(e){var a=d(t);(r=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,a[0],a[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}p.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=c},WHVwkmN9:function(e,exports,t){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},WoUvVyRa:function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("jGt2471r"),a=t("jKiUIMfn");function i(e,t){return et}function s(e,t){return e>=t}exports.findBin=function(e,t,a){if(r(t.start))return a?Math.ceil((e-t.start)/t.size-1e-9)-1:Math.floor((e-t.start)/t.size+1e-9);var c,d,u=0,f=t.length,h=0,p=f>1?(t[f-1]-t[0])/(f-1):1;for(d=p>=0?a?i:o:a?s:l,e+=1e-9*p*(a?-1:1)*(p>=0?1:-1);u90&&n.log("Long binary search..."),u-1},exports.sorterAsc=function(e,t){return e-t},exports.sorterDes=function(e,t){return t-e},exports.distinctVals=function(e){var t=e.slice();t.sort(exports.sorterAsc);for(var r=t.length-1,n=t[r]-t[0]||1,a=n/(r||1)/1e4,i=[t[0]],o=0;ot[o]+a&&(n=Math.min(n,t[o+1]-t[o]),i.push(t[o+1]));return{vals:i,minDiff:n}},exports.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;a0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()},exports.findIndexOfMin=function(e,t){t=t||a;for(var r,n=1/0,i=0;i-1&&(u[h[n]].title={text:""});for(n=0;nk?u.push({code:"unused",traceType:v,templateCount:w,dataCount:k}):k>w&&u.push({code:"reused",traceType:v,templateCount:w,dataCount:k})}}else u.push({code:"data"});if(function e(t,r){for(var a in t)if("_"!==a.charAt(0)){var i=t[a],o=p(t,a,r);n(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&u.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&g(i)&&e(i,o)}}({data:h,layout:f},""),u.length)return u.map(m)}},XLNBrVO3:function(e,exports,t){var r=t("tz4yzA4w");e.exports=function(e,t,n){function a(e,t,r){return{id:n?n.segmentId():-1,start:e,end:t,myFill:{above:r.myFill.above,below:r.myFill.below},otherFill:null}}var i=r.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 n=function(e,t){var n=r.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return o(n,e.end),n}(e,t);return function(e,t,n){var a=r.node({isStart:!1,pt:t.end,seg:t,primary:n,other:e,status:null});e.other=a,o(a,e.pt)}(n,e,t),n}function s(e,t){var r=a(t,e.seg.end,e.seg);return function(e,t){n&&n.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,o(e.other,e.pt)}(e,t),l(r,e.primary)}function c(a,o){var l=r.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)||t.pointAboveOrOnLine(o,l,s)?1:-1:t.pointAboveOrOnLine(i,l,s)?1:-1)>0}))}function d(e,r){var a=e.seg,i=r.seg,o=a.start,l=a.end,c=i.start,d=i.end;n&&n.checkIntersection(a,i);var u=t.linesIntersect(o,l,c,d);if(!1===u){if(!t.pointsCollinear(o,l,c))return!1;if(t.pointsSame(o,d)||t.pointsSame(l,c))return!1;var f=t.pointsSame(o,c),h=t.pointsSame(l,d);if(f&&h)return r;var p=!f&&t.pointBetween(o,c,d),g=!h&&t.pointBetween(l,c,d);if(f)return g?s(r,l):s(e,d),r;p&&(h||(g?s(r,l):s(e,d)),s(r,o))}else 0===u.alongA&&(-1===u.alongB?s(e,c):0===u.alongB?s(e,u.pt):1===u.alongB&&s(e,d)),0===u.alongB&&(-1===u.alongA?s(r,o):0===u.alongA?s(r,u.pt):1===u.alongA&&s(r,l));return!1}for(var u=[];!i.isEmpty();){var f=i.getHead();if(n&&n.vert(f.pt[0]),f.isStart){n&&n.segmentNew(f.seg,f.primary);var h=c(f),p=h.before?h.before.ev:null,g=h.after?h.after.ev:null;function m(){if(p){var e=d(f,p);if(e)return e}return!!g&&d(f,g)}n&&n.tempStatus(f.seg,!!p&&p.seg,!!g&&g.seg);var y,v=m();if(v){var x;if(e)(x=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below)&&(v.seg.myFill.above=!v.seg.myFill.above);else v.seg.otherFill=f.seg.myFill;n&&n.segmentUpdate(v.seg),f.other.remove(),f.remove()}if(i.getHead()!==f){n&&n.rewind(f.seg);continue}if(e)x=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below,f.seg.myFill.below=g?g.seg.myFill.above:a,f.seg.myFill.above=x?!f.seg.myFill.below:f.seg.myFill.below;else if(null===f.seg.otherFill)y=g?f.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:f.primary?o:a,f.seg.otherFill={above:y,below:y};n&&n.status(f.seg,!!p&&p.seg,!!g&&g.seg),f.other.status=h.insert(r.node({ev:f}))}else{var b=f.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)&&d(b.prev.ev,b.next.ev),n&&n.statusRemove(b.ev.seg),b.remove(),!f.primary){var _=f.seg.myFill;f.seg.myFill=f.seg.otherFill,f.seg.otherFill=_}u.push(f.seg)}i.getHead().remove()}return n&&n.done(),u}return e?{addRegion:function(e){for(var r,a,i,o=e[e.length-1],s=0;sw,A=o.barLength+2*o.barPad,M=o.barWidth+2*o.barPad,S=p,L=m+y;L+M>c&&(L=c-M);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(n.fill,o.barColor),T?(this.hbar=O.attr({rx:o.barRadius,ry:o.barRadius,x:S,y:L,width:A,height:M}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var C=y>k,z=o.barWidth+2*o.barPad,P=o.barLength+2*o.barPad,D=p+g,I=m;D+z>s&&(D=s-z);var F=this.container.selectAll("rect.scrollbar-vertical").data(C?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-vertical",!0).call(n.fill,o.barColor),C?(this.vbar=F.attr({rx:o.barRadius,ry:o.barRadius,x:D,y:I,width:z,height:P}),this._vbarYMin=I+P/2,this._vbarTranslateMax=k-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,R=d-.5,E=C?u+z+.5:u+.5,B=f-.5,N=T?h+M+.5:h+.5,H=l._topdefs.selectAll("#"+j).data(T||C?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",j).append("rect"),T||C?(this._clipRect=H.select("rect").attr({x:Math.floor(R),y:Math.floor(B),width:Math.ceil(E)-Math.floor(R),height:Math.ceil(N)-Math.floor(B)}),this.container.call(a.setClipUrl,j,this.gd),this.bg.attr({x:p,y:m,width:g,height:y})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),T||C){var W=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(W);var V=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(V),C&&this.vbar.on(".drag",null).call(V)}this.setTranslate(t,i)},o.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.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)},o.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=r.event.dx),this.vbar&&(t-=r.event.dy),this.setTranslate(e,t)},o.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=r.event.deltaY),this.vbar&&(t+=r.event.deltaY),this.setTranslate(e,t)},o.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,a=n+this._hbarTranslateMax;e=(i.constrain(r.event.x,n,a)-n)/(a-n)*(this.position.w-this._box.w)}if(this.vbar){var o=t+this._vbarYMin,l=o+this._vbarTranslateMax;t=(i.constrain(r.event.y,o,l)-o)/(l-o)*(this.position.h-this._box.h)}this.setTranslate(e,t)},o.prototype.setTranslate=function(e,t){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(e=i.constrain(e||0,0,r),t=i.constrain(t||0,0,n),this.translateX=e,this.translateY=t,this.container.call(a.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 o=e/r;this.hbar.call(a.setTranslate,e+o*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(a.setTranslate,e,t+l*this._vbarTranslateMax)}}},YBg4gvmH:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("+ELfTWmT"),a=t("4JfnfFRI"),i=t("nfwe4Djo");e.exports=function(e){var t,o,l=e._fullLayout,s=[],c={},d=[];for(o=0;o=n.max)t=j[r+1];else if(e=n.pmax)t=j[r+1];else if(e0?i:o)/(L._m*z*(L._m>0?i:o)))),l*=1e3}if(s===n){if(C&&(s=L.c2p(a.y,!0)),s===n)return!1;s*=1e3}return[l,s]}function G(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&&cne||e[1]ie)return[c(e[0],re,ne),c(e[1],ae,ie)]}function se(e,t){return e[0]===t[0]&&(e[0]===re||e[0]===ne)||(e[1]===t[1]&&(e[1]===ae||e[1]===ie)||void 0)}function ce(e,t,r){return function(n,a){var i=le(n),o=le(a),s=[];if(i&&o&&se(i,o))return s;i&&s.push(i),o&&s.push(o);var c=2*l.constrain((n[e]+a[e])/2,t,r)-((i||n)[e]+(o||a)[e]);c&&((i&&o?c>0==i[e]>o[e]?i:o:i||o)[e]+=c);return s}}function de(e){var t=e[0],r=e[1],n=t===H[W-1][0],a=r===H[W-1][1];if(!n||!a)if(W>1){var i=t===H[W-2][0],o=r===H[W-2][1];n&&(t===re||t===ne)&&i?o?W--:H[W-1]=e:a&&(r===ae||r===ie)&&o?i?W--:H[W-1]=e:H[W++]=e}else H[W++]=e}function ue(e){H[W-1][0]!==e[0]&&H[W-1][1]!==e[1]&&de([X,Y]),de(e),Q=null,X=Y=0}function fe(e){if(A=e[0]/z,M=e[1]/P,J=e[0]ne?ne:0,Z=e[1]ie?ie:0,J||Z){if(W)if(Q){var t=ee(Q,e);t.length>1&&(ue(t[0]),H[W++]=t[1])}else K=ee(H[W-1],e)[0],H[W++]=K;else H[W++]=[J||e[0],Z||e[1]];var r=H[W-1];J&&Z&&(r[0]!==J||r[1]!==Z)?(Q&&(X!==J&&Y!==Z?de(X&&Y?(n=Q,i=(a=e)[0]-n[0],o=(a[1]-n[1])/i,(n[1]*a[0]-a[1]*n[0])/i>0?[o>0?re:ne,ie]:[o>0?ne:re,ae]):[X||J,Y||Z]):X&&Y&&de([X,Y])),de([J,Z])):X-J&&Y-Z&&de([J||X,Z||Y]),Q=e,X=J,Y=Z}else Q&&ue(ee(Q,e)[0]),H[W++]=e;var n,a,i,o}for("linear"===F||"spline"===F?ee=function(e,t){for(var r=[],n=0,a=0;a<4;a++){var i=oe[a],o=s(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&&q(o,e)U(p,he))break;u=p,(_=y[0]*m[0]+y[1]*m[1])>x?(x=_,f=p,g=!1):_=e.length||!p)break;fe(p),a=p}}else fe(f)}Q&&de([X||Q[0],Y||Q[1]]),E.push(H.slice(0,W))}return E}},ZGlDDGbb:function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("0Ft3SWJB"),a=t("G7pMMARu"),i=t("qxp2i9QF").defaults,o=t("jOyGAhAZ").handleText;function l(e,t){var a=Array.isArray(e),i=n.isArrayOrTypedArray(t),o=Math.min(a?e.length:1/0,i?t.length:1/0);if(isFinite(o)||(o=0),o&&i){for(var l,s=0;s0){l=!0;break}}l||(o=0)}return{hasLabels:a,hasValues:i,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(e,t,r,s){function c(r,i){return n.coerce(e,t,a,r,i)}var d=l(c("labels"),c("values")),u=d.len;if(t._hasLabels=d.hasLabels,t._hasValues=d.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),u){t._length=u,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var f,h=c("text"),p=c("texttemplate");if(p||(f=c("textinfo",Array.isArray(h)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),p||f&&"none"!==f){var g=c("textposition");o(e,t,s,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&c("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&c("insidetextorientation")}i(t,s,c);var m=c("hole");if(c("title.text")){var y=c("title.position",m?"middle center":"top center");m||"middle center"!==y||(t.title.position="top center"),n.coerceFont(c,"title.font",s.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else t.visible=!1}}},ZPYyNz95:function(e,exports,t){"use strict";var r=t("R5um7Wku"),n=t("0Ft3SWJB").isArrayOrTypedArray;e.exports=function(e,t,a,i,o,l){var s,c,d,u=[],f=r.traceIs(e,"contour"),h=r.traceIs(e,"histogram"),p=r.traceIs(e,"gl2d");if(n(t)&&t.length>1&&!h&&"category"!==l.type){var g=t.length;if(!(g<=o))return f?t.slice(0,o):t.slice(0,o+1);if(f||p)u=t.slice(0,o);else if(1===o)u=[t[0]-.5,t[0]+.5];else{for(u=[1.5*t[0]-.5*t[1]],d=1;d0||r.explicitOff.length>0},onClick:function(e,t){var o,l,s=i(e,t),c=s.on,d=s.off.concat(s.explicitOff),u={},f=e._fullLayout.annotations;if(!c.length&&!d.length)return;for(o=0;og&&(y=Math.max(y,Math.abs(e[i][o]-p)/(m-g))))}return y}e.exports=function(e,t){var n,o=1;for(i(e,t),n=0;n.01;n++)o=i(e,t,a(o));return o>.01&&r.log("interp2d didn't converge quickly",o),e}},bz6mKfuP:function(e,exports,t){"use strict";var r=t("lf8+9Xc7"),n=t("3dGlwK5L"),a=t("xE+ZFgwY").extendDeepAll,i=t("Oq1Cqb7p").overrideAll,o=t("HlG8UEh+"),l=t("A5P9b9BX").templatedArray,s=t("GEN9BI7z"),c=l("step",{visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this step is included in the slider."].join(" ")},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the slider"},value:{valType:"string",role:"info",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});e.exports=i(l("slider",{visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",role:"info",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:c,lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the x position (in normalized coordinates) of the slider."},pad:a(n({editType:"arraydraw"}),{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",role:"info",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:o.transition.easing.values,role:"info",dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",role:"info",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,role:"info",description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:r({description:"Sets the font of the current value label text."})},font:r({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",role:"style",dflt:s.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:s.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:s.railBorderColor,role:"style",description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:s.railBorderWidth,role:"style",description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:s.tickLength,role:"style",description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:s.tickColor,role:"style",description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:s.minorTickLength,role:"style",description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")},"cCyvnl/b":function(e,exports,t){"use strict";e.exports=t("d82zWuQF")},cotHwVXk:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("4JfnfFRI"),a=t("JdrF9yG0"),i=t("IXuaY1uE"),o=t("L1qB4u9y");function l(e,t,a){function l(n,a){return r.coerce(e,t,o,n,a)}var s=l("visible"),c=l("clicktoshow");if(s||c){i(e,t,a,l);for(var d=t.showarrow,u=["x","y"],f=[-10,-30],h={_fullLayout:a},p=0;p<2;p++){var g=u[p],m=n.coerceRef(e,t,h,g,"","paper");if("paper"!==m)n.getFromId(h,m)._annIndices.push(t._index);if(n.coercePosition(t,h,l,m,g,.5),d){var y="a"+g,v=n.coerceRef(e,t,h,y,"pixel");"pixel"!==v&&v!==m&&(v=t[y]="pixel");var x="pixel"===v?f[p]:.4;n.coercePosition(t,h,l,v,y,x)}l(g+"anchor"),l(g+"shift")}if(r.noneOrAll(e,t,["x","y"]),d&&r.noneOrAll(e,t,["ax","ay"]),c){var b=l("xclick"),_=l("yclick");t._xclick=void 0===b?t.x:n.cleanPosition(b,h,t.xref),t._yclick=void 0===_?t.y:n.cleanPosition(_,h,t.yref)}}}e.exports=function(e,t){a(e,t,{name:"annotations",handleItemDefaults:l})}},cscO2DHv:function(e,exports,t){"use strict";var r=t("0Ft3SWJB");exports.formatPiePercent=function(e,t){var n=(100*e).toPrecision(3);return-1!==n.lastIndexOf(".")&&(n=n.replace(/[.]?0+$/,"")),r.numSeparate(n,t)+"%"},exports.formatPieValue=function(e,t){var n=e.toPrecision(10);return-1!==n.lastIndexOf(".")&&(n=n.replace(/[.]?0+$/,"")),r.numSeparate(n,t)},exports.getFirstFilled=function(e,t){if(Array.isArray(e))for(var r=0;r=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,n={};for(e in h(n,i),r.subplotsRegistry){if((t=r.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a=s.length)return!1;i=(n=(r.transformsRegistry[s[d].type]||{}).attributes)&&n[t[2]],l=3}else if("area"===e.type)i=c[o];else{var u=e._module;if(u||(u=(r.modules[e.type||a.type.dflt]||{})._module),!u)return!1;if(!(i=(n=u.attributes)&&n[o])){var f=u.basePlotModule;f&&f.attributes&&(i=f.attributes[o])}i||(i=a[o])}return x(i,t,l)},exports.getLayoutValObject=function(e,t){return x(function(e,t){var n,a,o,l,s=e._basePlotModules;if(s){var c;for(n=0;na.max?t.set(n):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,n,a){e%1||!r(e)||void 0!==a.min&&ea.max?t.set(n):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],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:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,r){n(e).isValid()?t.set(e):t.set(r)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){Array.isArray(e)&&e.length&&e.every((function(e){return n(e).isValid()}))?t.set(e):t.set(r)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(i.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){t.set(i.get(e,r))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?t.set(c(+e,360)):t.set(n)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(e,t,r,n){var a=n.regex||s(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&&!!s(r).test(e)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,r,n){if("string"==typeof e)if(-1===(n.extras||[]).indexOf(e)){for(var a=e.split("+"),i=0;i4/3-l?o:l}},"fa9voUu+":function(e,exports,t){"use strict";e.exports={attributes:t("msRxLST1"),layoutAttributes:t("IOfsZqdi"),supplyDefaults:t("jOyGAhAZ").supplyDefaults,crossTraceDefaults:t("jOyGAhAZ").crossTraceDefaults,supplyLayoutDefaults:t("bC7Gw71F"),calc:t("lMsElyWC"),crossTraceCalc:t("i6LEMeab").crossTraceCalc,colorbar:t("WHVwkmN9"),arraysToCalcdata:t("QwKhVvvj"),plot:t("E+KwxggA").plot,style:t("Vs67SwPF").style,styleOnSelect:t("Vs67SwPF").styleOnSelect,hoverPoints:t("Uq+I87MH").hoverPoints,eventData:t("fjTE3x/z"),selectPoints:t("y9T6CtE5"),moduleType:"trace",name:"bar",basePlotModule:t("42xT/S4m"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{description:["The data visualized by the span of the bars is set in `y`","if `orientation` is set th *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}},fhYYOvxE:function(e,exports,t){"use strict";var r=t("mi7jljcm").dot,n=t("46lPXjlm").BADNUM,a=e.exports={};a.tester=function(e){var t,r=e.slice(),a=r[0][0],i=a,o=r[0][1],l=o;for(r.push(r[0]),t=1;ti||c===n||cl)&&(!t||!s(e))}:function(e,t){var s=e[0],c=e[1];if(s===n||si||c===n||cl)return!1;var d,u,f,h,p,g=r.length,m=r[0][0],y=r[0][1],v=0;for(d=1;dMath.max(u,m)||c>Math.max(f,y)))if(cd||Math.abs(r(o,f))>a)return!0;return!1},a.filter=function(e,t){var r=[e[0]],n=0,i=0;function o(o){e.push(o);var l=r.length,s=n;r.splice(i+1);for(var c=s+1;c1&&o(e.pop());return{addPt:o,raw:e,filtered:r}}},"fjTE3x/z":function(e,exports,t){"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}},fuud1Mda:function(e,exports,t){"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:t("3oxsHAjo")}}},layoutAttributes:t("3oxsHAjo"),handleDefaults:t("GFRpkpH7"),draw:t("eEVZOYEb")}},"gfz/NZnA":function(e,exports,t){"use strict";var r=t("kca9bvt+").FROM_BL;e.exports=function(e,t,n){void 0===n&&(n=r[e.constraintoward||"center"]);var a=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=a[0]+(a[1]-a[0])*n;e.range=e._input.range=[e.l2r(i+(a[0]-i)*t),e.l2r(i+(a[1]-i)*t)]}},gx2D5Jbc:function(e,exports,t){"use strict";var r=t("/8dZfPfB");e.exports=function(e,t){var n=e._name,a={};if("all"===t.step)a[n+".autorange"]=!0;else{var i=function(e,t){var n,a=e.range,i=new Date(e.r2l(a[1])),o=t.step,l=t.count;switch(t.stepmode){case"backward":n=e.l2r(+r.time[o].utc.offset(i,-l));break;case"todate":var s=r.time[o].utc.offset(i,-l);n=e.l2r(+r.time[o].utc.ceil(s))}var c=a[1];return[n,c]}(e,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a}},"h93+eFZa":function(e,exports,t){"use strict";e.exports={attributes:t("G7pMMARu"),supplyDefaults:t("ZGlDDGbb").supplyDefaults,supplyLayoutDefaults:t("LdHlM4it"),layoutAttributes:t("K+tMoKu9"),calc:t("QeXGuGcX").calc,crossTraceCalc:t("QeXGuGcX").crossTraceCalc,plot:t("hiPtikdV").plot,style:t("Q/CxhveK"),styleOne:t("4R47EHYh"),moduleType:"trace",name:"pie",basePlotModule:t("+ulG1EUY"),categories:["pie-like","pie","showLegend"],meta:{description:["A data visualized by the sectors of the pie is set in `values`.","The sector labels are set in `labels`.","The sector colors are set in `marker.colors`"].join(" ")}}},hdoc7R6p:function(e,exports,t){"use strict";var r=t("nXHY852p").list,n=t("IaNOhRG8").getAutoRange,a=t("eWxD8Nou");e.exports=function(e){for(var t=r(e,"x",!0),i=0;i"),name:d.hovertemplate||-1!==u.indexOf("name")?d.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:h.castOption(b.bgcolor,e.pts)||e.color,borderColor:h.castOption(b.bordercolor,e.pts),fontFamily:h.castOption(_.family,e.pts),fontSize:h.castOption(_.size,e.pts),fontColor:h.castOption(_.color,e.pts),nameLength:h.castOption(b.namelength,e.pts),textAlign:h.castOption(b.align,e.pts),hovertemplate:h.castOption(d.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[p(e,d)]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[p(e,d)],event:r.event})}})),e.on("mouseout",(function(e){var n=t._fullLayout,i=t._fullData[o.index],l=r.select(this).datum();o._hasHoverEvent&&(e.originalEvent=r.event,t.emit("plotly_unhover",{points:[p(l,i)],event:r.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(a.loneUnhover(n._hoverlayer.node()),o._hasHoverLabel=!1)})),e.on("click",(function(e){var n=t._fullLayout,i=t._fullData[o.index];t._dragging||!1===n.hovermode||(t._hoverdata=[p(e,i)],a.click(t,r.event))}))}function y(e,t,r){var n=h.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=h.castOption(e._input.textfont.color,t.pts));var a=h.castOption(e.insidetextfont.family,t.pts)||h.castOption(e.textfont.family,t.pts)||r.family,o=h.castOption(e.insidetextfont.size,t.pts)||h.castOption(e.textfont.size,t.pts)||r.size;return{color:n||i.contrast(t.color),family:a,size:o}}function v(e,t){for(var r,n,a=0;at&&t>n||r=-4;m-=2)y(Math.PI*m,"tan");for(m=4;m>=-4;m-=2)y(Math.PI*(m+1),"tan")}if(u||h){for(m=4;m>=-4;m-=2)y(Math.PI*(m+1.5),"rad");for(m=4;m>=-4;m-=2)y(Math.PI*(m+.5),"rad")}}if(l||p||u){var v=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:a*n*2/v,rCenter:1-a,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;g.push(i)}(p||h)&&((i=b(e,n,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i)),(p||f)&&((i=_(e,n,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i));for(var x=0,w=0,k=0;k=1)break}return g[x]}function b(e,t,r,n,a){t=Math.max(0,t-2*f);var i=e.width/e.height,o=T(i,n,t,r);return{scale:2*o/e.height,rCenter:w(i,o/t),rotate:k(a)}}function _(e,t,r,n,a){t=Math.max(0,t-2*f);var i=e.height/e.width,o=T(i,n,t,r);return{scale:2*o/e.width,rCenter:w(i,o/t),rotate:k(a+Math.PI/2)}}function w(e,t){return Math.cos(t)-e*t}function k(e){return(180/Math.PI*e+720)%180-90}function T(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 A(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function M(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 S(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=O(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,d=(s=e.r,c=e.trace.aspectratio,s/(void 0===c?1:c)),u=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(u+=d,o.x-=(1+a)*d,l.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?u*=2:-1!==i.title.position.indexOf("right")&&(u+=d,o.x+=(1+a)*d,l.tx-=e.titleBox.width/2),r=u/e.titleBox.width,n=L(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:l.tx,ty:l.ty}}function L(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 O(e){var t,r=e.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function C(e,t){for(var r=[],n=0;n1?(c=r.r,d=c/a.aspectratio):(d=r.r,c=d*a.aspectratio),c*=(1+a.baseratio)/2,s=c*d}o=Math.min(o,s/r.vTotal)}for(n=0;n")}if(i){var x=l.castOption(a,t.i,"texttemplate");if(x){var b=function(e){return{label:e.label,value:e.v,valueLabel:h.formatPieValue(e.v,n.separators),percent:e.v/r.vTotal,percentLabel:h.formatPiePercent(e.v/r.vTotal,n.separators),color:e.color,text:e.text,customdata:l.castOption(a,e.i,"customdata")}}(t),_=h.getFirstFilled(a.text,t.pts);(g(_)||""===_)&&(b.text=_),t.text=l.texttemplateString(x,b,e._fullLayout._d3locale,b,a._meta||{})}else t.text=""}}function D(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 a=e._fullLayout,c=a._size;u("pie",a),v(t,e),C(t,c);var f=l.makeTraceGroups(a._pielayer,t,"trace").each((function(t){var u=r.select(this),f=t[0],p=f.trace;!function(e){var t,r,n,a=e[0],i=a.r,o=a.trace,l=o.rotation*Math.PI/180,s=2*Math.PI/a.vTotal,c="px0",d="px1";if("counterclockwise"===o.direction){for(t=0;ta.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/a.vTotal,.5),r.ring=1-o.hole,r.rInscribed=A(r,a))}(t),u.attr("stroke-linejoin","round"),u.each((function(){var g=r.select(this).selectAll("g.slice").data(t);g.enter().append("g").classed("slice",!0),g.exit().remove();var v=[[[],[]],[[],[]]],b=!1;g.each((function(n,i){if(n.hidden)r.select(this).selectAll("path,g").remove();else{n.pointNumber=n.i,n.curveNumber=p.index,v[n.pxmid[1]<0?0:1][n.pxmid[0]<0?0:1].push(n);var c=f.cx,u=f.cy,g=r.select(this),_=g.selectAll("path.surface").data([n]);if(_.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),g.call(m,e,t),p.pull){var w=+h.castOption(p.pull,n.pts)||0;w>0&&(c+=w*n.pxmid[0],u+=w*n.pxmid[1])}n.cxFinal=c,n.cyFinal=u;var k=p.hole;if(n.v===f.vTotal){var T="M"+(c+n.px0[0])+","+(u+n.px0[1])+C(n.px0,n.pxmid,!0,1)+C(n.pxmid,n.px0,!0,1)+"Z";k?_.attr("d","M"+(c+k*n.px0[0])+","+(u+k*n.px0[1])+C(n.px0,n.pxmid,!1,k)+C(n.pxmid,n.px0,!1,k)+"Z"+T):_.attr("d",T)}else{var A=C(n.px0,n.px1,!0,1);if(k){var S=1-k;_.attr("d","M"+(c+k*n.px1[0])+","+(u+k*n.px1[1])+C(n.px1,n.px0,!1,k)+"l"+S*n.px0[0]+","+S*n.px0[1]+A+"Z")}else _.attr("d","M"+c+","+u+"l"+n.px0[0]+","+n.px0[1]+A+"Z")}P(e,n,f);var L=h.castOption(p.textposition,n.pts),O=g.selectAll("g.slicetext").data(n.text&&"none"!==L?[0]:[]);O.enter().append("g").classed("slicetext",!0),O.exit().remove(),O.each((function(){var g=l.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),m=l.ensureUniformFontSize(e,"outside"===L?function(e,t,r){var n=h.castOption(e.outsidetextfont.color,t.pts)||h.castOption(e.textfont.color,t.pts)||r.color,a=h.castOption(e.outsidetextfont.family,t.pts)||h.castOption(e.textfont.family,t.pts)||r.family,i=h.castOption(e.outsidetextfont.size,t.pts)||h.castOption(e.textfont.size,t.pts)||r.size;return{color:n,family:a,size:i}}(p,n,a.font):y(p,n,a.font));g.text(n.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(o.font,m).call(s.convertToTspans,e);var v,_=o.bBox(g.node());if("outside"===L)v=M(_,n);else if(v=x(_,n,f),"auto"===L&&v.scale<1){var w=l.ensureUniformFontSize(e,p.outsidetextfont);g.call(o.font,w),v=M(_=o.bBox(g.node()),n)}var k=v.textPosAngle,T=void 0===k?n.pxmid:z(f.r,k);if(v.targetX=c+T[0]*v.rCenter+(v.x||0),v.targetY=u+T[1]*v.rCenter+(v.y||0),D(v,_),v.outside){var A=v.targetY;n.yLabelMin=A-_.height/2,n.yLabelMid=A,n.yLabelMax=A+_.height/2,n.labelExtraX=0,n.labelExtraY=0,b=!0}v.fontSize=m.size,d(p.type,v,a),t[i].transform=v,g.attr("transform",l.getTextTransform(v))}))}function C(e,t,r,a){var i=a*(t[0]-e[0]),o=a*(t[1]-e[1]);return"a"+a*f.r+","+a*f.r+" 0 "+n.largeArc+(r?" 1 ":" 0 ")+i+","+o}}));var _=r.select(this).selectAll("g.titletext").data(p.title.text?[0]:[]);if(_.enter().append("g").classed("titletext",!0),_.exit().remove(),_.each((function(){var t,n=l.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),a=p.title.text;p._meta&&(a=l.templateString(a,p._meta)),n.text(a).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(o.font,p.title.font).call(s.convertToTspans,e),t="middle center"===p.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}}(f):S(f,c),n.attr("transform","translate("+t.x+","+t.y+")"+(t.scale<1?"scale("+t.scale+")":"")+"translate("+t.tx+","+t.ty+")")})),b&&function(e,t){var r,n,a,i,o,l,s,c,d,u,f,p,g;function m(e,t){return e.pxmid[1]-t.pxmid[1]}function y(e,t){return t.pxmid[1]-e.pxmid[1]}function v(e,r){r||(r={});var a,c,d,f,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),g=n?e.yLabelMin:e.yLabelMax,m=n?e.yLabelMax:e.yLabelMin,y=e.cyFinal+o(e.px0[1],e.px1[1]),v=p-g;if(v*s>0&&(e.labelExtraY=v),Array.isArray(t.pull))for(c=0;c=(h.castOption(t.pull,d.pts)||0)||((e.pxmid[1]-d.pxmid[1])*s>0?(v=d.cyFinal+o(d.px0[1],d.px1[1])-g-e.labelExtraY)*s>0&&(e.labelExtraY+=v):(m+e.labelExtraY-y)*s>0&&(a=3*l*Math.abs(c-u.indexOf(e)),(f=d.cxFinal+i(d.px0[0],d.px1[0])+a-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=f)))}for(n=0;n<2;n++)for(a=n?m:y,o=n?Math.max:Math.min,s=n?1:-1,r=0;r<2;r++){for(i=r?Math.max:Math.min,l=r?1:-1,(c=e[n][r]).sort(a),d=e[1-n][r],u=d.concat(c),p=[],f=0;fMath.abs(u)?s+="l"+u*e.pxmid[0]/e.pxmid[1]+","+u+"H"+(o+e.labelExtraX+c):s+="l"+e.labelExtraX+","+d+"v"+(u-d)+"h"+c}else s+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;l.ensureSingle(n,"path","textline").call(i.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})}else n.select("path.textline").remove()}))}(g,p),b&&p.automargin){var w=o.bBox(u.node()),k=p.domain,T=c.w*(k.x[1]-k.x[0]),A=c.h*(k.y[1]-k.y[0]),L=(.5*T-f.r)/c.w,O=(.5*A-f.r)/c.h;n.autoMargin(e,"pie."+p.uid+".automargin",{xl:k.x[0]-L,xr:k.x[1]+L,yb:k.y[0]-O,yt:k.y[1]+O,l:Math.max(f.cx-f.r-w.left,0),r:Math.max(w.right-(f.cx+f.r),0),b:Math.max(w.bottom-(f.cy+f.r),0),t:Math.max(f.cy-f.r-w.top,0),pad:5})}}))}));setTimeout((function(){f.selectAll("tspan").each((function(){var e=r.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:P,transformInsideText:x,determineInsideTextFont:y,positionTitleOutside:S,prerenderTitles:v,layoutAreas:C,attachFxHandlers:m,computeTransform:D}},hjRUfPJm:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("FW/+9MgV"),a=t("v1szbzNU");e.exports=function(e,t){n(e,t,(function(n,i){return r.coerce(e,t,a,n,i)}))}},i1GgYbcZ:function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("0Ft3SWJB"),a=t("4JfnfFRI"),i=t("46lPXjlm").BADNUM,o=t("FAQM5QER"),l=t("SeoPvd/E"),s=t("kh0qQ2F+"),c=t("ArZ24uYa");function d(e,t,r,n,i,l,s){var c=t._length,d=e._fullLayout,u=r._id,f=n._id,g=d._firstScatter[h(t)]===t.uid,m=(p(t,d,r,n)||{}).orientation,y=t.fill;r._minDtick=0,n._minDtick=0;var v={padded:!0},x={padded:!0};s&&(v.ppad=x.ppad=s);var b=c<2||i[0]!==i[c-1]||l[0]!==l[c-1];b&&("tozerox"===y||"tonextx"===y&&(g||"h"===m))?v.tozero=!0:(t.error_y||{}).visible||"tonexty"!==y&&"tozeroy"!==y&&(o.hasMarkers(t)||o.hasText(t))||(v.padded=!1,v.ppad=0),b&&("tozeroy"===y||"tonexty"===y&&(g||"v"===m))?x.tozero=!0:"tonextx"!==y&&"tozerox"!==y||(x.padded=!1),u&&(t._extremes[u]=a.findExtremes(r,i,v)),f&&(t._extremes[f]=a.findExtremes(n,l,x))}function u(e,t){if(o.hasMarkers(e)){var r,i=e.marker,l=1.6*(e.marker.sizeref||1);if(r="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/l),3)}:function(e){return Math.max((e||0)/l,3)},n.isArrayOrTypedArray(i.size)){var s={type:"linear"};a.setConvert(s);for(var c=s.makeCalcdata(e.marker,"size"),d=new Array(t),u=0;uh&&A[m].gap;)m--;for(v=A[m].s,g=A.length-1;g>m;g--)A[g].s=v;for(;h0&&u.s>0||(c=!1)}l._extremes[e._id]=o.findExtremes(e,s,{tozero:!c,padded:!0})}}function m(e){for(var t=e.traces,r=0;ru+c||!r(d))}for(var h=0;h0&&_.s>0||(y=!1)}}g._extremes[e._id]=o.findExtremes(e,m,{tozero:!y,padded:x})}}function v(e){return e._id.charAt(0)}e.exports={crossTraceCalc:function(e,t){for(var r=t.xaxis,n=t.yaxis,a=e._fullLayout,o=e._fullData,l=e.calcdata,s=[],d=[],u=0;uS&&k.splice(S,k.length-S),M.length>S&&M.splice(S,M.length-S);var L=[],O=[],C=[],z="string"==typeof w.size,P="string"==typeof A.size,D=[],I=[],F=z?D:w,j=P?I:A,R=0,E=[],B=[],N=t.histnorm,H=t.histfunc,W=-1!==N.indexOf("density"),V="max"===H||"min"===H?null:0,G=a.count,U=i[N],q=!1,J=[],Z=[],X="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";X&&"count"!==H&&(q="avg"===H,G=a[H]);var Y=w.size,Q=x(w.start),K=x(w.end)+(Q-n.tickIncrement(Q,Y,!1,y))/1e6;for(l=Q;l=0&&h=0&&p1){var t=["LOG:"];for(e=0;e1){var a=[];for(e=0;e"),"long")}},a.warn=function(){var e;if(r.logging>0){var t=["WARN:"];for(e=0;e0){var a=[];for(e=0;e"),"stick")}},a.error=function(){var e;if(r.logging>0){var t=["ERROR:"];for(e=0;e0){var a=[];for(e=0;e"),"stick")}}},jKiUIMfn:function(e,exports,t){"use strict";e.exports=function(e){return e}},jOyGAhAZ:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),n=t("/oRevOrA"),a=t("R5um7Wku"),i=t("0QKf0MkS"),o=t("lMmI2ALB"),l=t("nXHY852p").getAxisGroup,s=t("msRxLST1"),c=r.coerceFont;function d(e,t,r,n){var a=t.orientation,i=t[{v:"x",h:"y"}[a]+"axis"],o=l(r,i)+a,s=r._alignmentOpts||{},c=n("alignmentgroup"),d=s[o];d||(d=s[o]={});var u=d[c];u?u.traces.push(t):u=d[c]={traces:[t],alignmentIndex:Object.keys(d).length,offsetGroups:{}};var f=n("offsetgroup"),h=u.offsetGroups,p=h[f];f&&(p||(p=h[f]={offsetIndex:Object.keys(h).length}),t._offsetIndex=p.offsetIndex)}function u(e,t,n,a,i,o){var l=!(!1===(o=o||{}).moduleHasSelected),s=!(!1===o.moduleHasUnselected),d=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),f=!(!1===o.moduleHasTextangle),h=!(!1===o.moduleHasInsideanchor),p=!!o.hasPathbar,g=Array.isArray(i)||"auto"===i,m=g||"inside"===i,y=g||"outside"===i;if(m||y){var v=c(a,"textfont",n.font),x=r.extendFlat({},v),b=!(e.textfont&&e.textfont.color);if(b&&delete x.color,c(a,"insidetextfont",x),p){var _=r.extendFlat({},v);b&&delete _.color,c(a,"pathbar.textfont",_)}y&&c(a,"outsidetextfont",v),l&&a("selected.textfont.color"),s&&a("unselected.textfont.color"),d&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}m&&h&&a("insidetextanchor")}e.exports={supplyDefaults:function(e,t,l,c){function d(n,a){return r.coerce(e,t,s,n,a)}if(i(e,t,c,d)){d("orientation",t.x&&!t.y?"h":"v"),d("base"),d("offset"),d("width"),d("text"),d("hovertext"),d("hovertemplate");var f=d("textposition");u(e,t,c,d,f,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),o(e,t,d,l,c);var h=(t.marker.line||{}).color,p=a.getComponentMethod("errorbars","supplyDefaults");p(e,t,h||n.defaultLine,{axis:"y"}),p(e,t,h||n.defaultLine,{axis:"x",inherit:"y"}),r.coerceSelectionMarkerOpacity(t,d)}else t.visible=!1},crossTraceDefaults:function(e,t){var n;function a(e){return r.coerce(n._input,n,s,e)}if("group"===t.barmode)for(var i=0;i0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform","translate("+(o-.5*c.gripWidth)+","+t._dims.currentValueTotalHeight+")")}}function M(e,t){var r=e._dims;return r.inputAreaStart+c.stepInset+(r.inputAreaLength-2*c.stepInset)*Math.min(1,Math.max(0,t))}function S(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-c.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*c.stepInset-2*r.inputAreaStart)))}function L(e,t,r){var n=r._dims,l=o.ensureSingle(e,"rect",c.railTouchRectClass,(function(n){n.call(k,t,e,r).style("pointer-events","all")}));l.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,c.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr("opacity",0),i.setTranslate(l,0,n.currentValueTotalHeight)}function O(e,t){var r=t._dims,n=r.inputAreaLength-2*c.railInset,l=o.ensureSingle(e,"rect",c.railRectClass);l.attr({width:n,height:c.railWidth,rx:c.railRadius,ry:c.railRadius,"shape-rendering":"crispEdges"}).call(a.stroke,t.bordercolor).call(a.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),i.setTranslate(l,c.railInset,.5*(r.inputAreaWidth-c.railWidth)+r.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,a=function(e,t){for(var r=e[c.name],n=[],a=0;a0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),n.autoMargin(e,p(t))}if(o.enter().append("g").classed(c.containerClassName,!0).style("cursor","ew-resize"),o.exit().each((function(){r.select(this).selectAll("g."+c.groupClassName).each(l)})).remove(),0!==a.length){var s=o.selectAll("g."+c.groupClassName).data(a,g);s.enter().append("g").classed(c.groupClassName,!0),s.exit().each(l).remove();for(var d=0;dl.duration?(!function(){for(var r={},a=0;a rect").call(i.setTranslate,0,0).call(i.setScale,1,1),e.plot.call(i.setTranslate,t._offset,r._offset).call(i.setScale,1,1);var n=e.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(i.setPointGroupScale,1,1),n.selectAll(".textpoint").call(i.setTextPointsScale,1,1),n.call(i.hideOutsideRangePoints,e)}function m(t,r){var n=t.plotinfo,l=n.xaxis,s=n.yaxis,c=l._length,d=s._length,u=!!t.xr1,f=!!t.yr1,h=[];if(u){var p=a.simpleMap(t.xr0,l.r2l),g=a.simpleMap(t.xr1,l.r2l),m=p[1]-p[0],y=g[1]-g[0];h[0]=(p[0]*(1-r)+r*g[0]-p[0])/(p[1]-p[0])*c,h[2]=c*(1-r+r*y/m),l.range[0]=l.l2r(p[0]*(1-r)+r*g[0]),l.range[1]=l.l2r(p[1]*(1-r)+r*g[1])}else h[0]=0,h[2]=c;if(f){var v=a.simpleMap(t.yr0,s.r2l),x=a.simpleMap(t.yr1,s.r2l),b=v[1]-v[0],_=x[1]-x[0];h[1]=(v[1]*(1-r)+r*x[1]-v[1])/(v[0]-v[1])*d,h[3]=d*(1-r+r*_/b),s.range[0]=l.l2r(v[0]*(1-r)+r*x[0]),s.range[1]=s.l2r(v[1]*(1-r)+r*x[1])}else h[1]=0,h[3]=d;o.drawOne(e,l,{skipTitle:!0}),o.drawOne(e,s,{skipTitle:!0}),o.redrawComponents(e,[l._id,s._id]);var w=u?c/h[2]:1,k=f?d/h[3]:1,T=u?h[0]:0,A=f?h[1]:0,M=u?h[0]/h[2]*c:0,S=f?h[1]/h[3]*d:0,L=l._offset-M,O=s._offset-S;n.clipRect.call(i.setTranslate,T,A).call(i.setScale,1/w,1/k),n.plot.call(i.setTranslate,L,O).call(i.setScale,w,k),i.setPointGroupScale(n.zoomScalePts,1/w,1/k),i.setTextPointsScale(n.zoomScaleTxt,1/w,1/k)}o.redrawComponents(e)}},"kAv/b5aV":function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("0Ft3SWJB");e.exports=function(e,t,a,i){var o,l,s,c,d=i.counterAxes||[],u=i.overlayableAxes||[],f=i.letter,h=i.grid;h&&(l=h._domains[f][h._axisMap[t._id]],o=h._anchors[t._id],l&&(s=h[f+"side"].split(" ")[0],c=h.domain[f]["right"===s||"top"===s?1:0])),l=l||[0,1],o=o||(r(e.position)?"free":d[0]||"free"),s=s||("x"===f?"bottom":"left"),c=c||0,"free"===n.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(d),dflt:o}},"anchor")&&a("position",c),n.coerce(e,t,{side:{valType:"enumerated",values:"x"===f?["bottom","top"]:["left","right"],dflt:s}},"side");var p=!1;if(u.length&&(p=n.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(u),dflt:!1}},"overlaying")),!p){var g=a("domain",l);g[0]>g[1]-1/4096&&(t.domain=l),n.noneOrAll(e.domain,t.domain,l)}return a("layer"),t}},"kca9bvt+":function(e,exports,t){"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"}}},kgrieRGX:function(e,exports,t){"use strict";var r=t("btK4Orgn"),n=t("lHLBDM7v"),a=t("jGt2471r"),i=t("WoUvVyRa").sorterAsc,o=t("R5um7Wku");exports.containerArrayMatch=t("/uZtpOd0");var l=exports.isAddVal=function(e){return"add"===e||r(e)},s=exports.isRemoveVal=function(e){return null===e||"remove"===e};exports.applyContainerArrayChanges=function(e,t,r,c,d){var u=t.astr,f=o.getComponentMethod(u,"supplyLayoutDefaults"),h=o.getComponentMethod(u,"draw"),p=o.getComponentMethod(u,"drawOne"),g=c.replot||c.recalc||f===n||h===n,m=e.layout,y=e._fullLayout;if(r[""]){Object.keys(r).length>1&&a.warn("Full array edits are incompatible with other edits",u);var v=r[""][""];if(s(v))t.set(null);else{if(!Array.isArray(v))return a.warn("Unrecognized full array edit value",u,v),!0;t.set(v)}return!g&&(f(m,y),h(e),!0)}var x,b,_,w,k,T,A,M,S=Object.keys(r).map(Number).sort(i),L=t.get(),O=L||[],C=d(y,u).get(),z=[],P=-1,D=O.length;for(x=0;xO.length-(A?0:1))a.warn("index out of range",u,_);else if(void 0!==T)k.length>1&&a.warn("Insertion & removal are incompatible with edits to the same index.",u,_),s(T)?z.push(_):A?("add"===T&&(T={}),O.splice(_,0,T),C&&C.splice(_,0,{})):a.warn("Unrecognized full object edit value",u,_,T),-1===P&&(P=_);else for(b=0;b=0;x--)O.splice(z[x],1),C&&C.splice(z[x],1);if(O.length?L||t.set(O):t.set(null),g)return!1;if(f(m,y),p!==n){var I;if(-1===P)I=S;else{for(D=Math.max(O.length,D),I=[],x=0;x=P);x++)I.push(_);for(x=P;xg-h?h=g-(p-g):p-g=0?l.colorscale.sequential:l.colorscale.sequentialminus,u._sync("colorscale",o))}},le1xiBFF:function(e,exports,t){"use strict";var r=t("R5um7Wku"),n=t("YnvAs8Q/");e.exports=function(e,t){var a,i,o={},l=[],s=!1,c={},d=0,u=0,f=t._main;function h(e,r){if(""!==e&&n.isGrouped(t))-1===l.indexOf(e)?(l.push(e),s=!0,o[e]=[[r]]):o[e].push([r]);else{var a="~~i"+d;l.push(a),o[a]=[[r]],d++}}for(a=0;aplotly-logomark"}}},m0Wpdmtz:function(e,exports,t){"use strict";var r=t("Zf49CTZG");e.exports={moduleType:"component",name:r.name,layoutAttributes:t("3C3qwmq/"),supplyLayoutDefaults:t("J+WNd9JU"),draw:t("0Ed4c6gV")}},mi7jljcm:function(e,exports,t){"use strict";exports.init2dArray=function(e,t){for(var r=new Array(e),n=0;n2)return c[t]=2|c[t],f.set(e,null);if(u){for(o=t;on.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(e.framework&&e.framework.isPolar)e.framework.undo();else 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=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;rn?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},exports.getAxisGroup=function(e,t){for(var r=e._axisMatchGroups,n=0;n0;t.each((function(t){var u,f=t[0].trace,h=f.error_x||{},p=f.error_y||{};f.ids&&(u=function(e){return e.id});var g=i.hasMarkers(f)&&f.marker.maxdisplayed>0;p.visible||h.visible||(t=[]);var m=r.select(this).selectAll("g.errorbar").data(t,u);if(m.exit().remove(),t.length){h.visible||m.selectAll("path.xerror").remove(),p.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var y=m.enter().append("g").classed("errorbar",!0);d&&y.style("opacity",0).transition().duration(l.duration).style("opacity",1),a.setClipUrl(m,o.layerClipId,e),m.each((function(e){var t=r.select(this),a=function(e,t,r){var a={x:t.c2p(e.x),y:r.c2p(e.y)};void 0!==e.yh&&(a.yh=r.c2p(e.yh),a.ys=r.c2p(e.ys),n(a.ys)||(a.noYS=!0,a.ys=r.c2p(e.ys,!0)));void 0!==e.xh&&(a.xh=t.c2p(e.xh),a.xs=t.c2p(e.xs),n(a.xs)||(a.noXS=!0,a.xs=t.c2p(e.xs,!0)));return a}(e,s,c);if(!g||e.vis){var i,o=t.select("path.yerror");if(p.visible&&n(a.x)&&n(a.yh)&&n(a.ys)){var u=p.width;i="M"+(a.x-u)+","+a.yh+"h"+2*u+"m-"+u+",0V"+a.ys,a.noYS||(i+="m-"+u+",0h"+2*u),!o.size()?o=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):d&&(o=o.transition().duration(l.duration).ease(l.easing)),o.attr("d",i)}else o.remove();var f=t.select("path.xerror");if(h.visible&&n(a.y)&&n(a.xh)&&n(a.xs)){var m=(h.copy_ystyle?p:h).width;i="M"+a.xh+","+(a.y-m)+"v"+2*m+"m0,-"+m+"H"+a.xs,a.noXS||(i+="m0,-"+m+"v"+2*m),!f.size()?f=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):d&&(f=f.transition().duration(l.duration).ease(l.easing)),f.attr("d",i)}else f.remove()}}))}}))}},nfwe4Djo:function(e,exports,t){"use strict";exports.xmlns="http://www.w3.org/2000/xmlns/",exports.svg="http://www.w3.org/2000/svg",exports.xlink="http://www.w3.org/1999/xlink",exports.svgAttrs={xmlns:exports.svg,"xmlns:xlink":exports.xlink}},nuD6RlFT:function(e,exports,t){ /* * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc * @license MIT * @preserve Project Home: https://github.com/voidqk/polybooljs */ var r,n=t("Y3NUXw+c"),a=t("pEIGVlOg"),i=t("XLNBrVO3"),o=t("ipaMYO3e"),l=t("D/sHMWhy"),s=t("zMQrMJO6"),c=!1,d=a();function u(e,t,n){var a=r.segments(e),i=r.segments(t),o=n(r.combine(a,i));return r.polygon(o)}r={buildLog:function(e){return!0===e?c=n():!1===e&&(c=!1),!1!==c&&c.list},epsilon:function(e){return d.epsilon(e)},segments:function(e){var t=i(!0,d,c);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:i(!1,d,c).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:l.union(e.combined,c),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:l.intersect(e.combined,c),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:l.difference(e.combined,c),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:l.differenceRev(e.combined,c),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:l.xor(e.combined,c),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:o(e.segments,d,c),inverted:e.inverted}},polygonFromGeoJSON:function(e){return s.toPolygon(r,e)},polygonToGeoJSON:function(e){return s.fromPolygon(r,d,e)},union:function(e,t){return u(e,t,r.selectUnion)},intersect:function(e,t){return u(e,t,r.selectIntersect)},difference:function(e,t){return u(e,t,r.selectDifference)},differenceRev:function(e,t){return u(e,t,r.selectDifferenceRev)},xor:function(e,t){return u(e,t,r.selectXor)}},"object"==typeof window&&(window.PolyBool=r),e.exports=r},"oOm/nKw3":function(e,exports,t){"use strict";var r=t("0JON8+ab"),n=r.mod,a=r.modHalf,i=Math.PI,o=2*i;function l(e){return Math.abs(e[1]-e[0])>o-1e-14}function s(e,t){return a(t-e,o)}function c(e,t){if(l(t))return!0;var r,a;t[0](a=n(a,o))&&(a+=o);var i=n(e,o),s=i+o;return i>=r&&i<=a||s>=r&&s<=a}function d(e,t,r,n,a,s,c){a=a||0,s=s||0;var d,u,f,h,p,g=l([r,n]);function m(e,t){return[e*Math.cos(t)+a,s-e*Math.sin(t)]}g?(d=0,u=i,f=o):r=a&&e<=i);var a,i},pathArc:function(e,t,r,n,a){return d(null,e,t,r,n,a,0)},pathSector:function(e,t,r,n,a){return d(null,e,t,r,n,a,1)},pathAnnulus:function(e,t,r,n,a,i){return d(e,t,r,n,a,i,1)}}},oXmYuaEE:function(e,exports,t){"use strict";e.exports=function(){var e,t=[],r=-1,n=!1;function a(e,t){return e?(n=!0,e[t](),n=!1,this):this}return{add:function(e){return n||(t.splice(r+1,t.length-r),t.push(e),r=t.length-1),this},setCallback:function(t){e=t},undo:function(){var n=t[r];return n?(a(n,"undo"),r-=1,e&&e(n.undo),this):this},redo:function(){var n=t[r+1];return n?(a(n,"redo"),r+=1,e&&e(n.redo),this):this},clear:function(){t=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r/g),s=0;s=-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)},pointsSameX:function(t,r){return Math.abs(t[0]-r[0])e!=o-a>e&&(i-c)*(a-d)/(o-d)+c-n>e&&(l=!l),i=c,o=d}return l}};return t}},pJrJ3hmH:function(e,exports,t){"use strict";var r=t("i1GgYbcZ");function n(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){var a=t.xaxis,i=t.yaxis,o=a._id+i._id,l=e._fullLayout._scatterStackOpts[o];if(l){var s,c,d,u,f,h,p,g,m,y,v,x,b,_,w,k=e.calcdata;for(var T in l){var A=(y=l[T]).traceIndices;if(A.length){for(v="interpolate"===y.stackgaps,x=y.groupnorm,"v"===y.orientation?(b="x",_="y"):(b="y",_="x"),w=new Array(A.length),s=0;sM[d]&&d=0,m=t.indexOf("end")>=0,y=u.backoff*h+i.standoff,v=f.backoff*p+i.startstandoff;if("line"===d.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},l={x:+e.attr("x2"),y:+e.attr("y2")};var x=o.x-l.x,b=o.y-l.y;if(c=(s=Math.atan2(b,x))+Math.PI,y&&v&&y+v>Math.sqrt(x*x+b*b))return void z();if(y){if(y*y>x*x+b*b)return void z();var _=y*Math.cos(s),w=y*Math.sin(s);l.x+=_,l.y+=w,e.attr({x2:l.x,y2:l.y})}if(v){if(v*v>x*x+b*b)return void z();var k=v*Math.cos(s),T=v*Math.sin(s);o.x-=k,o.y-=T,e.attr({x1:o.x,y1:o.y})}}else if("path"===d.nodeName){var A=d.getTotalLength(),M="";if(A")?"":t.html(e).text()}));return t.remove(),n}(k),k=(k=k.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(s,"'"),n.isIE()&&(k=(k=(k=k.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),k}},qv1FlERR:function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("0Ft3SWJB"),a=t("46lPXjlm").BADNUM;e.exports=function(e,t,i){return!(i=i||{}).noMultiCategory&&(o=e,n.isArrayOrTypedArray(o[0])&&n.isArrayOrTypedArray(o[1]))?"multicategory":function(e,t){for(var a=Math.max(1,(e.length-1)/1e3),i=0,o=0,l={},s=0;s2*o}(e,t)?"date":function(e){for(var t=Math.max(1,(e.length-1)/1e3),r=0,i=0,o={},l=0;l2*r}(e)?"category":function(e){if(!e)return!1;for(var t=0;t0?f+c:c;return{ppad:c,ppadplus:d?p:g,ppadminus:d?g:p}}return{ppad:c}}function c(e,t,r,n,o){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,d,u,f=1/0,h=-1/0,p=n.match(a.segmentRE);for("date"===e.type&&(l=i.decodeDate(l)),s=0;sh&&(h=u)));return h>=f?[f,h]:void 0}}e.exports=function(e){var t=e._fullLayout,i=r.filterVisible(t.shapes);if(i.length&&e._fullData.length)for(var s=0;s=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 D(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]),P(e,t,"currentIndices"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&P(e,r,"newIndices"),void 0!==r&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function I(e,t,r,a,l){!function(e,t,r,n){var a=i.isPlainObject(n);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!i.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 o in P(e,r,"indices"),t){if(!Array.isArray(t[o])||t[o].length!==r.length)throw new Error("attribute "+o+" must be an array of length equal to indices array length");if(a&&(!(o in n)||!Array.isArray(n[o])||n[o].length!==t[o].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,a);for(var s=function(e,t,r,a){var l,s,c,d,u,f=i.isPlainObject(a),h=[];for(var p in Array.isArray(r)||(r=[r]),r=z(r,e.data.length-1),t)for(var g=0;g-1?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 W(e,t,r){if(e=i.getGraphDiv(e),w.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var n={};if("string"==typeof t)n[t]=r;else{if(!i.isPlainObject(t))return i.warn("Relayout fail.",t,r),Promise.reject();n=i.extendFlat({},t)}Object.keys(n).length&&(e.changed=!0);var a=Z(e,n),o=a.flags;o.calc&&(e.calcdata=void 0);var l=[u.previousPromises];o.layoutReplot?l.push(k.layoutReplot):Object.keys(n).length&&(V(e,o,a)||u.supplyDefaults(e),o.legend&&l.push(k.doLegend),o.layoutstyle&&l.push(k.layoutStyles),o.axrange&&G(l,a.rangesAltered),o.ticks&&l.push(k.doTicksRelayout),o.modebar&&l.push(k.doModeBar),o.camera&&l.push(k.doCamera),o.colorbars&&l.push(k.doColorBars),l.push(S)),l.push(u.rehover,u.redrag),s.add(e,W,[e,a.undoit],W,[e,a.redoit]);var c=i.syncOrAsync(l,e);return c&&c.then||(c=Promise.resolve(e)),c.then((function(){return e.emit("plotly_relayout",a.eventData),e}))}function V(e,t,r){var n=e._fullLayout;if(!t.axrange)return!1;for(var a in t)if("axrange"!==a&&t[a])return!1;for(var i in r.rangesAltered){var o=h.id2name(i),l=e.layout[o],s=n[o];if(s.autorange=l.autorange,s.range=l.range.slice(),s.cleanRange(),s._matchGroup)for(var c in s._matchGroup)if(c!==i){var d=n[h.id2name(c)];d.autorange=s.autorange,d.range=s.range.slice(),d._input.range=s.range.slice()}}return!0}function G(e,t){var r=t?function(e){var r=[],n=!0;for(var a in t){var i=h.getFromId(e,a);if(r.push(a),i._matchGroup)for(var o in i._matchGroup)t[o]||r.push(o);i.automargin&&(n=!1)}return h.draw(e,r,{skipTitle:n})}:function(e){return h.draw(e,"redraw")};e.push(x,k.doAutoRangeAndConstraints,r,k.drawData,k.finalDraw)}var U=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,q=/^[xyz]axis[0-9]*\.autorange$/,J=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(e,t){var r,n,a,l=e.layout,s=e._fullLayout,u=s._guiEditing,f=E(s._preGUI,u),p=Object.keys(t),g=h.list(e),m=i.extendDeepAll({},t),y={};for(H(t),p=Object.keys(t),n=0;n0&&"string"!=typeof D.parts[F];)F--;var j=D.parts[F],B=D.parts[F-1]+"."+j,N=D.parts.slice(0,F).join("."),W=o(e.layout,N).get(),V=o(s,N).get(),G=D.get();if(void 0!==I){M[P]=I,S[P]="reverse"===j?I:R(G);var Z=d.getLayoutValObject(s,D.parts);if(Z&&Z.impliedEdits&&null!==I)for(var Y in Z.impliedEdits)L(i.relativeAttr(P,Y),Z.impliedEdits[Y]);if(-1!==["width","height"].indexOf(P))if(I){L("autosize",null);var Q="height"===P?"width":"height";L(Q,s[Q])}else s[P]=e._initialAutoSize[P];else if("autosize"===P)L("width",I?null:s.width),L("height",I?null:s.height);else if(B.match(U))z(B),o(s,N+"._inputRange").set(null);else if(B.match(q)){z(B),o(s,N+"._inputRange").set(null);var K=o(s,N).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else B.match(J)&&o(s,N+"._inputDomain").set(null);if("type"===j){var ee=W,te="linear"===V.type&&"log"===I,re="log"===V.type&&"linear"===I;if(te||re){if(ee&&ee.range)if(V.autorange)te&&(ee.range=ee.range[1]>ee.range[0]?[1,2]:[2,1]);else{var ne=ee.range[0],ae=ee.range[1];te?(ne<=0&&ae<=0&&L(N+".autorange",!0),ne<=0?ne=ae/1e6:ae<=0&&(ae=ne/1e6),L(N+".range[0]",Math.log(ne)/Math.LN10),L(N+".range[1]",Math.log(ae)/Math.LN10)):(L(N+".range[0]",Math.pow(10,ne)),L(N+".range[1]",Math.pow(10,ae)))}else L(N+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[D.parts[0]]&&"radialaxis"===D.parts[1]&&delete s[D.parts[0]]._subplot.viewInitial["radialaxis.range"],c.getComponentMethod("annotations","convertCoords")(e,V,I,L),c.getComponentMethod("images","convertCoords")(e,V,I,L)}else L(N+".autorange",!0),L(N+".range",null);o(s,N+"._inputRange").set(null)}else if(j.match(A)){var ie=o(s,P).get(),oe=(I||{}).type;oe&&"-"!==oe||(oe="linear"),c.getComponentMethod("annotations","convertCoords")(e,ie,oe,L),c.getComponentMethod("images","convertCoords")(e,ie,oe,L)}var le=_.containerArrayMatch(P);if(le){r=le.array,n=le.index;var se=le.property,ce=Z||{editType:"calc"};""!==n&&""===se&&(_.isAddVal(I)?S[P]=null:_.isRemoveVal(I)?S[P]=(o(l,r).get()||[])[n]:i.warn("unrecognized full object value",t)),T.update(k,ce),y[r]||(y[r]={});var de=y[r][n];de||(de=y[r][n]={}),de[se]=I,delete t[P]}else"reverse"===j?(W.range?W.range.reverse():(L(N+".autorange",!0),W.range=[1,0]),V.autorange?k.calc=!0:k.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===P&&("lasso"===I||"select"===I)&&"lasso"!==G&&"select"!==G||s._has("gl2d")?k.plot=!0:Z?T.update(k,Z):k.calc=!0,D.set(I))}}for(r in y){_.applyContainerArrayChanges(e,f(l,r),y[r],k,f)||(k.plot=!0)}var ue=s._axisConstraintGroups||[];for(O in C)for(n=0;n1;)if(n.pop(),void 0!==(r=o(t,n.join(".")+".uirevision").get()))return r;return t.uirevision}function ne(e,t){for(var r=0;r=a.length?a[0]:a[e]:a}function s(e){return Array.isArray(o)?e>=o.length?o[0]:o[e]:o}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(o,d){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,u.transition(e,t.frame.data,t.frame.layout,w.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,g,m=0;function y(e){return Array.isArray(a)?m>=a.length?e.transitionOpts=a[m]:e.transitionOpts=a[0]:e.transitionOpts=a,m++,e}var v=[],x=null==t,b=Array.isArray(t);if(!x&&!b&&i.isPlainObject(t))v.push({type:"object",data:y(i.extendFlat({},t))});else if(x||-1!==["string","number"].indexOf(typeof t))for(p=0;p0&&TT)&&A.push(g);v=A}}v.length>0?function(t){if(0!==t.length){for(var a=0;a=0;n--)if(i.isPlainObject(t[n])){var g=t[n].name,m=(d[g]||p[g]||{}).name,y=t[n].name,v=d[m]||p[m];m&&y&&"number"==typeof y&&v&&M<5&&(M++,i.warn('addFrames: overwriting frame "'+(d[m]||p[m]).name+'" with a frame whose name of type "number" also equates to "'+m+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===M&&i.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[g]={name:g},h.push({frame:u.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=0;n--){if("number"==typeof(a=h[n].frame).name&&i.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;d[a.name="frame "+e._transitionData._counter++];);if(d[a.name]){for(o=0;o=0;r--)n=t[r],o.push({type:"delete",index:n}),l.unshift({type:"insert",index:n,value:a[n]});var c=u.modifyFrames,d=u.modifyFrames,f=[e,l],h=[e,o];return s&&s.add(e,c,f,d,h),u.modifyFrames(e,o)},exports.addTraces=function e(t,r,n){t=i.getGraphDiv(t);var a,o,l=[],c=exports.deleteTraces,d=e,u=[t,l],f=[t,r];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=0&&r=0&&r1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=n(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*i[0],t.yaxis.r2l(s.y)*i[1],t.zaxis.r2l(s.z)*i[2]]),r(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},"s48LrSF+":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("VDpxHpeA"),a=t("yAcToaBS"),i=t("0Ft3SWJB"),o=t("/oRevOrA"),l=t("CckoZzjI").isValid;var s=["showscale","autocolorscale","colorscale","reversescale","colorbar"],c=["min","max","mid","auto"];function d(e){var t,r,n,a=e._colorAx,i=a||e,o={};for(r=0;r=0;n--,a++){var i=e[n];r[a]=[1-i[0],i[1]]}return r}function h(e,t){t=t||{};for(var i=e.domain,l=e.range,s=l.length,c=new Array(s),d=0;d1);if(!1!==g||c.uirevision){var m=a.newContainer(t,"legend");if(_("uirevision",t.uirevision),!1!==g){_("bgcolor",t.paper_bgcolor),_("bordercolor"),_("borderwidth"),n.coerceFont(_,"font",t.font);var y,v,x,b=_("orientation");"h"===b?(y=0,r.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(v=1.1,x="bottom"):(v=-.1,x="top")):(y=1.02,v=1,x="auto"),_("traceorder",f),l.isGrouped(t.legend)&&_("tracegroupgap"),_("itemsizing"),_("itemclick"),_("itemdoubleclick"),_("x",y),_("xanchor"),_("y",v),_("yanchor",x),_("valign"),n.noneOrAll(c,m,["x","y"]),_("title.text")&&(_("title.side","h"===b?"left":"top"),n.coerceFont(_,"title.font",t.font))}}function _(e,t){return n.coerce(c,m,i,e,t)}}},"scczlX+5":function(e,exports,t){"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:t("a6BPHvoN"),supplyLayoutDefaults:t("723cH3qU"),includeBasePlot:t("lGy/M/Cj")("images"),draw:t("YBg4gvmH"),convertCoords:t("LdzhoiNW")}},sp1wNnHl:function(e,exports,t){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:t("jyzIzA3P"),supplyDefaults:t("5tOsSiMj"),draw:t("Vyghum2a").draw,hasColorbar:t("NU9E/CzI")}},swYnW0Uh:function(e,exports,t){"use strict";var r=t("yAcToaBS");e.exports=function(e){var t=e.marker,n=t.sizeref||1,a=t.sizemin||0,i="area"===t.sizemode?function(e){return Math.sqrt(e/n)}:function(e){return e/n};return function(e){var t=i(e/2);return r(t)&&t>0?Math.max(t,a):0}}},tGjzYLAA:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("R5um7Wku"),a=t("0Ft3SWJB"),i=a.ensureSingle,o=a.identity,l=t("+ELfTWmT"),s=t("FAQM5QER"),c=t("Yvx+zdsp"),d=t("veoEbvwu"),u=t("fhYYOvxE").tester;function f(e,t,d,f,h,p,g){var m;!function(e,t,n,i,o){var l=n.xaxis,c=n.yaxis,d=r.extent(a.simpleMap(l.range,l.r2c)),u=r.extent(a.simpleMap(c.range,c.r2c)),f=i[0].trace;if(!s.hasMarkers(f))return;var h=f.marker.maxdisplayed;if(0===h)return;var p=i.filter((function(e){return e.x>=d[0]&&e.x<=d[1]&&e.y>=u[0]&&e.y<=u[1]})),g=Math.ceil(p.length/h),m=0;o.forEach((function(e,r){var n=e[0].trace;s.hasMarkers(n)&&n.marker.maxdisplayed>0&&r0;function v(e){return y?e.transition():e}var x=d.xaxis,b=d.yaxis,_=f[0].trace,w=_.line,k=r.select(p),T=i(k,"g","errorbars"),A=i(k,"g","lines"),M=i(k,"g","points"),S=i(k,"g","text");if(n.getComponentMethod("errorbars","plot")(e,T,d,g),!0===_.visible){var L,O;v(k).style("opacity",_.opacity);var C=_.fill.charAt(_.fill.length-1);"x"!==C&&"y"!==C&&(C=""),f[0][d.isRangePlot?"nodeRangePlot3":"node3"]=k;var z,P,D="",I=[],F=_._prevtrace;F&&(D=F._prevRevpath||"",O=F._nextFill,I=F._polygons);var j,R,E,B,N,H,W,V="",G="",U=[],q=a.noop;if(L=_._ownFill,s.hasLines(_)||"none"!==_.fill){for(O&&O.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(j=l.steps(w.shape),R=l.steps(w.shape.split("").reverse().join(""))):j=R="spline"===w.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?l.smoothclosed(e.slice(1),w.smoothing):l.smoothopen(e,w.smoothing)}:function(e){return"M"+e.join("L")},E=function(e){return R(e.reverse())},U=c(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),W=_._polygons=new Array(U.length),m=0;m1){var n=r.select(this);if(n.datum(f),e)v(n.style("opacity",0).attr("d",z).call(l.lineGroupStyle)).style("opacity",1);else{var a=v(n);a.attr("d",z),l.singleLineStyle(f,a)}}}}}var J=A.selectAll(".js-line").data(U);v(J.exit()).style("opacity",0).remove(),J.each(q(!1)),J.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(l.lineGroupStyle).each(q(!0)),l.setClipUrl(J,d.layerClipId,e),U.length?(L?(L.datum(f),B&&H&&(C?("y"===C?B[1]=H[1]=b.c2p(0,!0):"x"===C&&(B[0]=H[0]=x.c2p(0,!0)),v(L).attr("d","M"+H+"L"+B+"L"+V.substr(1)).call(l.singleFillStyle)):v(L).attr("d",V+"Z").call(l.singleFillStyle))):O&&("tonext"===_.fill.substr(0,6)&&V&&D?("tonext"===_.fill?v(O).attr("d",V+"Z"+D+"Z").call(l.singleFillStyle):v(O).attr("d",V+"L"+D.substr(1)+"Z").call(l.singleFillStyle),_._polygons=_._polygons.concat(I)):(X(O),_._polygons=null)),_._prevRevpath=G,_._prevPolygons=W):(L?X(L):O&&X(O),_._polygons=_._prevRevpath=_._prevPolygons=null),M.datum(f),S.datum(f),function(t,n,a){var i,c=a[0].trace,u=s.hasMarkers(c),f=s.hasText(c),h=te(c),p=re,g=re;if(u||f){var m=o,_=c.stackgroup,w=_&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;c.marker.maxdisplayed||c._needsCull?m=w?Q:Y:_&&!w&&(m=K),u&&(p=m),f&&(g=m)}var k,T=(i=t.selectAll("path.point").data(p,h)).enter().append("path").classed("point",!0);y&&T.call(l.pointStyle,c,e).call(l.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),i.order(),u&&(k=l.makePointStyleFns(c)),i.each((function(t){var n=r.select(this),a=v(n);l.translatePoint(t,a,x,b)?(l.singlePointStyle(t,a,c,k,e),d.layerClipId&&l.hideOutsideRangePoint(t,a,x,b,c.xcalendar,c.ycalendar),c.customdata&&n.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):a.remove()})),y?i.exit().transition().style("opacity",0).remove():i.exit().remove(),(i=n.selectAll("g").data(g,h)).enter().append("g").classed("textpoint",!0).append("text"),i.order(),i.each((function(e){var t=r.select(this),n=v(t.select("text"));l.translatePoint(e,n,x,b)?d.layerClipId&&l.hideOutsideRangePoint(e,t,x,b,c.xcalendar,c.ycalendar):t.remove()})),i.selectAll("text").call(l.textPointStyle,c,e).each((function(e){var t=x.c2p(e.x),n=b.c2p(e.y);r.select(this).selectAll("tspan.line").each((function(){v(r.select(this)).attr({x:t,y:n})}))})),i.exit().remove()}(M,S,f);var Z=!1===_.cliponaxis?null:d.layerClipId;l.setClipUrl(M,Z,e),l.setClipUrl(S,Z,e)}function X(e){v(e).attr("d","M0,0Z")}function Y(e){return e.filter((function(e){return!e.gap&&e.vis}))}function Q(e){return e.filter((function(e){return e.vis}))}function K(e){return e.filter((function(e){return!e.gap}))}function ee(e){return e.id}function te(e){if(e.ids)return ee}function re(){return!1}}e.exports=function(e,t,n,a,s,c){var u,h,p=!s,g=!!s&&s.duration>0,m=d(e,t,n);((u=a.selectAll("g.trace").data(m,(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,n){t.each((function(t){var a=i(r.select(this),"g","fills");l.setClipUrl(a,n.layerClipId,e);var s=t[0].trace,c=[];s._ownfill&&c.push("_ownFill"),s._nexttrace&&c.push("_nextFill");var d=a.selectAll("g").data(c,o);d.enter().append("g"),d.exit().each((function(e){s[e]=null})).remove(),d.order().each((function(e){s[e]=i(r.select(this),"path","js-fill")}))}))}(e,u,t),g)?(c&&(h=c()),r.transition().duration(s.duration).ease(s.easing).each("end",(function(){h&&h()})).each("interrupt",(function(){h&&h()})).each((function(){a.selectAll("g.trace").each((function(r,n){f(e,n,t,r,m,this,s)}))}))):u.each((function(r,n){f(e,n,t,r,m,this,s)}));p&&u.exit().remove(),a.selectAll("path:not([d])").remove()}},tLYo6Exq:function(e,exports,t){"use strict";var r=t("yAcToaBS"),n=t("0Ft3SWJB"),a=t("46lPXjlm").BADNUM;e.exports=function(e,t,i,o){var l,s,c,d,u,f;function h(e){if(r(e))return+e}if(t&&t.transpose){for(l=0,u=0;u=0;a--){var i=e[a];if("scatter"===i.type&&i.xaxis===r.xaxis&&i.yaxis===r.yaxis){i.opacity=void 0;break}}}}}},uzqM94tz:function(e,exports,t){"use strict";e.exports=t("9GSMkjhW")},v1szbzNU:function(e,exports,t){"use strict";var r=t("HoF8EwuB"),n=t("lf8+9Xc7")({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});n.family.dflt=r.HOVERFONT,n.size.dflt=r.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",role:"info",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",role:"info",values:["zoom","pan","select","lasso","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",role:"info",values:["x","y","closest",!1,"x unified","y unified"],editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled.","If `clickmode` includes the *select* flag,","`hovermode` defaults to *closest*.","If `clickmode` lacks the *select* flag,","it defaults to *x* or *y* (depending on the trace's","`orientation` value) for plots based on","cartesian coordinates. For anything else the default","value is *closest*."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,role:"info",editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:20,role:"info",editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",role:"style",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:n,align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",role:"style",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,role:"style",editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",role:"info",values:["h","v","d","any"],dflt:"any",description:['When "dragmode" is set to "select", this limits the selection of the drag to','horizontal, vertical or diagonal. "h" only allows horizontal selection,','"v" only vertical, "d" only diagonal and "any" sets no limit.'].join(" "),editType:"none"}}},"vD+rSQ38":function(e,exports,t){"use strict";var r=t("SncXPNSm"),n=r.marker,a=t("xE+ZFgwY").extendFlat,i=["Area traces are deprecated!","Please switch to the *barpolar* trace type."].join(" ");e.exports={r:a({},r.r,{description:[i,"Sets the radial coordinates","for legacy polar chart only."].join(" ")}),t:a({},r.t,{description:[i,"Sets the angular coordinates","for legacy polar chart only."].join(" ")}),marker:{color:a({},n.color,{description:[i,n.color.description].join(" ")}),size:a({},n.size,{description:[i,n.size.description].join(" ")}),symbol:a({},n.symbol,{description:[i,n.symbol.description].join(" ")}),opacity:a({},n.opacity,{description:[i,n.opacity.description].join(" ")}),editType:"calc"}}},veoEbvwu:function(e,exports,t){"use strict";var r={tonextx:1,tonexty:1,tonext:1};e.exports=function(e,t,n){var a,i,o,l,s,c={},d=!1,u=-1,f=0,h=-1;for(i=0;i=0?s=h:(s=h=f,f++),s=2){var s,c,d="";if(2===l.length)for(s=0;s<2;s++)if(c=y(l[s])){d=h;break}var u=i("pattern",d);if(u===h)for(s=0;s<2;s++)(c=y(l[s]))&&(t.bounds[s]=l[s]=c-1);if(u)for(s=0;s<2;s++)switch(c=l[s],u){case h:if(!r(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[s]=l[s]=c;break;case p:if(!r(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[s]=l[s]=c}if(!1===n.autorange){var f=n.range;if(f[0]f[1])return void(t.enabled=!1)}else if(l[0]>f[0]&&l[1]0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},wZSGLMqc:function(e,exports,t){"use strict";var r=t("L1qB4u9y"),n=t("SncXPNSm").line,a=t("LZ3mZdqo").dash,i=t("xE+ZFgwY").extendFlat,o=t("A5P9b9BX").templatedArray;e.exports=o("shape",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],role:"info",editType:"calc+arraydraw",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","with respect to the axes' sizing mode.","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","with respect to the axes' sizing mode.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","with respect to the axes' sizing mode.","If *path*, draw a custom SVG path using `path`.","with respect to the axes' sizing mode."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",editType:"arraydraw",description:"Specifies whether shapes are drawn below or above traces."},xref:i({},r.xref,{description:["Sets the shape's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate.","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the left (right) side.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, then you must convert","the date to unix time in milliseconds."].join(" ")}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",role:"info",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the x axis.","If set to *scaled*, `x0`, `x1` and x coordinates within `path` refer to","data values on the x axis or a fraction of the plot area's width","(`xref` set to *paper*).","If set to *pixel*, `xanchor` specifies the x position in terms","of data or plot fraction but `x0`, `x1` and x coordinates within `path`","are pixels relative to `xanchor`. This way, the shape can have","a fixed width while maintaining a position relative to data or","plot fraction."].join(" ")},xanchor:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Only relevant in conjunction with `xsizemode` set to *pixel*.","Specifies the anchor point on the x axis to which `x0`, `x1`","and x coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `xsizemode` not set to *pixel*."].join(" ")},x0:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the shape's starting x position.","See `type` and `xsizemode` for more info."].join(" ")},x1:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the shape's end x position.","See `type` and `xsizemode` for more info."].join(" ")},yref:i({},r.yref,{description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",role:"info",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the y axis.","If set to *scaled*, `y0`, `y1` and y coordinates within `path` refer to","data values on the y axis or a fraction of the plot area's height","(`yref` set to *paper*).","If set to *pixel*, `yanchor` specifies the y position in terms","of data or plot fraction but `y0`, `y1` and y coordinates within `path`","are pixels relative to `yanchor`. This way, the shape can have","a fixed height while maintaining a position relative to data or","plot fraction."].join(" ")},yanchor:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Only relevant in conjunction with `ysizemode` set to *pixel*.","Specifies the anchor point on the y axis to which `y0`, `y1`","and y coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `ysizemode` not set to *pixel*."].join(" ")},y0:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the shape's starting y position.","See `type` and `ysizemode` for more info."].join(" ")},y1:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the shape's end y position.","See `type` and `ysizemode` for more info."].join(" ")},path:{valType:"string",role:"info",editType:"calc+arraydraw",description:["For `type` *path* - a valid SVG path with the pixel values","replaced by data values in `xsizemode`/`ysizemode` being *scaled*","and taken unmodified as pixels relative to `xanchor` and `yanchor`","in case of *pixel* size mode.","There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"info",editType:"arraydraw",description:"Sets the opacity of the shape."},line:{color:i({},n.color,{editType:"arraydraw"}),width:i({},n.width,{editType:"calc+arraydraw"}),dash:i({},a,{editType:"arraydraw"}),role:"info",editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",editType:"arraydraw",description:["Sets the color filling the shape's interior."].join(" ")},editType:"arraydraw"})},"xE+ZFgwY":function(e,exports,t){"use strict";var r=t("btK4Orgn"),n=Array.isArray;function a(e,t,i,o){var l,s,c,d,u,f,h=e[0],p=e.length;if(2===p&&n(h)&&n(e[1])&&0===h.length){if(function(e,t){var r,n;for(r=0;r0||f<0){var m={left:[-h,0],right:[h,0],top:[0,-h],bottom:[0,h]}[x.side];t.attr("transform","translate("+m+")")}}}return I.call(F),P&&(S?I.on(".opacity",null):(T=0,A=!0,I.text(y).on("mouseover.opacity",(function(){r.select(this).transition().duration(d.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(d.HIDE_PLACEHOLDER).style("opacity",0)}))),I.call(c.makeEditable,{gd:e}).on("edit",(function(t){void 0!==v?i.call("_guiRestyle",e,m,t,v):i.call("_guiRelayout",e,m,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(F)})).on("input",(function(e){this.text(e||" ").call(c.positionText,b.x,b.y)}))),I.classed("js-placeholder",A),w}}},"xsJ/SW1t":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),n=t("yAcToaBS"),a=t("0Ft3SWJB"),i=t("lziZQePk"),o=new DOMParser;function l(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var s=l.prototype;s.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this._uid=i,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 ":"";a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,l+"#"+i+" .modebar-group","background-color: "+o.bgcolor),a.addRelatedStyleRule(i,"#"+i+" .modebar-btn .icon path","fill: "+o.color),a.addRelatedStyleRule(i,"#"+i+" .modebar-btn:hover .icon path","fill: "+o.activecolor),a.addRelatedStyleRule(i,"#"+i+" .modebar-btn.active .icon path","fill: "+o.activecolor);var s=!this.hasButtons(t),c=this.hasLogo!==r.displaylogo,d=this.locale!==r.locale;if(this.locale=r.locale,(s||c||d)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var u=this.getLogo();r.watermark&&(u.className=u.className+" watermark"),"v"===n.modebar.orientation?this.element.insertBefore(u,this.element.childNodes[0]):this.element.appendChild(u),this.hasLogo=!0}this.updateActiveButton()},s.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)}))},s.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},s.createButton=function(e){var t=this,n=document.createElement("a");n.setAttribute("rel","tooltip"),n.className="modebar-btn";var a=e.title;void 0===a?a=e.name:"function"==typeof a&&(a=a(this.graphInfo)),(a||0===a)&&n.setAttribute("data-title",a),void 0!==e.attr&&n.setAttribute("data-attr",e.attr);var o=e.val;if(void 0!==o&&("function"==typeof o&&(o=o(this.graphInfo)),n.setAttribute("data-val",o)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");n.addEventListener("click",(function(r){e.click(t.graphInfo,r),t.updateActiveButton(r.currentTarget)})),n.setAttribute("data-toggle",e.toggle||!1),e.toggle&&r.select(n).classed("active",!0);var l=e.icon;return"function"==typeof l?n.appendChild(l()):n.appendChild(this.createIcon(l||i.question)),n.setAttribute("data-gravity",e.gravity||"n"),n},s.createIcon=function(e){var t,r=n(e.height)?Number(e.height):e.ascent-e.descent,a="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(a,"svg")).setAttribute("viewBox",[0,0,e.width,r].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(a,"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=o.parseFromString(e.svg,"application/xml").childNodes[0]);return t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},s.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,n=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach((function(e){var i=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=r.select(e);if(l)o===n&&s.classed("active",!s.classed("active"));else{var c=null===o?o:a.nestedProperty(t,o).get();s.classed("active",c===i)}}))},s.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var r=0;r0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(i(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 d=s+"calendar",u=c[d],f={noMultiCategory:!r(c,"cartesian")||r(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(f.noMultiCategory=!0);if(i(c,s)){var h=a(c),p=[];for(o=0;oi){var o=i-n[e];return n[e]=i,o}}return 0},max:function(e,t,n,a){var i=a[t];if(r(i)){if(i=Number(i),!r(n[e]))return n[e]=i,i;if(n[e]* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},dtick:{valType:"any",role:"style",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},tickvals:{valType:"data_array",editType:"ticks",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",editType:"ticks",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:{valType:"enumerated",values:["outside","inside",""],role:"style",editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")},tickson:{valType:"enumerated",values:["labels","boundaries"],role:"info",dflt:"labels",editType:"ticks",description:["Determines where ticks and grid lines are drawn with respect to their","corresponding tick labels.","Only has an effect for axes of `type` *category* or *multicategory*.","When set to *boundaries*, ticks and grid lines are drawn half a category","to the left/bottom of labels."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,role:"style",editType:"ticks+layoutstyle",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:{valType:"number",min:0,dflt:5,role:"style",editType:"ticks",description:"Sets the tick length (in px)."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"ticks",description:"Sets the tick width (in px)."},tickcolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"ticks",description:"Sets the tick color."},showticklabels:{valType:"boolean",dflt:!0,role:"style",editType:"ticks",description:"Determines whether or not the tick labels are drawn."},automargin:{valType:"boolean",dflt:!1,role:"style",editType:"ticks",description:["Determines whether long tick labels automatically grow the figure","margins."].join(" ")},showspikes:{valType:"boolean",dflt:!1,role:"style",editType:"modebar",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,role:"style",editType:"none",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,role:"style",editType:"none",description:"Sets the width (in px) of the zero line."},spikedash:i({},a,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],role:"style",dflt:"toaxis",editType:"none",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"data",role:"style",editType:"none",description:"Determines whether spikelines are stuck to the cursor or to the closest datapoints."},tickfont:r({editType:"ticks",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",role:"style",editType:"ticks",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",role:"style",editType:"ticks",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",editType:"ticks",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",role:"style",editType:"ticks",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",editType:"ticks",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",editType:"ticks",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",role:"style",editType:"ticks",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,role:"style",editType:"ticks",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",role:"style",editType:"ticks",description:["Sets the tick label formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:",l,"And for dates see:",s,"We add one item to d3's date formatter: *%{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(" ")},tickformatstops:o("tickformatstop",{enabled:{valType:"boolean",role:"info",dflt:!0,editType:"ticks",description:["Determines whether or not this stop is used.","If `false`, this stop is ignored even within its `dtickrange`."].join(" ")},dtickrange:{valType:"info_array",role:"info",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks",description:["range [*min*, *max*], where *min*, *max* - dtick values","which describe some zoom level, it is possible to omit *min*","or *max* value by passing *null*"].join(" ")},value:{valType:"string",dflt:"",role:"style",editType:"ticks",description:["string - dtickformat for described zoom level, the same as *tickformat*"].join(" ")},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",role:"style",editType:"none",description:["Sets the hover text formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:",l,"And for dates see:",s,"We add one item to d3's date formatter: *%{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(" ")},showline:{valType:"boolean",dflt:!1,role:"style",editType:"ticks+layoutstyle",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"layoutstyle",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,role:"style",editType:"ticks+layoutstyle",description:"Sets the width (in px) of the axis line."},showgrid:{valType:"boolean",role:"style",editType:"ticks",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},gridcolor:{valType:"color",dflt:n.lightLine,role:"style",editType:"ticks",description:"Sets the color of the grid lines."},gridwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"ticks",description:"Sets the width (in px) of the grid lines."},zeroline:{valType:"boolean",role:"style",editType:"ticks",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"ticks",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,role:"style",editType:"ticks",description:"Sets the width (in px) of the zero line."},showdividers:{valType:"boolean",dflt:!0,role:"style",editType:"ticks",description:["Determines whether or not a dividers are drawn","between the category levels of this axis.","Only has an effect on *multicategory* axes."].join(" ")},dividercolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"ticks",description:["Sets the color of the dividers","Only has an effect on *multicategory* axes."].join(" ")},dividerwidth:{valType:"number",dflt:1,role:"style",editType:"ticks",description:["Sets the width (in px) of the dividers","Only has an effect on *multicategory* axes."].join(" ")},anchor:{valType:"enumerated",values:["free",d.idRegex.x.toString(),d.idRegex.y.toString()],role:"info",editType:"plot",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],role:"info",editType:"plot",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",d.idRegex.x.toString(),d.idRegex.y.toString()],role:"info",editType:"plot",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis, with traces and axes visible for both","axes.","If *false*, this axis does not overlay any same-letter axes.","In this case, for axes with overlapping domains only the highest-numbered","axis will be visible."].join(" ")},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",role:"info",editType:"plot",description:["Sets the layer on which this axis is displayed.","If *above traces*, this axis is displayed above all the subplot's traces","If *below traces*, this axis is displayed below all the subplot's traces,","but above the grid lines.","Useful when used together with scatter-like traces with `cliponaxis`","set to *false* to show markers and/or text nodes above this axis."].join(" ")},domain:{valType:"info_array",role:"info",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot",description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,role:"style",editType:"plot",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},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",role:"info",editType:"calc",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.","Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the","numerical order of the values.","Similarly, the order can be determined by the min, max, sum, mean or median of all the values."].join(" ")},categoryarray:{valType:"data_array",role:"info",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, and `title` if in `editable: true` configuration.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc",_deprecated:{autotick:{valType:"boolean",role:"info",editType:"ticks",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")},title:{valType:"string",role:"info",editType:"ticks",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the axis' title, please use `title.text` now."].join(" ")},titlefont:r({editType:"ticks",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},"zWdj+er5":function(e,exports,t){"use strict";e.exports={xaxis:{valType:"subplotid",role:"info",dflt:"x",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's x coordinates and","a 2D cartesian x axis.","If *x* (the default value), the x coordinates refer to","`layout.xaxis`.","If *x2*, the x coordinates refer to `layout.xaxis2`, and so on."].join(" ")},yaxis:{valType:"subplotid",role:"info",dflt:"y",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's y coordinates and","a 2D cartesian y axis.","If *y* (the default value), the y coordinates refer to","`layout.yaxis`.","If *y2*, the y coordinates refer to `layout.yaxis2`, and so on."].join(" ")}}},zbkQ6RHY:function(e,exports,t){"use strict";var r=t("L1qB4u9y"),n=t("Oq1Cqb7p").overrideAll,a=t("A5P9b9BX").templatedArray;e.exports=n(a("annotation",{visible:r.visible,x:{valType:"any",role:"info",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",role:"info",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",role:"info",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",role:"info",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",role:"info",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:r.xanchor,xshift:r.xshift,yanchor:r.yanchor,yshift:r.yshift,text:r.text,textangle:r.textangle,font:r.font,width:r.width,height:r.height,opacity:r.opacity,align:r.align,valign:r.valign,bgcolor:r.bgcolor,bordercolor:r.bordercolor,borderpad:r.borderpad,borderwidth:r.borderwidth,showarrow:r.showarrow,arrowcolor:r.arrowcolor,arrowhead:r.arrowhead,startarrowhead:r.startarrowhead,arrowside:r.arrowside,arrowsize:r.arrowsize,startarrowsize:r.startarrowsize,arrowwidth:r.arrowwidth,standoff:r.standoff,startstandoff:r.startstandoff,hovertext:r.hovertext,hoverlabel:r.hoverlabel,captureevents:r.captureevents}),"calc","from-root")}}]); //# sourceMappingURL=b999a7e7-34.9472d5d0a285679cf68d.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy